aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 8a4158a863dd318b9597cda75e7b6e24160a9087 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
NIX_EVAL_JOBS_PATH = get_option('NIX_EVAL_JOBS_PATH')
e = executable(
	'evanix',
        [
		'evanix.c',
		'jobs.c',
		'util.c',
		'queue.c',
		'build.c',
		'jobid.c',
		'solver_conformity.c',
		'solver_highs.c',
		'solver_sjf.c',
		'nix.c',
	],

	dependencies: [
		cjson_dep,
		highs_dep,
		sqlite_dep,
		nix_store_dep
	],

	include_directories: evanix_inc,
	install: true,
	c_args: [f'-DNIX_EVAL_JOBS_PATH=@NIX_EVAL_JOBS_PATH@'],
)


foreach solver : ['sjf', 'highs', 'conformity']
	test(f'evanix-@solver@', e, args: [
		'--dry-run',
		'--close-unused-fd=false',
		'--max-builds=3',
		'--solver-report',
		f'--solver=@solver@',
		'--flake',
		'../#packages.x86_64-linux'
	])
endforeach