diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-05-25 07:51:23 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-25 02:33:04 -0700 |
commit | 661259ebff96a3acc1f72701b90ea2c4955addc6 (patch) | |
tree | d0fbe38a80af8c06728cfb325a5fef8f285373ba /test/utils_str.tasklist | |
parent | 3219d9988b4816f5dbbacfda038aa448e6065f61 (diff) | |
download | chrome-ec-661259ebff96a3acc1f72701b90ea2c4955addc6.tar.gz |
tests: Split utils in 2 subtests
utils test is a little too large for hammer's small RO, so we split
it in 2 test: utils and utils_str. Instead of one test that requires
about 8kb extra flash, we have 2 tests that take respectively
3.4kb (utils_str) and 4.6kb (utils) of extra flash.
BRANCH=none
BUG=chromium:726113
TEST=make BOARD=hammer tests -j
util/flash_ec --board=hammer --image=build/hammer/test-utils.bin
runtest => pass
Repeat with test-utils_str.bin
TEST=Before this change:
make runtests -j
./util/run_host_test utils | grep Running | sort > old
Apply this change:
make runtests -j
(./util/run_host_test utils; ./util/run_host_test utils_str) \
| grep Running | sort > new
diff old new => No difference (except timing)
Change-Id: I917d572e671d6ce0a8799508761f55de7bd83133
Reviewed-on: https://chromium-review.googlesource.com/514604
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'test/utils_str.tasklist')
-rw-r--r-- | test/utils_str.tasklist | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/utils_str.tasklist b/test/utils_str.tasklist new file mode 100644 index 0000000000..e241aab4bb --- /dev/null +++ b/test/utils_str.tasklist @@ -0,0 +1,17 @@ +/* Copyright 2017 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/** + * List of enabled tasks in the priority order + * + * The first one has the lowest priority. + * + * For each task, use the macro TASK_TEST(n, r, d, s) where : + * 'n' in the name of the task + * 'r' in the main routine of the task + * 'd' in an opaque parameter passed to the routine at startup + * 's' is the stack size in bytes; must be a multiple of 8 + */ +#define CONFIG_TEST_TASK_LIST /* No test task */ |