diff options
author | Ching-Kang Yen <chingkang@chromium.org> | 2020-07-31 02:12:02 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-03 07:15:48 +0000 |
commit | 8e7bbf94749ed9751e7ccb4963cd4a696186f765 (patch) | |
tree | 4b27512313d48c490724379d60e8ef3ca0b24a53 /test/body_detection.tasklist | |
parent | 53a2ee971270fcf759766a83496da05685ec8151 (diff) | |
download | chrome-ec-8e7bbf94749ed9751e7ccb4963cd4a696186f765.tar.gz |
test: body_detection: add unittest for algorithm
Add test to check if the algorithm of body detection is correct.
There are three testcases:
OnBody: always in on-body state, should not change to off-body
Off to On: change state from off-body to on-body
On to Off: change state from on-body to off-body
BRANCH=None
BUG=b:123434029
TEST=make buildall
Signed-off-by: Ching-Kang Yen <chingkang@chromium.org>
Change-Id: Ib027fa3ed659f0d2efd7416888a9ee4ad519edd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2329113
Reviewed-by: Heng-ruey Hsu <henryhsu@chromium.org>
Diffstat (limited to 'test/body_detection.tasklist')
-rw-r--r-- | test/body_detection.tasklist | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/body_detection.tasklist b/test/body_detection.tasklist new file mode 100644 index 0000000000..95a30e9973 --- /dev/null +++ b/test/body_detection.tasklist @@ -0,0 +1,10 @@ +/* Copyright 2020 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. + */ + +/** + * See CONFIG_TASK_LIST in config.h for details. + */ +#define CONFIG_TEST_TASK_LIST \ + TASK_TEST(MOTIONSENSE, motion_sense_task, NULL, TASK_STACK_SIZE) |