add Makefile target for running tests
This commit is contained in:
parent
eaecb59ba8
commit
d5c745f8e1
8
Makefile
8
Makefile
@ -19,9 +19,13 @@ $(EXEC_NAME): filter $(OBJS)
|
|||||||
|
|
||||||
debug: debug_flag $(EXEC_NAME)
|
debug: debug_flag $(EXEC_NAME)
|
||||||
|
|
||||||
test: filter_test $(OBJS)
|
test: compile_test run_test
|
||||||
$(CC) $(FLAGS) $(LIBS) -lcmocka $(OBJS) -o test
|
|
||||||
|
|
||||||
|
compile_test: filter_test $(OBJS)
|
||||||
|
$(CC) $(DEBUG_FLAGS) $(LIBS) -lcmocka $(OBJS) -o test
|
||||||
|
|
||||||
|
run_test:
|
||||||
|
./test
|
||||||
|
|
||||||
$(OBJDIR)/%.o: $(SRCDIR)/%$(EXT)
|
$(OBJDIR)/%.o: $(SRCDIR)/%$(EXT)
|
||||||
$(CC) $(FLAGS) $(DEPFLAGS) -c -o $@ $<
|
$(CC) $(FLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user