diff options
author | Vic Yang <victoryang@chromium.org> | 2013-06-12 00:08:56 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-16 20:14:01 -0700 |
commit | aaac3935d2e82b281979045a390f0b7d2c79b281 (patch) | |
tree | 8eafe931dd051f04ad85f7a270c6aafdd628deb0 /test | |
parent | 7402388c587e03181559f859f797f27c840c32ab (diff) | |
download | chrome-ec-aaac3935d2e82b281979045a390f0b7d2c79b281.tar.gz |
Make target for test coverage report generation
By 'make coverage', lcov is used to generate test coverage report in
HTML format stored in coverage_rpt folder.
BUG=chrome-os-partner:19235
TEST=Generate a report.
BRANCH=None
Change-Id: I44142eaaeb897cf09179764781120370920144cd
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/58203
Diffstat (limited to 'test')
-rw-r--r-- | test/mutex.c | 3 | ||||
-rw-r--r-- | test/pingpong.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/mutex.c b/test/mutex.c index cc4202378c..866a004a58 100644 --- a/test/mutex.c +++ b/test/mutex.c @@ -9,6 +9,7 @@ #include "console.h" #include "common.h" #include "task.h" +#include "test_util.h" #include "timer.h" #include "util.h" @@ -108,7 +109,7 @@ int mutex_main_task(void *unused) rdelay = prng(rdelay); } - ccprintf("Pass!\n"); + test_pass(); task_wait_event(0); return EC_SUCCESS; diff --git a/test/pingpong.c b/test/pingpong.c index 202dc8be38..852dbc3bdf 100644 --- a/test/pingpong.c +++ b/test/pingpong.c @@ -8,6 +8,7 @@ #include "common.h" #include "console.h" #include "task.h" +#include "test_util.h" #include "timer.h" #include "util.h" @@ -31,9 +32,9 @@ int TaskAbc(void *data) if (myid == 2 && wake_count[myid] == TEST_COUNT) { if (wake_count[0] == TEST_COUNT && wake_count[1] == TEST_COUNT) - ccputs("Pass!\n"); + test_pass(); else - ccputs("Fail!\n"); + test_fail(); wake_count[0] = wake_count[1] = wake_count[2] = 0; task_wait_event(-1); } else { |