Make css node and style tests run

Just like the previous commit, we need to set G_TEST_SRCDIR.
This commit is contained in:
Matthias Clasen 2017-10-12 16:05:32 +08:00
parent 37f1d180c3
commit 18519a7ca0
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,15 @@
test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
test_env.set('GSETTINGS_BACKEND', 'memory')
test_env.set('G_ENABLE_DIAGNOSTIC', '0')
testexecdir = join_paths(installed_test_bindir, 'css', 'nodes')
test_nodes = executable('test-css-nodes', 'test-css-nodes.c',
install: get_option('install-tests'),
install_dir: testexecdir,
dependencies: libgtk_dep)
test('test-nodes', test_nodes, suite: 'css')
test('test-nodes', test_nodes, suite: 'css', env: test_env)
test_data = [
'box.ltr.nodes',

View File

@ -1,3 +1,9 @@
test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
test_env.set('GSETTINGS_BACKEND', 'memory')
test_env.set('G_ENABLE_DIAGNOSTIC', '0')
testexecdir = join_paths(installed_test_bindir, 'css', 'style')
cssresources = gnome.compile_resources(
@ -14,7 +20,7 @@ test_style = executable(
install_dir: testexecdir,
dependencies: libgtk_dep,
)
test('test-style', test_style, suite: 'css')
test('test-style', test_style, suite: 'css', env: test_env)
test_data = [
'adjacent-states.css',