diff options
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 23b8f2c..90d4a62 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5206,6 +5206,18 @@ endian = 'little' self.assertRegex(compdb[0]['command'], '-std=c99') self.build() + def test_identity_cross(self): + testdir = os.path.join(self.unit_test_dir, '58 identity cross') + crossfile = tempfile.NamedTemporaryFile(mode='w') + os.environ['CC'] = '"' + os.path.join(testdir, 'build_wrapper.py') + '"' + crossfile.write('''[binaries] +c = ['{0}'] +'''.format(os.path.join(testdir, 'host_wrapper.py'))) + crossfile.flush() + self.meson_cross_file = crossfile.name + # TODO should someday be explicit about build platform only here + self.init(testdir) + def should_run_cross_arm_tests(): return shutil.which('arm-linux-gnueabihf-gcc') and not platform.machine().lower().startswith('arm') |