From b13f300ca3a322a3d20d1f27270924d50113b643 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 6 May 2016 12:25:49 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/343003 Reviewed-by: Randall Spangler --- test/build.mk | 4 ++++ 1 file changed, 4 insertions(+) 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