[vala/wip/meson: 21/26] tests: Organize them in suites
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/meson: 21/26] tests: Organize them in suites
- Date: Tue, 8 Mar 2022 09:54:24 +0000 (UTC)
commit da894a36d122cb3752bcda1b99b0b2bc79a72e1d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Mar 3 10:19:40 2022 +0100
tests: Organize them in suites
tests/meson.build | 13 +++++++++++++
valadoc/tests/meson.build | 3 +++
2 files changed, 16 insertions(+)
---
diff --git a/tests/meson.build b/tests/meson.build
index f2f9915ca..d7c653237 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1405,12 +1405,14 @@ endforeach
preparetest = find_program('prepare-test.py')
foreach case : test_cases
+ suite = case.split('/')
if case.endswith('.vala') or case.endswith('.gs')
test(case,
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + ['--pkg', 'gio-2.0', join_paths(meson.current_source_dir(), case)],
env: test_envars,
+ suite: suite[0],
)
else
invalid_case = run_command(preparetest,
@@ -1423,17 +1425,20 @@ foreach case : test_cases
should_fail: true,
args: vala_flags + ['--pkg', 'gio-2.0', case.underscorify() + '.vala'],
env: test_envars,
+ suite: suite[0],
)
endif
endforeach
foreach case : test_cases_non_null
+ suite = case.split('/')
if case.endswith('.vala') or case.endswith('.gs')
test(case,
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + ['--enable-experimental-non-null', '--pkg', 'gio-2.0',
join_paths(meson.current_source_dir(), case)],
env: test_envars,
+ suite: suite[0],
)
else
invalid_case = run_command(preparetest,
@@ -1446,39 +1451,46 @@ foreach case : test_cases_non_null
should_fail: true,
args: vala_flags + ['--enable-experimental-non-null', '--pkg', 'gio-2.0',
case.underscorify() + '.vala'],
env: test_envars,
+ suite: suite[0],
)
endif
endforeach
foreach case : test_cases_linux
+ suite = case.split('/')
if case.endswith('.vala') or case.endswith('.gs')
test(case,
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + ['--pkg', 'linux', join_paths(meson.current_source_dir(), case)],
env: test_envars,
+ suite: suite[0],
)
endif
endforeach
foreach case : test_cases_posix
+ suite = case.split('/')
if case.endswith('.vala') or case.endswith('.gs')
test(case,
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + ['--profile', 'posix', '--pkg', 'posix', '--pkg', 'linux',
join_paths(meson.current_source_dir(), case)],
env: test_envars,
+ suite: suite[0],
)
endif
endforeach
foreach case : test_cases_version_check
+ suite = case.split('/')
if case.endswith('.vala') or case.endswith('.gs')
test(case,
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + [join_paths(meson.current_source_dir(), case)],
env: test_envars + ['PKG_CONFIG_PATH=' + join_paths(meson.current_source_dir(),
'version')],
+ suite: suite[0],
)
else
invalid_case = run_command(preparetest,
@@ -1491,6 +1503,7 @@ foreach case : test_cases_version_check
should_fail: true,
args: vala_flags + [case.underscorify() + '.vala'],
env: test_envars + ['PKG_CONFIG_PATH=' + join_paths(meson.current_source_dir(),
'version')],
+ suite: suite[0],
)
endif
endforeach
diff --git a/valadoc/tests/meson.build b/valadoc/tests/meson.build
index 6c6be7dd5..24320e5ca 100644
--- a/valadoc/tests/meson.build
+++ b/valadoc/tests/meson.build
@@ -42,11 +42,13 @@ foreach flag : supported_test_cflags
endforeach
foreach case : test_cases
+ suite = case.split('/')
test(case,
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + [join_paths(meson.current_source_dir(), case)],
depends: [valacore_lib, libvaladoc_lib]
+ suite: suite[0],
)
endforeach
@@ -67,4 +69,5 @@ driver_exe = executable('driver',
test('valadoc/driver',
driver_exe,
workdir: meson.current_build_dir(),
+ suite: 'valadoc',
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]