aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.c
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2022-10-24 12:57:09 +0300
committerAnastasia Klimchuk <aklm@chromium.org>2022-11-29 21:07:43 +0000
commit67e5c6afa43cbf3a876ae43a77e759d001864757 (patch)
tree79782c3cc5c3acccc91769fea46f95ca456ae6b7 /tests/tests.c
parentd0fc4e76e16b6c413519fcfaba9f382afd080407 (diff)
downloadflashrom-67e5c6afa43cbf3a876ae43a77e759d001864757.tar.gz
flashrom-67e5c6afa43cbf3a876ae43a77e759d001864757.tar.bz2
flashrom-67e5c6afa43cbf3a876ae43a77e759d001864757.zip
tests: add probe lifecycle test for ch341a_spi
This test upgrades mocks to simulate a read request. Read buffer is populated with chip manufacture id and chip model id to emulate successful probing. TEST=ninja test Change-Id: I0a2d5591d097435fc69719e1d9bd153433425821 Signed-off-by: Alexander Goncharov <chat@joursoir.net> Reviewed-on: https://review.coreboot.org/c/flashrom/+/68755 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c
index 2461ff6e..fe702046 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -421,6 +421,7 @@ int main(int argc, char *argv[])
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),
+ cmocka_unit_test(ch341a_spi_probe_lifecycle_test_success),
};
ret |= cmocka_run_group_tests_name("lifecycle.c tests", lifecycle_tests, NULL, NULL);