Add "testacc" target for easy acceptance testing

This commit is contained in:
Mitchell Hashimoto 2014-07-10 11:41:18 -07:00
parent b3fd62beb0
commit 9d3adc07ca
1 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,13 @@ libucl: vendor/libucl/$(LIBUCL_NAME)
test: libucl
go test $(TEST) $(TESTARGS)
testacc: libucl
@if [ "$(TEST)" = "./..." ]; then \
echo "ERROR: Set TEST to a specific package"; \
exit 1; \
fi
TF_ACC=1 go test $(TEST) -v $(TESTARGS)
testrace: libucl
go test -race $(TEST) $(TESTARGS)