forked from mattermost/gorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 818 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
GOTESTFLAGS ?= -test.count=1
test-all: test-unit test-mymysql test-gomysql test-postgres test-sqlite
test-unit:
echo "Running unit tests"
ginkgo -r -race -randomizeAllSpecs -keepGoing -- -test.run TestGorp
test-mymysql:
echo "Testing against mymysql"
go test . $(GOTESTFLAGS) -dsn="tcp:localhost:3306*gorptest/gorptest/gorptest" -dialect="mysql"
test-gomysql:
echo "Testing against gomysql"
go test . $(GOTESTFLAGS) -dsn="gorptest:gorptest@tcp(localhost:3306)/gorptest" -dialect="gomysql"
test-postgres:
echo "Testing against postgres"
go test . $(GOTESTFLAGS) -dsn="host=localhost user=gorptest password=gorptest dbname=gorptest sslmode=disable" -dialect="postgres"
test-sqlite:
echo "Testing against sqlite"
go test . $(GOTESTFLAGS) -dsn="/tmp/gorptest.bin" -dialect="sqlite"
rm -f /tmp/gorptest.bin