diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-21 22:19:07 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-21 22:19:07 +0300 |
| commit | bff37a90fc475c6204087dcf1ccb6734b990141e (patch) | |
| tree | d228c8107a4daf66e76f3d0fa4a03e5e689c55e9 /run_unittests.py | |
| parent | 328a1f30fdfdadc6d5df4ebfc075e9cd5c0df96e (diff) | |
| parent | e82edc179fe86e68d1f74fe084fd891ef2d12316 (diff) | |
| download | meson-bff37a90fc475c6204087dcf1ccb6734b990141e.tar.gz | |
Merged buildrpath branch.
Diffstat (limited to 'run_unittests.py')
| -rwxr-xr-x | run_unittests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 664fdefb3..875ba6511 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1850,6 +1850,17 @@ class LinuxlikeTests(BasePlatformTests): self.assertTrue(glib_found) self.assertTrue(gobject_found) + def test_build_rpath(self): + testdir = os.path.join(self.unit_test_dir, '11 build_rpath') + self.init(testdir) + self.build() + build_rpath = get_rpath(os.path.join(self.builddir, 'prog')) + self.assertEqual(build_rpath, '$ORIGIN/sub:/foo/bar') + self.install() + install_rpath = get_rpath(os.path.join(self.installdir, 'usr/bin/prog')) + self.assertEqual(install_rpath, '/baz') + + class LinuxArmCrossCompileTests(BasePlatformTests): ''' Tests that verify cross-compilation to Linux/ARM |
