aboutsummaryrefslogblamecommitdiff
path: root/src/meson.build
blob: 4894e1ced306f409ae6234cf6a1c348fab76f0ac (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     

                 



                           
                          
                          
                          
                                      
                                 
                               
          

                                        
                                               
                      
                                                               

 

                                               
                                           

                                          
                                 





                                           
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(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