summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-04-14 12:19:02 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-04-14 13:13:51 +0100
commit2f6d743908a35aea7e984a4db3f3dd8cf26577de (patch)
treee30e5620dd15db43bb8a12f0c71ecdb85fa81bea
parent2655c5c57cc7fc2f99b0a49dfeeb749a0061f42b (diff)
downloadpango-2f6d743908a35aea7e984a4db3f3dd8cf26577de.tar.gz
tests: Use idiomatic Meson and GTest options
- Switch to an environment() object, to allow for proper escaping - Use the TAP protocol with GTest - Put all tests under the Pango suite
-rw-r--r--tests/meson.build16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 4ffffa4c..9b78fbfd 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -10,11 +10,10 @@ if host_system == 'windows'
test_cflags += '-DHAVE_WIN32'
endif
-test_env = [
- 'srcdir=@0@'.format(meson.current_source_dir()),
- 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
-]
+test_env = environment()
+test_env.set('srcdir', meson.current_source_dir())
+test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
+test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
tests = [
[ 'test-coverage' ],
@@ -177,5 +176,10 @@ foreach t: tests
install: get_option('install-tests'),
install_dir: installed_test_bindir)
- test(name, bin, env: test_env)
+ test(name, bin,
+ args: ['-k', '--tap'],
+ env: test_env,
+ suite: 'pango',
+ protocol: 'tap',
+ )
endforeach