aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: c81958c9d85d257eda64c05a528dc17334910e71 (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
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',
	],

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


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