~tristan957/harvest-almanac

ref: 8aa3cb1e48a9fab71ab7c3c6131eed3ed426b5bd harvest-almanac/harvest-glib/tests/meson.build -rw-r--r-- 537 bytes
8aa3cb1eTristan Partin I have no clue why this worked (send help) 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
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,
		c_args: c_args,
	)

	test(test_name, exe, env: test_env)
endforeach