Fix test script help, add requirements.txt

pull/20/head
Sander Vocke 5 years ago
parent fb4439dec9
commit f85f3b62b1
  1. 1
      scripts/gpm_retrieve/.gitignore
  2. 3
      scripts/gpm_retrieve/requirements.txt
  3. 8
      server/test/test.sh

@ -1,3 +1,2 @@
requirements.txt
venv venv
mobileclient.cred mobileclient.cred

@ -0,0 +1,3 @@
gmusicapi
argparse
requests

@ -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

Loading…
Cancel
Save