diff options
Diffstat (limited to 'meson/test cases/unit/2 testsetups/meson.build')
-rw-r--r-- | meson/test cases/unit/2 testsetups/meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meson/test cases/unit/2 testsetups/meson.build b/meson/test cases/unit/2 testsetups/meson.build new file mode 100644 index 000000000..1e8f0184f --- /dev/null +++ b/meson/test cases/unit/2 testsetups/meson.build @@ -0,0 +1,26 @@ +project('testsetups', 'c') + +vg = find_program('valgrind') + +# This is only set when running under Valgrind test setup. +env = environment() +env.set('TEST_ENV', '1') + +add_test_setup('valgrind', + exe_wrapper : [vg, '--error-exitcode=1', '--leak-check=full'], + timeout_multiplier : 100, + env : env) + +buggy = executable('buggy', 'buggy.c', 'impl.c') +test('Test buggy', buggy, suite: ['buggy']) + +envcheck = find_program('envcheck.py') +test('test-env', envcheck) + +add_test_setup('empty') +add_test_setup('onlyenv', env : env) +add_test_setup('onlyenv2', env : 'TEST_ENV=1') +add_test_setup('onlyenv3', env : ['TEST_ENV=1']) +add_test_setup('wrapper', exe_wrapper : [vg, '--error-exitcode=1']) +add_test_setup('timeout', timeout_multiplier : 20) +add_test_setup('good', exclude_suites : 'buggy') |