Do not run arm cross compilation tests on arm.

pull/777/merge
Jussi Pakkanen 8 years ago
parent 0a14ad63de
commit 92f8e0ab31
  1. 4
      run_tests.py

@ -15,6 +15,7 @@
# limitations under the License. # limitations under the License.
import subprocess, sys, shutil import subprocess, sys, shutil
import platform
from mesonbuild import mesonlib from mesonbuild import mesonlib
if __name__ == '__main__': if __name__ == '__main__':
@ -22,7 +23,8 @@ if __name__ == '__main__':
if mesonlib.is_linux(): if mesonlib.is_linux():
print('Running unittests.\n') print('Running unittests.\n')
returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v']) 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. # Ubuntu packages do not have a binary without -6 suffix.
if shutil.which('arm-linux-gnueabihf-gcc-6') and not platform.machine().startswith('arm'):
print('Running cross compilation tests.\n') 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_cross_test.py', 'cross/ubuntu-armhf.txt'])
returncode += subprocess.call([sys.executable, 'run_project_tests.py'] + sys.argv[1:]) returncode += subprocess.call([sys.executable, 'run_project_tests.py'] + sys.argv[1:])

Loading…
Cancel
Save