From d0fc4e76e16b6c413519fcfaba9f382afd080407 Mon Sep 17 00:00:00 2001 From: Alexander Goncharov Date: Fri, 9 Sep 2022 09:53:29 +0300 Subject: tests: add basic lifecycle test for ch341a_spi TEST=the following scenarios run tests successfully 1) ch341a_spi is enabled result: all tests run and pass, including ch341a 2) ch341a_spi is disabled result: ch341a_spi test is skipped, the rest of tests run and pass 3) libusb isn't presented in the system result: tests for usb programmers are skipped, the rest of tests run normally Change-Id: If28fbe09ad685082152aa3a7e8d5a150169aee9e Signed-off-by: Alexander Goncharov Reviewed-on: https://review.coreboot.org/c/flashrom/+/67664 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk --- tests/tests.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/tests.c') diff --git a/tests/tests.c b/tests/tests.c index ea416b83..2461ff6e 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -420,6 +420,7 @@ int main(int argc, char *argv[]) cmocka_unit_test(mediatek_i2c_no_allow_brick_test_success), cmocka_unit_test(realtek_mst_basic_lifecycle_test_success), cmocka_unit_test(realtek_mst_no_allow_brick_test_success), + cmocka_unit_test(ch341a_spi_basic_lifecycle_test_success), }; ret |= cmocka_run_group_tests_name("lifecycle.c tests", lifecycle_tests, NULL, NULL); -- cgit v1.2.3