Include the test modules if the overal virtual/test module is included. Also set a new global build system var along with a configuration variable.
20 lines
347 B
Makefile
20 lines
347 B
Makefile
# common libraries for -test variants
|
|
|
|
MODULES += \
|
|
app/shell \
|
|
app/stringtests \
|
|
app/tests \
|
|
arch/test \
|
|
lib/aes \
|
|
lib/aes/test \
|
|
lib/cksum \
|
|
lib/debugcommands \
|
|
lib/unittest \
|
|
lib/version
|
|
|
|
# set a build system variable for other modules to include test code
|
|
# on their own.
|
|
WITH_TESTS := true
|
|
GLOBAL_DEFINES += WITH_TESTS=1
|
|
|