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