| 1 |
grabber = 'for i in *.c; do echo $i; done' |
| 2 |
test_files = run_command('sh', '-c', grabber, check: true).stdout().strip().split('\n') |
| 3 |
|
| 4 |
foreach file : test_files |
| 5 |
test_path = meson.current_source_dir() + '/' + file |
| 6 |
outp_path = meson.current_build_dir() + '/' + file + '.log' |
| 7 |
|
| 8 |
should_fail = returncode_to_bool[ |
| 9 |
run_command('grep', '-nwI', '{ *dg-xfail *}', test_path, check: false).returncode()] |
| 10 |
test(file, runtest, args : [ '-inline-test', test_path, '-o', outp_path ], |
| 11 |
should_fail: should_fail) |
| 12 |
endforeach |
| 13 |
|
| 14 |
subdir('lto-1') |
| 15 |
subdir('lto-2') |