summaryrefslogtreecommitdiff
path: root/testsuite/gdk/meson.build
blob: 84b503daa56d8b25829b25bbfc4bfd5ab643bb79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
testexecdir = join_paths(installed_test_bindir, 'gdk')
testdatadir = join_paths(installed_test_datadir, 'gdk')

tests = [
  'cairo',
  'cursor',
  'display',
  'encoding',
  'keysyms',
  'rectangle',
  'rgba',
  'seat',
]

foreach t : tests
  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')

  if get_option('install-tests')
    test_cdata = configuration_data()
    test_cdata.set('testexecdir', testexecdir)
    test_cdata.set('test', t)
    configure_file(input: 'gdk.test.in',
                   output: '@0@.test'.format(t),
                   configuration: test_cdata,
                   install: true,
                   install_dir: testdatadir)
  endif
endforeach