diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-06-18 13:06:30 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-06-18 13:18:03 +0530 |
commit | 33605e667ccd1b6bc1993a392a716517752d5201 (patch) | |
tree | a59365c157ff06b521682d96b6ef175c7cd77c16 | |
parent | 472be51fbef1a07651723c8974638700a7ba0c54 (diff) | |
download | meson-nirbheek/fix-rebase-error-depfixer.tar.gz |
unit tests: Assert install_name does not contain DESTDIRnirbheek/fix-rebase-error-depfixer
-rwxr-xr-x | run_unittests.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 0cfb4a9f6..0ca527d5d 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3362,7 +3362,7 @@ endian = 'little' self.prefix = oldprefix self.build() self.install(use_destdir=False) - # New builddir for the consumer + ## New builddir for the consumer self.new_builddir() os.environ['LIBRARY_PATH'] = os.path.join(installdir, self.libdir) os.environ['PKG_CONFIG_PATH'] = os.path.join(installdir, self.libdir, 'pkgconfig') @@ -3380,6 +3380,19 @@ endian = 'little' self._run([prog]) out = self._run(['otool', '-L', prog]) self.assertNotIn('@rpath', out) + ## New builddir for testing that DESTDIR is not added to install_name + self.new_builddir() + os.environ['LIBRARY_PATH'] = os.path.join(installdir, self.libdir) + os.environ['PKG_CONFIG_PATH'] = os.path.join(installdir, self.libdir, 'pkgconfig') + testdir = os.path.join(self.unit_test_dir, '33 external, internal library rpath', 'built library') + # install into installdir with DESTDIR + self.init(testdir) + self.build() + # test running after installation + self.install() + prog = os.path.join(self.installdir, self.prefix, 'bin', 'prog') + out = self._run(['otool', '-L', prog]) + self.assertNotIn(self.installdir, out) class LinuxArmCrossCompileTests(BasePlatformTests): |