You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gojobs/vendor/github.com/upper/db/v4/Makefile

43 lines
806 B

SHELL ?= /bin/bash
PARALLEL_FLAGS ?= --halt-on-error 2 --jobs=4 -v -u
TEST_FLAGS ?=
UPPER_DB_LOG ?= WARN
export TEST_FLAGS
export PARALLEL_FLAGS
export UPPER_DB_LOG
test: go-test-internal test-adapters
benchmark: go-benchmark-internal
go-benchmark-%:
go test -v -benchtime=500ms -bench=. ./$*/...
go-test-%:
go test -v ./$*/...
test-adapters: \
test-adapter-postgresql \
test-adapter-cockroachdb \
test-adapter-mysql \
test-adapter-mssql \
test-adapter-sqlite \
test-adapter-ql \
test-adapter-mongo
test-adapter-%:
($(MAKE) -C adapter/$* test-extended || exit 1)
test-generic:
export TEST_FLAGS="-run TestGeneric"; \
$(MAKE) test-adapters
goimports:
for FILE in $$(find -name "*.go" | grep -v vendor); do \
goimports -w $$FILE; \
done