summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2016-05-06 12:25:49 -0700
committerBill Richardson <wfrichar@chromium.org>2016-05-07 00:16:29 +0000
commitb13f300ca3a322a3d20d1f27270924d50113b643 (patch)
treeb145d185e9e5f9f45c55f02d4a38275f6b69f25f
parent1d8ff93a490e9a622e15111ca57c2c757fd0af45 (diff)
downloadchrome-ec-b13f300ca3a322a3d20d1f27270924d50113b643.tar.gz
Allow TEST_LIST_HOST= to override test targets
When developing or tweaking tests, we almost always need to hack the Makefiles so that "make runtests" doesn't run *EVERY* test each time, but only the one we're playing with. This CL just allows you to override the default test_list_host values from the commandline. Of course, you shouldn't do this except when testing the tests themselves. BUG=none BRANCH=none TEST=manual # build all boards and run all tests make buildall -j14 # run all tests make runtests # run only the two specified tests TEST_LIST_HOST="lightbar hooks" make runtests Change-Id: Icd82c2c781a71a461a7d75bc4bd54944b0eaeed6 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/343003 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--test/build.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk
index 7418908585..060b258ccd 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -33,6 +33,9 @@ test-list-$(BOARD_SAMUS_PD)=
test-list-$(BOARD_LARS_PD)=
# Emulator tests
+ifneq ($(TEST_LIST_HOST),)
+test-list-host=$(TEST_LIST_HOST)
+else
test-list-host=mutex pingpong utils kb_scan kb_mkbp lid_sw power_button hooks
test-list-host+=thermal flash queue kb_8042 extpwr_gpio console_edit system
test-list-host+=sbs_charging host_command
@@ -40,6 +43,7 @@ test-list-host+=bklight_lid bklight_passthru interrupt timer_dos button
test-list-host+=math_util motion_lid sbs_charging_v2 battery_get_params_smart
test-list-host+=lightbar inductive_charging usb_pd fan charge_manager
test-list-host+=charge_manager_drp_charging charge_ramp
+endif
battery_get_params_smart-y=battery_get_params_smart.o
bklight_lid-y=bklight_lid.o