1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
harness = find_program('./harness.sh')
ref_sh = find_program('sh', required: false)
test_files = [
'conformance/if.sh',
'async.sh',
'case.sh',
'command.sh',
'for.sh',
'function.sh',
'loop.sh',
'pipeline.sh',
'subshell.sh',
'syntax.sh',
'ulimit.sh',
'word.sh',
]
foreach test_file : test_files
test(
join_paths(meson.current_source_dir(), test_file),
harness,
env: [
'MRSH=@0@'.format(mrsh_exe.full_path()),
'REF_SH=@0@'.format(ref_sh.path()),
],
args: [test_file],
)
endforeach