This will cause the system to automatically run all of the unit tests after a short pause on boot. Will be used by an automatic test script. At the moment there aren't a lot of unit tests in the list, but this should greatly increase the utility of them since they'll be automatically run.
15 lines
284 B
Makefile
15 lines
284 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
MODULE_SRCS := \
|
|
$(LOCAL_DIR)/unittest.c \
|
|
$(LOCAL_DIR)/all_tests.c \
|
|
|
|
ifeq (true,$(call TOBOOL,$(RUN_UNITTESTS_AT_BOOT)))
|
|
$(info Boot unit tests enabled)
|
|
MODULE_DEFINES += RUN_UNITTESTS_AT_BOOT=1
|
|
endif
|
|
|
|
include make/module.mk
|