forked from AuroraMiddleware/gtk
Install gdk tests
This was missing so far
This commit is contained in:
parent
b0b0095cf8
commit
4c64509b28
4
testsuite/gdk/cairo.test.in
Normal file
4
testsuite/gdk/cairo.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/cairo --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
4
testsuite/gdk/cursor.test.in
Normal file
4
testsuite/gdk/cursor.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/cursor --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
4
testsuite/gdk/display.test.in
Normal file
4
testsuite/gdk/display.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/display --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
4
testsuite/gdk/encoding.test.in
Normal file
4
testsuite/gdk/encoding.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/encoding --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
4
testsuite/gdk/keysyms.test.in
Normal file
4
testsuite/gdk/keysyms.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/keysyms --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
@ -1,6 +1,8 @@
|
||||
testexecdir = join_paths(installed_test_bindir, 'gdk')
|
||||
testdatadir = join_paths(installed_test_datadir, 'gdk')
|
||||
|
||||
tests = [
|
||||
'cairo',
|
||||
# 'check-gdk-cairo' # disabled in Makefile.am
|
||||
'cursor',
|
||||
'display',
|
||||
'encoding',
|
||||
@ -10,14 +12,29 @@ tests = [
|
||||
'seat',
|
||||
]
|
||||
|
||||
test_env = environment()
|
||||
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||
|
||||
foreach t : tests
|
||||
test_exe = executable(t, '@0@.c'.format(t), dependencies : libgtk_dep)
|
||||
test_exe = executable(t, '@0@.c'.format(t),
|
||||
dependencies: libgtk_dep,
|
||||
install: get_option('install-tests'),
|
||||
install_dir: testexecdir)
|
||||
|
||||
test(t, test_exe,
|
||||
args: [ '--tap', '-k' ],
|
||||
env: installed_test_env,
|
||||
suite: 'gdk')
|
||||
|
||||
test(t, test_exe, suite : 'gdk', env : test_env)
|
||||
endforeach
|
||||
|
||||
# TODO: installed tests + .test files
|
||||
if get_option('install-tests')
|
||||
test_cdata = configuration_data()
|
||||
test_cdata.set('libexecdir', gtk_libexecdir)
|
||||
|
||||
foreach t : tests
|
||||
configure_file(input: '@0@.test.in'.format(t),
|
||||
output: '@0@.test'.format(t),
|
||||
configuration: test_cdata,
|
||||
install: true,
|
||||
install_dir: testdatadir)
|
||||
endforeach
|
||||
|
||||
endif
|
||||
|
4
testsuite/gdk/rectangle.test.in
Normal file
4
testsuite/gdk/rectangle.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/rectangle --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
4
testsuite/gdk/rgba.test.in
Normal file
4
testsuite/gdk/rgba.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/rgba --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
4
testsuite/gdk/seat.test.in
Normal file
4
testsuite/gdk/seat.test.in
Normal file
@ -0,0 +1,4 @@
|
||||
[Test]
|
||||
Exec=@libexecdir@/installed-tests/gtk-4.0/gdk/seat --tap -k
|
||||
Type=session
|
||||
Output=TAP
|
Loading…
Reference in New Issue
Block a user