From 46f2d4e488db66b37e892b8fa621eeed0fe2f284 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 20 May 2020 20:10:20 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/41622 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- tests/include/test.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/include/test.h (limited to 'tests/include') diff --git a/tests/include/test.h b/tests/include/test.h new file mode 100644 index 00000000..b4e0dd2b --- /dev/null +++ b/tests/include/test.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* This file is part of the coreboot project. */ + +#ifndef _TESTS_TEST_H +#define _TESTS_TEST_H + +/* + * Standard test header that should be included in all tests. For now it just encapsulates the + * include dependencies for Cmocka. Test-specific APIs that are so generic we would want them + * available everywhere could also be added here. + */ + +#include +#include +#include +#include + +#endif /* _TESTS_TEST_H */ -- cgit v1.2.3