1 ################################################################################ 33 ################################################################################ 37 RNMAKE_TEST_ENABLED = y
39 GOALS_WITH_SUBDIRS += run-test
41 # Add test targets to local programs 42 RNMAKE_LOC_PGMS += $(RNMAKE_TEST_PGMS)
44 GOALS_WITH_SUBDIRS += test
47 color_test = $(color_pre)$(color_light_blue)
49 # Make specific test programs
51 test: pkgbanner all subdirs-test
56 run-test: pkgbanner echo-run-test
do-test subdirs-run-test
61 $(call printEchoTgtGoalDesc,Run all tests)
65 @
for f in $(RNMAKE_TEST_PGMS); \
67 printf
"\n$(color_test) $$f$(color_end)\n"; \
68 if [ -x ./$(LOCDIR_BIN)/$$f ]; \
70 ./$(LOCDIR_BIN)/$$f; \
72 printf
"$(color_error)Program $$f does not exist. Did you 'make test' first?$(color_end)\n\n"; \