summaryrefslogtreecommitdiff
path: root/test/build.mk
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-06-28 13:57:33 +0800
committerGerrit <chrome-bot@google.com>2012-07-08 20:25:17 -0700
commitd6086835e3231472f2075df53a86828fcfd6b5d5 (patch)
treebd82be6a3ed37a7b17df0a4ce219a928bee0e7fd /test/build.mk
parente4df521df5c661a5c63a96dce9363be76f9377ca (diff)
downloadchrome-ec-d6086835e3231472f2075df53a86828fcfd6b5d5.tar.gz
Add a test of charging state machine
This test checks charging state machine works correctly: - Charge when AC plugged. Discharge when AC unplugged. - Shutdown when over/under-temperature during discharging. - Stop charging when over/under-temperature during charging. BUG=chrome-os-partner:10270 TEST=Test passed Change-Id: I460645c70f5dcd30e258c43956ffe416c8bce906 Reviewed-on: https://gerrit.chromium.org/gerrit/26383 Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r--test/build.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/build.mk b/test/build.mk
index b950372ec7..c6240e1252 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -7,7 +7,7 @@
#
test-list=hello pingpong timer_calib timer_dos timer_jump mutex thermal
-test-list+=power_button kb_deghost kb_debounce scancode typematic
+test-list+=power_button kb_deghost kb_debounce scancode typematic charging
#disable: powerdemo
pingpong-y=pingpong.o
@@ -43,3 +43,9 @@ common-mock-typematic-i8042.o=mock_i8042.o
# Mock modules for 'kb_debounce'
chip-mock-kb_debounce-keyboard_scan_stub.o=mock_keyboard_scan_stub.o
common-mock-kb_debounce-i8042.o=mock_i8042.o
+
+# Mock modules for 'charging;
+chip-mock-charging-gpio.o=mock_gpio.o
+common-mock-charging-x86_power.o=mock_x86_power.o
+common-mock-charging-smart_battery_stub.o=mock_smart_battery_stub.o
+common-mock-charging-charger_bq24725.o=mock_charger.o