Port test runner to python

This commit is contained in:
Alexis Engelke
2019-01-13 08:47:23 +01:00
parent 05493d4206
commit 6b34f55855
3 changed files with 67 additions and 35 deletions

View File

@@ -1,6 +1,4 @@
sh = find_program('sh')
cases = [
['enter', 'decode-enter.sh'],
['imul', 'decode-imul.sh'],
@@ -15,8 +13,8 @@ cases = [
test_driver = executable('test_driver', 'driver.c',
dependencies: libx86decode,
c_args: ['-D_GNU_SOURCE'])
test_args = files('common.sh') + [test_driver.full_path(), get_option('archmode')]
test_args = files('test.py') + [test_driver.full_path(), get_option('archmode')]
foreach case : cases
test(case[0], sh, args: test_args + files(case[1]))
test(case[0], python3, args: test_args + files(case[1]))
endforeach