Some more Tests stuff

pull/32/head
Geoffrey Merck 4 years ago
parent 5f11a1255b
commit f1696c41af

@ -20,8 +20,11 @@ jobs:
sudo apt-get update
sudo apt-get -y install libgtest-dev libcurl4-openssl-dev libboost-dev
- run:
name: "Build"
command: "make -j 3 dstargateway tests"
name: "Build App"
command: "make -j 3 dstargateway"
- run:
name: "Build Tests"
command: "make -j 3 tests"
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows

@ -131,7 +131,9 @@ removehostfiles :
@rm -f $(DATA_DIR)/DPlus_Hosts.txt
.PHONY tests:
tests : GitVersion.h $(OBJS)
$(MAKE) -C Tests tests
tests : GitVersion.h
@$(RM) -f DStarGatewayApp.o
@$(RM) -f DStarGatewayApp.d
@$(MAKE) -C Tests tests
FORCE:

@ -4,7 +4,7 @@ OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
.PHONY tests:
tests: rmdstargatewayapp $(OBJS)
tests: $(OBJS)
$(CC) $(CPPFLAGS) -o dstargateway_tests $(OBJS) $(LDFLAGS) -lgtest -lgtest_main
%.o : %.cpp
@ -16,10 +16,3 @@ tests: rmdstargatewayapp $(OBJS)
clean :
@$(RM) $(OBJS) $(DEPS) dstargateway_tests
# Again ugly trick to force rebuild of DStarGatewayApp
.PHONY rmdstargatewayapp :
rmdstargatewayapp: FORCE
@$(RM) ../DStarGatewayApp.o
@$(RM) ../DStarGatewayApp.d
FORCE:
Loading…
Cancel
Save

Powered by TurnKey Linux.