Fix some unit test failures that were my fault
This commit is contained in:
parent
aac87d85c0
commit
12c01f6f3e
3 changed files with 45 additions and 7 deletions
|
@ -67,6 +67,7 @@ wren_dep = declare_dependency(
|
|||
|
||||
if get_option('build_testing')
|
||||
fs = import('fs')
|
||||
|
||||
test_src = [
|
||||
'wren/test/api/api_tests.c',
|
||||
'wren/test/api/benchmark.c',
|
||||
|
@ -101,8 +102,8 @@ if get_option('build_testing')
|
|||
endif
|
||||
|
||||
test_scripts = run_command(
|
||||
meson.current_source_dir() / 'find_scripts.py',
|
||||
meson.current_source_dir(),
|
||||
files('find_scripts.py'),
|
||||
meson.current_source_dir() / 'wren/test',
|
||||
test_script_paths,
|
||||
).stdout().strip().split('\n')
|
||||
|
||||
|
@ -115,8 +116,20 @@ if get_option('build_testing')
|
|||
)
|
||||
|
||||
foreach test_script : test_scripts
|
||||
expects_fail = run_command(
|
||||
files('guess_test_outcome.py'),
|
||||
test_script,
|
||||
).returncode() == 0
|
||||
|
||||
name = fs.stem(test_script)
|
||||
test(meson.project_name() + ' test ' + name, test_api, args: files(test_script))
|
||||
test(
|
||||
meson.project_name() + ' test ' + name,
|
||||
test_api,
|
||||
args: test_script,
|
||||
is_parallel: true,
|
||||
should_fail: expects_fail,
|
||||
workdir: meson.current_source_dir() / 'wren',
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue