From 2b650834631e09eee8dffa68a2058769a651d6f7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 19 Dec 2016 13:48:26 +0200 Subject: Fix cross test and run them if a cross compiler is available. --- run_tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index 752354e95..a40a2a629 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) -- cgit v1.2.3