Skip to content

Commit

Permalink
added local compute (-l) switch for running tests [#18]
Browse files Browse the repository at this point in the history
  • Loading branch information
felix11h committed Apr 21, 2020
1 parent 19f4ea8 commit 3bb29ff
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions run_test.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
#!/bin/bash


# 1 read out folder

LOCAL_COMPUTE=false
DEBUG=false
CLUSTER='x-men'
TESTRUN='net-test'

TESTDIR_FULL=$1
while getopts "l" opt; do
case $opt in
l) LOCAL_COMPUTE=true ;;
\?) echo "error: option -$OPTARG is not implemented"; exit ;;
esac
done

# combine getopts with positional parameters, see
# https://stackoverflow.com/questions/11742996

TESTDIR_FULL=${@:$OPTIND:1}
TESTDIR=$(basename $TESTDIR_FULL)

CODEDIR=$(pwd);
Expand All @@ -17,7 +26,6 @@ CODEDIR=$(pwd);
WDIR=$(date +"%y%m%d_%H%M%S")"_"$TESTDIR;



# 2 copy to location with appropriate file name

mkdir -p ../tests/testing/$WDIR
Expand Down

0 comments on commit 3bb29ff

Please sign in to comment.