diff options
author | Al Semjonovs <asemjonovs@google.com> | 2023-01-12 13:57:48 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-17 18:50:44 +0000 |
commit | 1959c156c77804a646d531942bf01949f2f7f64f (patch) | |
tree | 0ff3b7183074310fb8fb2a9331908f7c2dcd3ca8 | |
parent | d132fda9205d814f9c0c2a1b11786e0fb48ae35d (diff) | |
download | chrome-ec-1959c156c77804a646d531942bf01949f2f7f64f.tar.gz |
zephyr:test: Split console command tests into its own suite.
Create a new test suite for console commands. Current default
test suite takes excessive time to complete leading to increasing
the timeout times.
BUG=None
BRANCH=None
TEST=./twister -T zephyr/test
Change-Id: Idb453b0b8f7cc9a61265ac287310772f1b8f24a2
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4159984
Reviewed-by: Simon Glass <sjg@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r-- | zephyr/test/drivers/CMakeLists.txt | 1 | ||||
-rw-r--r-- | zephyr/test/drivers/Kconfig | 3 | ||||
-rw-r--r-- | zephyr/test/drivers/default/CMakeLists.txt | 41 | ||||
-rw-r--r-- | zephyr/test/drivers/default/src/console_cmd/CMakeLists.txt | 47 | ||||
-rw-r--r-- | zephyr/test/drivers/testcase.yaml | 6 |
5 files changed, 57 insertions, 41 deletions
diff --git a/zephyr/test/drivers/CMakeLists.txt b/zephyr/test/drivers/CMakeLists.txt index 2bcc13201f..5ca57abe1b 100644 --- a/zephyr/test/drivers/CMakeLists.txt +++ b/zephyr/test/drivers/CMakeLists.txt @@ -13,6 +13,7 @@ get_target_property(TEST_SOURCES app SOURCES) # Add linked suites here add_subdirectory_ifdef(CONFIG_LINK_TEST_SUITE_DEFAULT default) +add_subdirectory_ifdef(CONFIG_LINK_TEST_SUITE_DEFAULT_CONSOLE_CMDS default/src/console_cmd) add_subdirectory_ifdef(CONFIG_LINK_TEST_SUITE_ANX7447 anx7447) add_subdirectory_ifdef(CONFIG_LINK_TEST_SUITE_AP_MUX_CONTROL ap_mux_control) add_subdirectory_ifdef(CONFIG_LINK_TEST_SUITE_AP_VDM_CONTROL ap_vdm_control) diff --git a/zephyr/test/drivers/Kconfig b/zephyr/test/drivers/Kconfig index 51e5e00038..2b728c1201 100644 --- a/zephyr/test/drivers/Kconfig +++ b/zephyr/test/drivers/Kconfig @@ -8,6 +8,9 @@ config BUG_249829957 config LINK_TEST_SUITE_DEFAULT bool "Link and test the default test suite" +config LINK_TEST_SUITE_DEFAULT_CONSOLE_CMDS + bool "Link and test the default console commands test suite" + config LINK_TEST_SUITE_ANX7447 bool "Link and test the anx7447 tests" diff --git a/zephyr/test/drivers/default/CMakeLists.txt b/zephyr/test/drivers/default/CMakeLists.txt index 3b022d0562..305c58be82 100644 --- a/zephyr/test/drivers/default/CMakeLists.txt +++ b/zephyr/test/drivers/default/CMakeLists.txt @@ -8,47 +8,6 @@ target_sources(app PRIVATE src/charge_manager.c src/charge_state_prevent_power_on.c src/console.c - src/console_cmd/adc.c - src/console_cmd/battery.c - src/console_cmd/cbi.c - src/console_cmd/charge_manager.c - src/console_cmd/charge_state.c - src/console_cmd/charger.c - src/console_cmd/chargen.c - src/console_cmd/accelinit.c - src/console_cmd/accelinfo.c - src/console_cmd/accelspoof.c - src/console_cmd/accelrate.c - src/console_cmd/accelrange.c - src/console_cmd/accelread.c - src/console_cmd/accelres.c - src/console_cmd/button.c - src/console_cmd/crash.c - src/console_cmd/cutoff.c - src/console_cmd/ec_features.c - src/console_cmd/gpio.c - src/console_cmd/i2c_portmap.c - src/console_cmd/md.c - src/console_cmd/hcdebug.c - src/console_cmd/hibdelay.c - src/console_cmd/hostevent.c - src/console_cmd/panic_output.c - src/console_cmd/port80.c - src/console_cmd/powerindebug.c - src/console_cmd/power_button.c - src/console_cmd/pwr_avg.c - src/console_cmd/rtc.c - src/console_cmd/rw.c - src/console_cmd/shared_mem.c - src/console_cmd/sleepmask.c - src/console_cmd/sleeptimeout.c - src/console_cmd/switch.c - src/console_cmd/sysinfo.c - src/console_cmd/tcpci_dump.c - src/console_cmd/usb_pd_console.c - src/console_cmd/vboot_hash.c - src/console_cmd/version.c - src/console_cmd/waitms.c src/cros_cbi.c src/espi.c src/gpio.c diff --git a/zephyr/test/drivers/default/src/console_cmd/CMakeLists.txt b/zephyr/test/drivers/default/src/console_cmd/CMakeLists.txt new file mode 100644 index 0000000000..7fdabd1c52 --- /dev/null +++ b/zephyr/test/drivers/default/src/console_cmd/CMakeLists.txt @@ -0,0 +1,47 @@ +# Copyright 2023 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +target_sources(app PRIVATE + adc.c + battery.c + cbi.c + charge_manager.c + charge_state.c + charger.c + chargen.c + accelinit.c + accelinfo.c + accelspoof.c + accelrate.c + accelrange.c + accelread.c + accelres.c + button.c + crash.c + cutoff.c + ec_features.c + gpio.c + i2c_portmap.c + md.c + hcdebug.c + hibdelay.c + hostevent.c + panic_output.c + port80.c + powerindebug.c + power_button.c + pwr_avg.c + rtc.c + rw.c + shared_mem.c + sleepmask.c + sleeptimeout.c + switch.c + sysinfo.c + tcpci_dump.c + usb_pd_console.c + vboot_hash.c + version.c + waitms.c +)
\ No newline at end of file diff --git a/zephyr/test/drivers/testcase.yaml b/zephyr/test/drivers/testcase.yaml index aa56d41966..9b970c77be 100644 --- a/zephyr/test/drivers/testcase.yaml +++ b/zephyr/test/drivers/testcase.yaml @@ -25,6 +25,12 @@ tests: - CONFIG_PLATFORM_EC_LID_ANGLE_UPDATE=y - CONFIG_PLATFORM_EC_USB_PD_DPS=y - CONFIG_PLATFORM_EC_I2C_PASSTHRU_RESTRICTED=y + drivers.default.console_cmds: + extra_args: CONF_FILE="prj.conf;default/prj.conf" + DTC_OVERLAY_FILE="default/boards/native_posix.overlay" + extra_configs: + - CONFIG_LINK_TEST_SUITE_DEFAULT_CONSOLE_CMDS=y + - CONFIG_PLATFORM_EC_BATTERY_CUT_OFF=y drivers.default.mock_power: timeout: 360 extra_args: CONF_FILE="prj.conf;default/prj.conf" |