Skip to content

Commit

Permalink
Unittests fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Jul 25, 2024
1 parent 21eaeb7 commit 7f56781
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile.cpputest
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.PHONY: unittest check clean_unittest

CPPUTEST_HOME ?= /usr/local

CXXFLAGS += -I$(CPPUTEST_HOME)/include -DCPPUTEST_MEM_LEAK_DETECTION_DISABLED

OBJ_UNIT_TEST = \
unittest/helpers/fake_wire.o \
unittest/helpers/fake_connection.o \
Expand All @@ -16,8 +20,9 @@ OBJ_UNIT_TEST = \
unittest/fd_tests.o \
unittest/fd_multidrop_tests.o \


unittest: $(OBJ_UNIT_TEST) library
$(CXX) $(CPPFLAGS) -o $(BLD)/unit_test $(OBJ_UNIT_TEST) -L$(BLD) -lm -pthread -ltinyprotocol -lCppUTest -lCppUTestExt
$(CXX) $(CPPFLAGS) -o $(BLD)/unit_test $(OBJ_UNIT_TEST) -L$(BLD) -L$(CPPUTEST_HOME)/lib -lm -pthread -ltinyprotocol -lCppUTest -lCppUTestExt

check: unittest
$(BLD)/unit_test
Expand Down

0 comments on commit 7f56781

Please sign in to comment.