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
mobileclient.cred

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

@ -16,7 +16,7 @@ START_POSTGRES=
START_POSTGRES_TESTCONTAINER=
usage() {
cat << EOF | echo
echo "\
This tool runs MuDBase's Jasmine tests. Different database back-ends can be selected (multiple is allowed too).
Options:
-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.
-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.
EOF
"
}
# Argument parsing
PARAMS=""
while (( "$#" )); do
case "$1" in
-h|--help)
usage
exit 0
;;
-s|--sqlite)
DO_SQLITE=1
shift

Loading…
Cancel
Save