diff options
author | John Ericson <git@JohnEricson.me> | 2019-04-10 08:05:00 -0400 |
---|---|---|
committer | John Ericson <git@JohnEricson.me> | 2019-06-09 13:14:55 -0400 |
commit | 6d6af46edcb765d7046533fdad4d03b0c0c9cd64 (patch) | |
tree | fcf837f88ac4c9c4309636e5fe15c682f95f3329 /run_unittests.py | |
parent | b9d7e98e599776f58590b0a81f343eb676c8393d (diff) | |
download | meson-6d6af46edcb765d7046533fdad4d03b0c0c9cd64.zip meson-6d6af46edcb765d7046533fdad4d03b0c0c9cd64.tar.gz meson-6d6af46edcb765d7046533fdad4d03b0c0c9cd64.tar.bz2 |
Make test for identity
(cherry picked from commit ae6426cd8acfe0ccc5d7958d55edb613b4a5bf01)
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') |