~tristan957/harvest-almanac

ref: b19b4d60a13ba5a22d70f179a44f59cf0f5a1cdb harvest-almanac/harvest-glib/tests/meson.build -rw-r--r-- 587 bytes
b19b4d60Tristan Partin licensing: Add top level license file to redirect to subproject licenses 1 year, 5 months ago
                                                                                
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
harvest_tests = {
	'user': {}
}

dependencies = [
	harvest_glib_dep,
	json_glib_dep,
	libgio_dep,
	libsoup_dep,
]

test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())

c_args = [
	'-D__HARVEST_COMPILATION__',
	'-DG_LOG_DOMAIN="harvest-glib-testing"',
]

foreach test_name, value : harvest_tests
	exe = executable(
		test_name,
		test_name + '.c',
		dependencies: dependencies,
		include_directories: include_directories('..'),
		c_args: c_args,
	)

	test(test_name, exe, env: test_env)
endforeach