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>
This commit is contained in:
Bill Richardson
2016-05-06 12:25:49 -07:00
parent 1d8ff93a49
commit b13f300ca3

View File

@@ -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