diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-27 23:43:35 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-27 23:43:35 +0200 |
commit | 1961e88e0bfb2a95e43810bbb2790264f1fec71a (patch) | |
tree | 2cc9c47561b6e5351633685d5ac8f9f5047e9d6d /run_unittests.py | |
parent | c4a6b193d4f4043872e5e9f16e75ec76f4582398 (diff) | |
download | meson-crosslib.tar.gz |
Default libdir is "lib" when cross compiling. Closes #2535.crosslib
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 91daa1b2f..d72164650 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4493,6 +4493,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 @@ -4529,6 +4530,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 |