diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-02-17 09:22:23 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-23 03:13:00 +0000 |
commit | b9706f570201ea3fc5d55392f80dc5787122ca33 (patch) | |
tree | ae6f6e4666c85fdb8692a58b2dea6a07decb3f9a /zephyr/test/drivers/README.md | |
parent | e328bf3ec4768ac170a4b6d5c489f93ab1510074 (diff) | |
download | chrome-ec-b9706f570201ea3fc5d55392f80dc5787122ca33.tar.gz |
zmake: Implement zmake test v2
As described in go/zmake-cli-v2
Change zmake test to call zmake configure --test, unless the
--no-rebuild flag is used, in which case just run tests on existing
binaries. It is an error to use --no-rebuild, if you never did a zmake
build.
BRANCH=None
BUG=b:217788621
TEST=make clobber
zmake -j8 build herobrine test-drivers
zmake -j8 test --no-rebuild herobrine
zmake -j8 test --no-rebuild herobrine test-drivers
zmake -j8 test --no-rebuild herobrine test-drivers test-tasks
zmake -j8 build test-tasks
zmake -j8 test --no-rebuild herobrine test-drivers test-tasks
make clobber
zmake -j8 build --coverage herobrine test-drivers
zmake -j8 test --coverage --no-rebuild herobrine
zmake -j8 test --coverage --no-rebuild herobrine test-drivers
zmake -j8 test --coverage --no-rebuild herobrine test-drivers test-tasks
zmake -j8 build --coverage test-tasks
zmake -j8 test --coverage --no-rebuild herobrine test-drivers test-tasks
zmake -j8 test --coverage herobrine brya
zmake -j8 test --coverage --no-rebuild herobrine brya
zmake -j8 testall
zmake -j8 test --all
zmake -j8 test --all --no-rebuild
zmake -j8 test --host-tests-only
zmake -j8 test --host-tests-only --no-rebuild
zmake -j8 test --host-tests-only --coverage
zmake -j8 test --host-tests-only --coverage
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I90f23cd0061d97e42359e1d49f2331b71554e3a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3472683
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/test/drivers/README.md')
-rw-r--r-- | zephyr/test/drivers/README.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/test/drivers/README.md b/zephyr/test/drivers/README.md index cdde4d4f6c..11c913baa8 100644 --- a/zephyr/test/drivers/README.md +++ b/zephyr/test/drivers/README.md @@ -5,13 +5,13 @@ so we can test interactions between different subsystems easily. ## Run all the test suites ```bash -(chroot) zmake configure --test test-drivers +(chroot) zmake test test-drivers ``` To see all the output of zmake (for example if the build fails) ```bash -(chroot) zmake -l DEBUG -j 1 configure --test test-drivers +(chroot) zmake -l DEBUG -j 1 test test-drivers ``` ## Code coverage @@ -19,7 +19,7 @@ To see all the output of zmake (for example if the build fails) To calculate code coverage for this test only ```bash -(chroot) zmake configure --coverage --test test-drivers +(chroot) zmake test --coverage test-drivers (chroot) genhtml --branch-coverage -q \ -o build/zephyr/test-drivers/output/coverage_rpt \ build/zephyr/test-drivers/output/zephyr.info |