Skip to content
Snippets Groups Projects
Commit 8edc32d2 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Generalize TAP test template


GLib-based tests want a --tap argument, but other test scripts
generally will not. Similarly, it's fairly common to want to use an
interpreter or wrapper around a test.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 7840ee5a
No related branches found
No related tags found
1 merge request!490Tests improvements
......@@ -184,7 +184,9 @@ foreach test_info : tests
if get_option('installed_tests')
test_conf = configuration_data()
test_conf.set('tests_dir', join_paths(get_option('prefix'), tests_dir))
test_conf.set('wrapper', '')
test_conf.set('program', 'test-' + test_name)
test_conf.set('args', '--tap')
configure_file(
input: files('template.test.in'),
output: test_name + '.test',
......
[Test]
Type=session
Exec=@tests_dir@/@program@ --tap
Exec=@wrapper@ @tests_dir@/@program@ @args@
Output=TAP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment