aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-21 22:19:07 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-21 22:19:07 +0300
commitbff37a90fc475c6204087dcf1ccb6734b990141e (patch)
treed228c8107a4daf66e76f3d0fa4a03e5e689c55e9 /run_unittests.py
parent328a1f30fdfdadc6d5df4ebfc075e9cd5c0df96e (diff)
parente82edc179fe86e68d1f74fe084fd891ef2d12316 (diff)
downloadmeson-bff37a90fc475c6204087dcf1ccb6734b990141e.zip
meson-bff37a90fc475c6204087dcf1ccb6734b990141e.tar.gz
meson-bff37a90fc475c6204087dcf1ccb6734b990141e.tar.bz2
Merged buildrpath branch.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 664fdef..875ba65 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