~tristan957/harvest-almanac

ref: 712f6530d46b1eb6e15e8acc62bbdbf8790a8d95 harvest-almanac/harvest-glib/tests/meson.build -rw-r--r-- 553 bytes
712f6530Tristan Partin meson: fixed test and added include guard to generated enums file 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
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__'
]

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

	test(test_name, exe, env: test_env)
endforeach