aboutsummaryrefslogtreecommitdiffstats
path: root/tests/usb_unittests.h
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2022-09-09 09:53:29 +0300
committerAnastasia Klimchuk <aklm@chromium.org>2022-11-29 21:05:00 +0000
commitd0fc4e76e16b6c413519fcfaba9f382afd080407 (patch)
tree0005e4e5e95e29cc9b0450464cc13ff564a77735 /tests/usb_unittests.h
parent224ce8168791c5914e4289d700ae15f3f9926c8d (diff)
downloadflashrom-d0fc4e76e16b6c413519fcfaba9f382afd080407.tar.gz
flashrom-d0fc4e76e16b6c413519fcfaba9f382afd080407.tar.bz2
flashrom-d0fc4e76e16b6c413519fcfaba9f382afd080407.zip
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 <chat@joursoir.net> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67664 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'tests/usb_unittests.h')
-rw-r--r--tests/usb_unittests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/usb_unittests.h b/tests/usb_unittests.h
index f4d83f12..c81e1814 100644
--- a/tests/usb_unittests.h
+++ b/tests/usb_unittests.h
@@ -25,7 +25,7 @@
#ifndef _USB_UNITTESTS_H_
#define _USB_UNITTESTS_H_
-#if CONFIG_RAIDEN_DEBUG_SPI == 1 || CONFIG_DEDIPROG == 1
+#if CONFIG_RAIDEN_DEBUG_SPI == 1 || CONFIG_DEDIPROG == 1 || CONFIG_CH341A_SPI == 1
#include <libusb.h>