From a6aad6dc49511c7daa92383b5a04cd7596d25ff9 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 21 Jan 2016 12:48:07 +0000 Subject: [PATCH] move smoke test dependencies from 'all' to 'testrunner' target That way a plain 'make' works out-of-the-box. Fixes #1893. --- Makefile | 8 ++++---- circle.yml | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 42b09ec1..f2a7fccf 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PUBLISH=publish_weave publish_weaveexec publish_plugin .DEFAULT: all -.PHONY: all exes update tests lint publish $(PUBLISH) clean clean-bin prerequisites build run-smoketests +.PHONY: all exes testrunner update tests lint publish $(PUBLISH) clean clean-bin prerequisites build run-smoketests # If you can use docker without being root, you can do "make SUDO=" SUDO=sudo -E @@ -57,9 +57,9 @@ BUILD_FLAGS=-i -ldflags "-extldflags \"-static\" -X main.version=$(WEAVE_VERSION PACKAGE_BASE=$(shell go list -e ./) -all: $(WEAVE_EXPORT) $(RUNNER_EXE) $(TEST_TLS_EXE) +all: $(WEAVE_EXPORT) exes: $(EXES) - +testrunner: $(RUNNER_EXE) $(TEST_TLS_EXE) $(EXES): $(BUILD_UPTODATE) $(WEAVER_EXE) $(WEAVEPROXY_EXE) $(WEAVEUTIL_EXE): common/*.go common/*/*.go net/*.go net/*/*.go @@ -180,5 +180,5 @@ build: $(SUDO) go install -tags netgo std $(MAKE) -run-smoketests: all +run-smoketests: all testrunner cd test && ./setup.sh && ./run_all.sh diff --git a/circle.yml b/circle.yml index 28a61935..98a5dccc 100644 --- a/circle.yml +++ b/circle.yml @@ -32,7 +32,9 @@ test: parallel: true - cd $SRCDIR; COVERDIR=test/coverage make RM= tests: parallel: true - - cd $SRCDIR; make COVERAGE=true RM=: + - cd $SRCDIR; make COVERAGE=true RM= all: + parallel: true + - cd $SRCDIR; make testrunner: parallel: true - cd $SRCDIR/test; ./gce.sh setup && eval $(./gce.sh hosts) && ./setup.sh: parallel: true