File: meson.build

package info (click to toggle)
fastd 22-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,872 kB
  • sloc: asm: 15,114; ansic: 11,284; yacc: 599; sh: 472; makefile: 160; python: 35; perl: 11
file content (28 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (3)
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
if not get_option('build_tests')
	subdir_done()
endif

cmocka_dep = dependency('cmocka')

test_deps = declare_dependency(
	include_directories: srcdir,
	link_whole: libfastd,
	dependencies: cmocka_dep,
)
test_env = ['CMOCKA_MESSAGE_OUTPUT=TAP']

test_uhash = executable(
	'test-uhash', 'test-uhash.c',
	dependencies: test_deps,
)
test('uhash',
	test_uhash,
	env : test_env,
	protocol : 'tap',
)

benchmark_uhash = executable(
	'benchmark-uhash', 'benchmark-uhash.c',
	dependencies: test_deps,
)
benchmark('uhash', benchmark_uhash, timeout : 600)