summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-09-02 13:01:04 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-04 20:32:55 +0000
commit74b6f7687293b27b276d7bc2a5c0aea9b29a6649 (patch)
tree27bf836ff4b5737daa982881c34133a645da0544 /test
parent844f4127e8de9c061b980f458d0d0f80b8083e6a (diff)
downloadchrome-ec-74b6f7687293b27b276d7bc2a5c0aea9b29a6649.tar.gz
Implement emulator clock fast-forwarding
When running an unit test, the emulator is sitting in idle task for most of the time. Since we don't have interrupt support now, the emulator is just waiting for the next wake-up timer to fire. To save time, we can actually just figure out which task is the next to wake up, and then fast-forward the system clock to that time. With this, all tests run faster and we can remove time-scaling for all current tests. This improves not only run time but also stability. If one day we have interrupt support, then we will have to modify this to take into account the fact that an interrupt might wake a task before any wake-up timer fires. BUG=chrome-os-partner:19235 TEST=Run all tests in parallel for 1000 times. BRANCH=None Change-Id: I4cd33b041230267c110af015d425dd78d124f963 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167801 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/build.mk3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/build.mk b/test/build.mk
index 72c2982505..470e74dc75 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -39,7 +39,6 @@ flash-y=flash.o
hooks-y=hooks.o
host_command-y=host_command.o
kb_8042-y=kb_8042.o
-kb_8042-scale=3
kb_mkbp-y=kb_mkbp.o
kb_scan-y=kb_scan.o
lid_sw-y=lid_sw.o
@@ -48,12 +47,10 @@ pingpong-y=pingpong.o
power_button-y=power_button.o
powerdemo-y=powerdemo.o
queue-y=queue.o
-sbs_charging-scale=20
sbs_charging-y=sbs_charging.o
stress-y=stress.o
system-y=system.o
thermal-y=thermal.o
-thermal-scale=200
timer_calib-y=timer_calib.o
timer_dos-y=timer_dos.o
utils-y=utils.o