diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-23 23:52:17 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-23 23:52:17 +0300 |
commit | 6780050cbff88de1943d6297a6169acd57e9ab3a (patch) | |
tree | aa3e71b8e4b2b578dceceb98fdbee26bc2578c5c /meson_test.py | |
parent | 354bdca92042fbd81952578046858b43be960abc (diff) | |
download | meson-6780050cbff88de1943d6297a6169acd57e9ab3a.zip meson-6780050cbff88de1943d6297a6169acd57e9ab3a.tar.gz meson-6780050cbff88de1943d6297a6169acd57e9ab3a.tar.bz2 |
Run cross build tests with exe wrapper.
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() |