From 629b8f06ec59d2112539efe161f121ab22d99ec8 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 22 May 2020 16:46:52 +1000 Subject: tests/: Add flashrom.c unit tests BUG=b:157280555 BRANCH=none TEST=builds Change-Id: I2d9213f98c6c9639f2417466ba4895117e8d600a Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/41646 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- tests/tests.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/tests.c') diff --git a/tests/tests.c b/tests/tests.c index 82563acc7..247c81192 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -21,6 +21,11 @@ int main(void) { int ret = 0; + const struct CMUnitTest flashrom_tests[] = { + cmocka_unit_test(flashbuses_to_text_test_success), + }; + ret |= cmocka_run_group_tests_name("flashrom.c tests", flashrom_tests, NULL, NULL); + const struct CMUnitTest spi25_tests[] = { cmocka_unit_test(spi_write_enable_test_success), cmocka_unit_test(spi_write_disable_test_success), -- cgit v1.2.3