~tristan957/harvest-almanac

ref: d63eace6f68c78f1e90f53295e5c4eaa8e1678c3 harvest-almanac/harvest-glib/tests/meson.build -rw-r--r-- 482 bytes
d63eace6Tristan Partin harvest-glib: added much better support for JSON deserialization 1 year, 10 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
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())

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

	test(test_name, exe, env: test_env)
endforeach