Reshuffle the a11y tests a bit

This commit is contained in:
Matthias Clasen 2017-10-10 00:16:10 -04:00
parent c57b402d9d
commit 8c41365437
9 changed files with 29 additions and 23 deletions

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/children --tap"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/children --tap"
Type=session
Output=TAP

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/derive"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/derive"
Type=session

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/misc --tap"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/misc --tap"
Type=session
Output=TAP

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 GTK_CSD=1 @libexecdir@/installed-tests/gtk+/accessibility-dump -k --verbose --directory @libexecdir@/installed-tests/gtk+/a11ytests"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 GTK_CSD=1 @libexecdir@/installed-tests/gtk-4.0/a11y/accessibility-dump -k --verbose --directory @libexecdir@/installed-tests/gtk-4.0/a11y"
Type=session

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/text --tap"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/text --tap"
Type=session
Output=TAP

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/tree-relationships --tap"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/tree-relationships --tap"
Type=session
Output=TAP

View File

@ -1,4 +1,5 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/util --tap"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/util --tap"
:q
Type=session
Output=TAP

View File

@ -1,4 +1,4 @@
[Test]
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/value --tap"
Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/value --tap"
Type=session
Output=TAP

View File

@ -10,12 +10,15 @@ a11y_tests = [
'util',
]
testexecdir = join_paths(installed_test_bindir, 'a11y')
foreach t: a11y_tests
test_prefix = 'a11y'
test ('@0@/@1@'.format(test_prefix, t),
executable ('@0@_@1@'.format(test_prefix, t.underscorify()),
'@0@.c'.format(t),
test (t,
executable (t, '@0@.c'.format(t),
install: get_option('install-tests'),
install_dir: testexecdir,
dependencies: libgtk_dep),
args: [ '--tap', '-k', ],
env: installed_test_env)
@ -32,17 +35,6 @@ a11y_installed_tests = [
'a11ymisc.test',
]
test_cdata = configuration_data()
test_cdata.set('libexecdir', get_option('libexecdir'))
foreach t: a11y_installed_tests
configure_file(input: '@0@.in'.format(t),
output: t,
configuration: test_cdata,
install: true,
install_dir: installed_test_datadir)
endforeach
installed_test_data = [
'hello-world.ui',
'hello-world.txt',
@ -120,4 +112,17 @@ installed_test_data = [
'tooltips.txt',
]
install_data(installed_test_data, install_dir: join_paths(installed_test_bindir, 'a11ytests'))
if get_option('install-tests')
test_cdata = configuration_data()
test_cdata.set('libexecdir', gtk_libexecdir)
foreach t: a11y_installed_tests
configure_file(input: '@0@.in'.format(t),
output: t,
configuration: test_cdata,
install: true,
install_dir: installed_test_datadir)
endforeach
install_data(installed_test_data, install_dir: testexecdir)
endif