2020-01-17 01:02:55 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'css', 'change')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
|
|
|
|
|
|
|
test_change = executable(
|
|
|
|
'test-css-change',
|
|
|
|
'test-css-change.c',
|
2020-03-06 17:16:54 +00:00
|
|
|
c_args: common_cflags,
|
2020-01-17 01:02:55 +00:00
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir,
|
|
|
|
)
|
|
|
|
test('change', test_change,
|
|
|
|
args: [ '--tap', '-k' ],
|
2020-03-20 13:39:56 +00:00
|
|
|
protocol: 'tap',
|
2020-05-15 16:57:49 +00:00
|
|
|
env: [
|
2020-01-17 01:02:55 +00:00
|
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
|
|
|
|
],
|
|
|
|
suite: 'css')
|
|
|
|
|
|
|
|
test_data = [
|
2020-01-17 01:04:00 +00:00
|
|
|
'test1.css', 'test1.ui', 'test1.nodes',
|
|
|
|
'test2.css', 'test2.ui', 'test2.nodes',
|
|
|
|
'test3.css', 'test3.ui', 'test3.nodes',
|
|
|
|
'test4.css', 'test4.ui', 'test4.nodes',
|
|
|
|
'test5.css', 'test5.ui', 'test5.nodes',
|
2020-01-17 01:02:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if get_option('install-tests')
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('libexecdir', gtk_libexecdir)
|
|
|
|
configure_file(input: 'change.test.in',
|
|
|
|
output: 'change.test',
|
|
|
|
configuration: conf,
|
|
|
|
install_dir: testdatadir)
|
|
|
|
|
|
|
|
install_data(test_data, install_dir: testexecdir)
|
|
|
|
|
|
|
|
endif
|