summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-04-10 18:47:54 +0800
committerChromeBot <chrome-bot@google.com>2013-04-10 09:35:06 -0700
commitd6ce2852aed7ca0b7a06e06cee008c0f3778c932 (patch)
tree7b97a557eabe35ad47506b1446f7611bf414d73c
parent9aa3716ca08a3bb8e62964229d67b867aa285c12 (diff)
downloadchrome-ec-d6ce2852aed7ca0b7a06e06cee008c0f3778c932.tar.gz
Fix tasklist for tests
This removes all tasks defined in board tasklist and changes syntax to CONFIG_TEST_TASK_LIST and TASK_TEST. BUG=chrome-os-partner:18598 TEST=None BRANCH=None Change-Id: Ie56c8edcb1dbf0ba0d0426ffce2a525594602a91 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47738 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--test/charging.tasklist13
-rw-r--r--test/flash_overwrite.tasklist8
-rw-r--r--test/flash_rw_erase.tasklist8
-rw-r--r--test/hello.tasklist8
-rw-r--r--test/kb_debounce.tasklist13
-rw-r--r--test/kb_deghost.tasklist12
-rw-r--r--test/mutex.tasklist18
-rw-r--r--test/pingpong.tasklist15
-rw-r--r--test/power_button.tasklist12
-rw-r--r--test/powerdemo.tasklist8
-rw-r--r--test/scancode.tasklist12
-rw-r--r--test/thermal.tasklist10
-rw-r--r--test/timer_calib.tasklist10
-rw-r--r--test/timer_dos.tasklist16
-rw-r--r--test/timer_jump.tasklist8
-rw-r--r--test/typematic.tasklist12
16 files changed, 47 insertions, 136 deletions
diff --git a/test/charging.tasklist b/test/charging.tasklist
index 503b311eff..26cfc53453 100644
--- a/test/charging.tasklist
+++ b/test/charging.tasklist
@@ -8,19 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CHARGER, charge_state_machine_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/flash_overwrite.tasklist b/test/flash_overwrite.tasklist
index 7864a0a1fb..26cfc53453 100644
--- a/test/flash_overwrite.tasklist
+++ b/test/flash_overwrite.tasklist
@@ -8,14 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/flash_rw_erase.tasklist b/test/flash_rw_erase.tasklist
index 5d6e3d0c7b..26cfc53453 100644
--- a/test/flash_rw_erase.tasklist
+++ b/test/flash_rw_erase.tasklist
@@ -8,14 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/hello.tasklist b/test/hello.tasklist
index 5d6e3d0c7b..26cfc53453 100644
--- a/test/hello.tasklist
+++ b/test/hello.tasklist
@@ -8,14 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/kb_debounce.tasklist b/test/kb_debounce.tasklist
index 5426127316..26cfc53453 100644
--- a/test/kb_debounce.tasklist
+++ b/test/kb_debounce.tasklist
@@ -8,17 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/kb_deghost.tasklist b/test/kb_deghost.tasklist
index 029c6867c1..26cfc53453 100644
--- a/test/kb_deghost.tasklist
+++ b/test/kb_deghost.tasklist
@@ -8,18 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/mutex.tasklist b/test/mutex.tasklist
index df7cb73e56..4233108fc0 100644
--- a/test/mutex.tasklist
+++ b/test/mutex.tasklist
@@ -8,19 +8,15 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
- TASK(MTX3C, mutex_random_task, NULL, TASK_STACK_SIZE) \
- TASK(MTX3B, mutex_random_task, NULL, TASK_STACK_SIZE) \
- TASK(MTX3A, mutex_random_task, NULL, TASK_STACK_SIZE) \
- TASK(MTX2, mutex_second_task, NULL, TASK_STACK_SIZE) \
- TASK(MTX1, mutex_main_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST \
+ TASK_TEST(MTX3C, mutex_random_task, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(MTX3B, mutex_random_task, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(MTX3A, mutex_random_task, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(MTX2, mutex_second_task, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(MTX1, mutex_main_task, NULL, TASK_STACK_SIZE)
diff --git a/test/pingpong.tasklist b/test/pingpong.tasklist
index 5ddb8285fc..8be6c58c52 100644
--- a/test/pingpong.tasklist
+++ b/test/pingpong.tasklist
@@ -8,18 +8,13 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
- TASK(TESTA, TaskAbc, (void *)'A', TASK_STACK_SIZE) \
- TASK(TESTB, TaskAbc, (void *)'B', TASK_STACK_SIZE) \
- TASK(TESTC, TaskAbc, (void *)'C', TASK_STACK_SIZE) \
- TASK(TESTT, TaskTick, (void *)'T', TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST \
+ TASK_TEST(TESTA, TaskAbc, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(TESTB, TaskAbc, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(TESTC, TaskAbc, NULL, TASK_STACK_SIZE)
diff --git a/test/power_button.tasklist b/test/power_button.tasklist
index 49e59b7786..26cfc53453 100644
--- a/test/power_button.tasklist
+++ b/test/power_button.tasklist
@@ -8,18 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
- TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/powerdemo.tasklist b/test/powerdemo.tasklist
index d74e98591b..ecb39fd58b 100644
--- a/test/powerdemo.tasklist
+++ b/test/powerdemo.tasklist
@@ -8,13 +8,11 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
- TASK(POWERDEMO, power_demo_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST \
+ TASK_TEST(POWERDEMO, power_demo_task, NULL, TASK_STACK_SIZE)
diff --git a/test/scancode.tasklist b/test/scancode.tasklist
index ac4d539bc8..26cfc53453 100644
--- a/test/scancode.tasklist
+++ b/test/scancode.tasklist
@@ -8,18 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/thermal.tasklist b/test/thermal.tasklist
index 5bb13bbc60..26cfc53453 100644
--- a/test/thermal.tasklist
+++ b/test/thermal.tasklist
@@ -8,16 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(THERMAL, thermal_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/timer_calib.tasklist b/test/timer_calib.tasklist
index 1763b91d6e..d330db29d8 100644
--- a/test/timer_calib.tasklist
+++ b/test/timer_calib.tasklist
@@ -8,15 +8,11 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(TESTTMR, timer_calib_task, (void *)'T', TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST \
+ TASK_TEST(TESTTMR, timer_calib_task, (void *)'T', TASK_STACK_SIZE) \
diff --git a/test/timer_dos.tasklist b/test/timer_dos.tasklist
index 69be9a127e..d34fd59010 100644
--- a/test/timer_dos.tasklist
+++ b/test/timer_dos.tasklist
@@ -8,18 +8,14 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
- TASK(TMRA, TaskTimer, (void *)1234, TASK_STACK_SIZE) \
- TASK(TMRB, TaskTimer, (void *)5678, TASK_STACK_SIZE) \
- TASK(TMRC, TaskTimer, (void *)8462, TASK_STACK_SIZE) \
- TASK(TMRD, TaskTimer, (void *)3719, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST \
+ TASK_TEST(TMRA, TaskTimer, (void *)1234, TASK_STACK_SIZE) \
+ TASK_TEST(TMRB, TaskTimer, (void *)5678, TASK_STACK_SIZE) \
+ TASK_TEST(TMRC, TaskTimer, (void *)8462, TASK_STACK_SIZE) \
+ TASK_TEST(TMRD, TaskTimer, (void *)3719, TASK_STACK_SIZE)
diff --git a/test/timer_jump.tasklist b/test/timer_jump.tasklist
index c6ad1a3856..26cfc53453 100644
--- a/test/timer_jump.tasklist
+++ b/test/timer_jump.tasklist
@@ -8,14 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */
diff --git a/test/typematic.tasklist b/test/typematic.tasklist
index 029c6867c1..26cfc53453 100644
--- a/test/typematic.tasklist
+++ b/test/typematic.tasklist
@@ -8,18 +8,10 @@
*
* The first one has the lowest priority.
*
- * For each task, use the macro TASK(n, r, d, s) where :
+ * 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_TASK_LIST \
- TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
- TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
- TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
- TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
- TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TEST_TASK_LIST /* No test task */