mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 06:53:18 +02:00
tests/: Add spi25.c unit tests
BUG=b:157280555 BRANCH=none TEST=builds Change-Id: I47112952835ce2c4c773a9d90379ff8ceefaaf9a Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/41645 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
46f2d4e488
commit
41f48c75a2
@ -21,5 +21,18 @@ int main(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
const struct CMUnitTest spi25_tests[] = {
|
||||
cmocka_unit_test(spi_write_enable_test_success),
|
||||
cmocka_unit_test(spi_write_disable_test_success),
|
||||
cmocka_unit_test(probe_spi_rdid_test_success),
|
||||
cmocka_unit_test(probe_spi_rdid4_test_success),
|
||||
cmocka_unit_test(probe_spi_rems_test_success),
|
||||
cmocka_unit_test(probe_spi_res1_test_success),
|
||||
cmocka_unit_test(probe_spi_res2_test_success),
|
||||
cmocka_unit_test(probe_spi_res3_test_success),
|
||||
cmocka_unit_test(probe_spi_at25f_test_success),
|
||||
};
|
||||
ret |= cmocka_run_group_tests_name("spi25.c tests", spi25_tests, NULL, NULL);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user