Lines Matching refs:tests
102 TEST_FILES := $(addprefix tests/,$(addsuffix .c,$(TESTS)))
104 TEST_FILES := $(filter-out test_MAIN.c, $(wildcard tests/*.c))
106 TEST_SOURCES := $(wildcard cmocka/*.c) $(wildcard tests/*.c)
117 $(TEST_OBJECTS): CFLAGS += $(COMPILEFLAG)I.$(PS)cmocka $(COMPILEFLAG)I.$(PS)tests $(COMPILEFLAG)I.$(PS)$(OBJDIR)$(PS)tests \
152 $(MKDIR) $(OBJDIR)$(PS)tests
172 @$(ECHO) "[***** Creating tests.h *****]"
173 -$(MKDIR) $(OBJDIR)$(PS)tests
174 -$(RMALL) $(OBJDIR)$(PS)tests$(PS)tests.h
175 $(SED) -$(SED_ROPT) "/.*static.+/d" $(TEST_FILES) | $(SED) -$(SED_ROPT)n "/.*\(void[ \t]*\*\*[ \t]*state\)/p" | sed -$(SED_ROPT) "s/\{/\;/g" > $(OBJDIR)$(PS)tests$(PS)tests.h.template
176 $(CP) $(OBJDIR)$(PS)tests$(PS)tests.h.template $(OBJDIR)$(PS)tests$(PS)tests.h
177 $(ECHO) "const struct CMUnitTest tests[] = {" >> $(OBJDIR)$(PS)tests$(PS)tests.h
178 $(SED) -$(SED_ROPT)n "s/void (test_.*[^\(])\(.*/cmocka_unit_test(\1),/p" $(OBJDIR)$(PS)tests$(PS)tests.h.template >> $(OBJDIR)$(PS)tests$(PS)tests.h
179 $(ECHO) "};" >> $(OBJDIR)$(PS)tests$(PS)tests.h
180 $(SED) -ie "s$(SUB)\"$(SUB) $(SUB)g" $(OBJDIR)$(PS)tests$(PS)tests.h