diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-12-20 21:23:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 21:23:56 +0200 |
commit | c7685e8ab3642a14e9d962e420bf2b8c7e7f28fa (patch) | |
tree | d00b92c38729bd2afe3ee2343216deda89ec9b22 /run_tests.py | |
parent | 4317edca25a29a191c51c520e2861f6d45f7b6b1 (diff) | |
parent | 701e3932619779a57f95732d61189d47e34dcb88 (diff) | |
download | meson-c7685e8ab3642a14e9d962e420bf2b8c7e7f28fa.zip meson-c7685e8ab3642a14e9d962e420bf2b8c7e7f28fa.tar.gz meson-c7685e8ab3642a14e9d962e420bf2b8c7e7f28fa.tar.bz2 |
Merge pull request #1228 from mesonbuild/runcross
Fix cross test and run them if a cross compiler is available.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py index 752354e..a40a2a6 100755 --- a/run_tests.py +++ b/run_tests.py @@ -23,5 +23,8 @@ if __name__ == '__main__': if mesonlib.is_linux(): print('Running unittests.\n') returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v']) + if shutil.which('arm-linux-gnueabihf-gcc-6'): # Ubuntu packages do not have a binary without -6 suffix. + print('Running cross compilation tests.\n') + returncode += subprocess.call([sys.executable, 'run_cross_test.py', 'cross/ubuntu-armhf.txt']) returncode += subprocess.call([sys.executable, 'run_project_tests.py'] + sys.argv[1:]) sys.exit(returncode) |