diff options
author | Edward O'Callaghan <quasisec@google.com> | 2020-05-22 16:46:52 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2020-06-17 11:07:35 +0000 |
commit | 629b8f06ec59d2112539efe161f121ab22d99ec8 (patch) | |
tree | 2cd3f3d1e603b5044e34c298a3bc2870e2d559e6 /tests/tests.c | |
parent | be4682dc4416f1a54ab3c9592d97b622b5cd27d2 (diff) | |
download | flashrom-629b8f06ec59d2112539efe161f121ab22d99ec8.tar.gz flashrom-629b8f06ec59d2112539efe161f121ab22d99ec8.tar.bz2 flashrom-629b8f06ec59d2112539efe161f121ab22d99ec8.zip |
tests/: Add flashrom.c unit tests
BUG=b:157280555
BRANCH=none
TEST=builds
Change-Id: I2d9213f98c6c9639f2417466ba4895117e8d600a
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/41646
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 5 |
1 files changed, 5 insertions, 0 deletions
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), |