aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-27 23:43:35 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-30 00:51:19 +0200
commitda5da5977ab975480570b06b72df98318f2efd23 (patch)
tree25bd67ae292b092df226dd354a7d54f4da2c880e /run_unittests.py
parentab3aeeffe92bc874d5f5a04af0ae9dc568a09ce7 (diff)
downloadmeson-da5da5977ab975480570b06b72df98318f2efd23.zip
meson-da5da5977ab975480570b06b72df98318f2efd23.tar.gz
meson-da5da5977ab975480570b06b72df98318f2efd23.tar.bz2
Default libdir is "lib" when cross compiling. Closes #2535.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index f8ede9b..be7ae57 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4528,6 +4528,7 @@ endian = 'little'
max_count = max(max_count, line.count(search_term))
self.assertEqual(max_count, 1, 'Export dynamic incorrectly deduplicated.')
+
class LinuxCrossArmTests(BasePlatformTests):
'''
Tests that cross-compilation to Linux/ARM works
@@ -4564,6 +4565,18 @@ class LinuxCrossArmTests(BasePlatformTests):
self.assertRegex(compdb[0]['command'], '-D_FILE_OFFSET_BITS=64.*-U_FILE_OFFSET_BITS')
self.build()
+ def test_cross_libdir(self):
+ # When cross compiling "libdir" should default to "lib"
+ # rather than "lib/x86_64-linux-gnu" or something like that.
+ testdir = os.path.join(self.common_test_dir, '1 trivial')
+ self.init(testdir)
+ for i in self.introspect('--buildoptions'):
+ if i['name'] == 'libdir':
+ self.assertEqual(i['value'], 'lib')
+ return
+ self.assertTrue(False, 'Option libdir not in introspect data.')
+
+
class LinuxCrossMingwTests(BasePlatformTests):
'''
Tests that cross-compilation to Windows/MinGW works