diff options
-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): |