mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-17 04:14:42 +02:00
tests/: Add CMocka unit-test infrastructure
This adds the CMocka unit-testing infrastructure into the meson build system which we will latter follow up with unit-tests for flashrom's core logic. BUG=b:157280555 BRANCH=none TEST=builds Change-Id: I66665f56627b3d99049176bfbebbd771b080370a Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/41622 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
6f793e4500
commit
46f2d4e488
20
meson.build
20
meson.build
@@ -424,3 +424,23 @@ executable(
|
||||
)
|
||||
|
||||
subdir('util')
|
||||
|
||||
# unit-test framework
|
||||
cmocka_dep = dependency(
|
||||
'cmocka',
|
||||
fallback: ['cmocka', 'cmocka_dep']
|
||||
)
|
||||
flashrom_test_dep = declare_dependency(
|
||||
include_directories : include_directories('.'),
|
||||
sources : [
|
||||
srcs,
|
||||
'cli_common.c',
|
||||
'cli_output.c',
|
||||
'flashrom.c',
|
||||
],
|
||||
dependencies : [
|
||||
deps,
|
||||
],
|
||||
)
|
||||
|
||||
subdir('tests')
|
||||
|
Reference in New Issue
Block a user