Use flag instead of build tag to run integration tests

This commit is contained in:
Alexander Neumann
2015-06-05 22:33:39 +02:00
parent 7c107acf0b
commit 12677b4f8a
5 changed files with 17 additions and 12 deletions

View File

@@ -50,15 +50,15 @@ gox: .gopath $(SOURCE)
test-integration: .gopath
cd $(BASEPATH) && go test $(GOTESTFLAGS) \
-tags integration \
./backend \
-cover -covermode=count -coverprofile=integration-sftp.cov \
-test.integration \
-test.sftppath=$(SFTP_PATH)
cd $(BASEPATH) && go test $(GOTESTFLAGS) \
-tags integration \
./cmd/restic \
-cover -covermode=count -coverprofile=integration.cov \
-test.integration \
-test.datafile=$(PWD)/testsuite/fake-data.tar.gz
all.cov: .gopath $(SOURCE) test-integration