Files
lk/lib/unittest/rules.mk
Travis Geiselbrecht 976cd70f4f [unittests] add RUN_UNITTESTS_AT_BOOT build option
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.
2025-10-01 23:54:54 -07:00

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