aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-19 13:48:26 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-20 20:33:59 +0200
commit2b650834631e09eee8dffa68a2058769a651d6f7 (patch)
tree8dde784ee275d306864baf0a8299ccbde5c24ded /run_tests.py
parent4317edca25a29a191c51c520e2861f6d45f7b6b1 (diff)
downloadmeson-2b650834631e09eee8dffa68a2058769a651d6f7.zip
meson-2b650834631e09eee8dffa68a2058769a651d6f7.tar.gz
meson-2b650834631e09eee8dffa68a2058769a651d6f7.tar.bz2
Fix cross test and run them if a cross compiler is available.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py3
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)