diff options
Diffstat (limited to 'meson_test.py')
-rwxr-xr-x | meson_test.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meson_test.py b/meson_test.py index a169f74..55ce02d 100755 --- a/meson_test.py +++ b/meson_test.py @@ -44,7 +44,16 @@ def run_tests(options, datafilename): for i, test in enumerate(tests): name = test[0] fname = test[1] - cmd = wrap + [fname] + is_cross = test[2] + exe_wrapper = test[3] + if is_cross: + if exe_wrapper is None: + print('Can not run test on cross compiled executable because there is no execute wrapper.') + sys.exit(1) + cmd = [exe_wrapper, fname] + else: + cmd = [fname] + cmd = wrap + cmd starttime = time.time() p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdo, stde) = p.communicate() |