32 lines
1,002 B
Meson
32 lines
1,002 B
Meson
# Integration tests for CLI commands (Catch2)
|
|
|
|
dbg = (get_option('buildtype') == 'debug')
|
|
if (get_option('enable-integration-tests') or dbg) and tests_has_cli and catch2_dep.found()
|
|
cli_integration_srcs = files(
|
|
'grep_path_tree_catch2_test.cpp',
|
|
)
|
|
|
|
cli_integ_exe = executable('yams_integration_cli_tests', cli_integration_srcs,
|
|
include_directories: incs,
|
|
dependencies: [catch2_dep, catch2_main_dep, test_deps],
|
|
cpp_args: ['-DYAMS_TESTING=1'],
|
|
install: false,
|
|
)
|
|
|
|
test('integration_cli', cli_integ_exe,
|
|
args: ['--allow-running-no-tests'],
|
|
suite: ['integration', 'cli'],
|
|
env: {
|
|
'YAMS_TEST_SAFE_SINGLE_INSTANCE': '1',
|
|
'YAMS_DISABLE_VECTORS': '1',
|
|
},
|
|
is_parallel: false,
|
|
timeout: get_option('integration-timeout'),
|
|
)
|
|
elif get_option('enable-integration-tests')
|
|
if not catch2_dep.found()
|
|
message('integration_cli suite disabled (Catch2 not found).')
|
|
else
|
|
message('integration_cli suite disabled (cli not built).')
|
|
endif
|
|
endif
|