File: meson.build

package info (click to toggle)
criterion 2.3.3git1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,832 kB
  • sloc: ansic: 17,852; cpp: 795; python: 72; sh: 27; makefile: 23
file content (24 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sh   = find_program('sh', required: false)
cram = find_program('cram', required: false)
if sh.found() and cram.found()
	env = environment()
	env.prepend('PATH',
			join_paths(meson.current_build_dir(), '..', '..', 'samples'),
			join_paths(meson.current_build_dir(), '..', 'full'))
	env.set('CRITERION_ALWAYS_SUCCEED', '1')
	env.set('CRITERION_DISABLE_TIME_MEASUREMENTS', '1')
	env.set('CRITERION_JOBS', '1')
	env.set('CRITERION_SHORT_FILENAME', '1')
	env.set('LC_ALL', 'en_US.utf8')
	env.set('MSYS2_ARG_CONV_EXCL', '--filter=')
	env.set('TERM', 'dumb')
	if has_cxx
		env.set('CXX_SUPPORT', '1')
	endif

	test('cram tests', cram,
			timeout: 240,
			args: [meson.current_source_dir()],
			env: env)
endif