mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
Reshuffle the a11y tests a bit
This commit is contained in:
parent
c57b402d9d
commit
8c41365437
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user