| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# on macs, you may need to: |
| 4 |
# export GOBUILDFLAG=-ldflags -linkmode=external |
| 5 |
|
| 6 |
set -e |
| 7 |
|
| 8 |
export GORP_TEST_DSN=gorptest/gorptest/gorptest |
| 9 |
export GORP_TEST_DIALECT=mysql |
| 10 |
go test $GOBUILDFLAG . |
| 11 |
|
| 12 |
export GORP_TEST_DSN=gorptest:gorptest@/gorptest |
| 13 |
export GORP_TEST_DIALECT=gomysql |
| 14 |
go test $GOBUILDFLAG . |
| 15 |
|
| 16 |
export GORP_TEST_DSN="user=gorptest password=gorptest dbname=gorptest sslmode=disable" |
| 17 |
export GORP_TEST_DIALECT=postgres |
| 18 |
go test $GOBUILDFLAG . |
| 19 |
|
| 20 |
export GORP_TEST_DSN=/tmp/gorptest.bin |
| 21 |
export GORP_TEST_DIALECT=sqlite |
| 22 |
go test $GOBUILDFLAG . |