Specs refactor and tweaks
- Make ParseOptions func to take an arg and return struct so we can test it - Refactor and add more tests for options parsing - Run test suite on postgres 10.x branch - Change format for connection idle timer from float64 to in
This commit is contained in:
@@ -15,15 +15,17 @@ export PGPASSWORD=""
|
||||
export PGDATABASE="booktown"
|
||||
export PGPORT="15432"
|
||||
|
||||
for i in {1..6}
|
||||
do
|
||||
export PGVERSION="9.$i"
|
||||
versions="9.1 9.2 9.3 9.4 9.5 9.6 10 10.1 10.2"
|
||||
|
||||
echo "---------------- BEGIN TEST ----------------"
|
||||
for i in $versions
|
||||
do
|
||||
export PGVERSION="$i"
|
||||
|
||||
echo "------------------------------- BEGIN TEST -------------------------------"
|
||||
echo "Running tests against PostgreSQL v$PGVERSION"
|
||||
docker rm -f postgres || true
|
||||
docker run -p $PGPORT:5432 --name postgres -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres:$PGVERSION
|
||||
sleep 5
|
||||
make test
|
||||
echo "---------------- END TEST ------------------"
|
||||
echo "-------------------------------- END TEST --------------------------------"
|
||||
done
|
||||
Reference in New Issue
Block a user