|
|
@ -16,7 +16,7 @@ START_POSTGRES= |
|
|
|
START_POSTGRES_TESTCONTAINER= |
|
|
|
START_POSTGRES_TESTCONTAINER= |
|
|
|
|
|
|
|
|
|
|
|
usage() { |
|
|
|
usage() { |
|
|
|
cat << EOF | echo |
|
|
|
echo "\ |
|
|
|
This tool runs MuDBase's Jasmine tests. Different database back-ends can be selected (multiple is allowed too). |
|
|
|
This tool runs MuDBase's Jasmine tests. Different database back-ends can be selected (multiple is allowed too). |
|
|
|
Options: |
|
|
|
Options: |
|
|
|
-s,--sqlite Use SQLite in memory for testing. |
|
|
|
-s,--sqlite Use SQLite in memory for testing. |
|
|
@ -24,13 +24,17 @@ Options: |
|
|
|
-sp,--start-postgres Start its own Postgres Docker container for testing against. |
|
|
|
-sp,--start-postgres Start its own Postgres Docker container for testing against. |
|
|
|
-spt,--start-postgres-testcontainer Assume running in the sandervocke/postgres_node container. Spin up a PG process. |
|
|
|
-spt,--start-postgres-testcontainer Assume running in the sandervocke/postgres_node container. Spin up a PG process. |
|
|
|
any other option is passed on to Jasmine. |
|
|
|
any other option is passed on to Jasmine. |
|
|
|
EOF |
|
|
|
" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Argument parsing |
|
|
|
# Argument parsing |
|
|
|
PARAMS="" |
|
|
|
PARAMS="" |
|
|
|
while (( "$#" )); do |
|
|
|
while (( "$#" )); do |
|
|
|
case "$1" in |
|
|
|
case "$1" in |
|
|
|
|
|
|
|
-h|--help) |
|
|
|
|
|
|
|
usage |
|
|
|
|
|
|
|
exit 0 |
|
|
|
|
|
|
|
;; |
|
|
|
-s|--sqlite) |
|
|
|
-s|--sqlite) |
|
|
|
DO_SQLITE=1 |
|
|
|
DO_SQLITE=1 |
|
|
|
shift |
|
|
|
shift |
|
|
|