diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-08 10:59:17 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-13 21:36:12 +0000 |
commit | cb7468744d8292590ddc4fb0a0b6ed7752b1490a (patch) | |
tree | b981a899bb85481964568fc33fcfdeee6c5e5f3e /test/usb_pd.tasklist | |
parent | 589e7f9e102f44863351e0d772403fa7344b66e6 (diff) | |
download | chrome-ec-cb7468744d8292590ddc4fb0a0b6ed7752b1490a.tar.gz |
Add back unit test for usb_pd
Add back the test but only enable USB PD tasks for usb_pd test. This
should ensure that we do not break existing tests.
BUG=chrome-os-partner:31200,chromium:402335
TEST=make buildall
BRANCH=None
Change-Id: I4daa41a96a1067362b2c40a2a09fce733843bdff
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/211923
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'test/usb_pd.tasklist')
-rw-r--r-- | test/usb_pd.tasklist | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/usb_pd.tasklist b/test/usb_pd.tasklist new file mode 100644 index 0000000000..4d95d0b156 --- /dev/null +++ b/test/usb_pd.tasklist @@ -0,0 +1,19 @@ +/* Copyright (c) 2013 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 \ + TASK_TEST(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_TEST(PD_C1, pd_task, NULL, LARGER_TASK_STACK_SIZE) |