1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-08-17 12:20:15 +02:00

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>
This commit is contained in:
Edward O'Callaghan
2020-05-22 16:46:52 +10:00
committed by Edward O'Callaghan
parent be4682dc44
commit 629b8f06ec
4 changed files with 45 additions and 0 deletions

View File

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