fix test.sh
authorMarkus Wittmann <markus.wittmann@fau.de>
Mon, 10 Jul 2017 10:03:37 +0000 (12:03 +0200)
committerMarkus Wittmann <markus.wittmann@fau.de>
Mon, 10 Jul 2017 10:03:37 +0000 (12:03 +0200)
test.sh depended on the module infrastructure of RRZE. To run tests now
a valid config must be specified.

src/test.sh

index ea64791e212497a957b4ce97dcef5c6f0130af3e..7a76f51b8ca6321bcf79b087c62c41a9acc12f8a 100755 (executable)
@@ -32,12 +32,25 @@ XTag="-test"
 
 Build=release
 
-
-
-Config=linux-intel
-
-module purge
-module add intel64
+if [ "$#" -lt 1 ]; then
+  echo "Compiles and runs several test cases."
+  echo ""
+  echo "Usage: test.sh <config>"
+  echo ""
+  echo "Select a configuration via config: linux-gcc or linux-intel."
+  exit 1
+fi
+
+if [ "$1" == "-h" -o "$1" == "-help" -o "$1" == "--help" ]; then
+  echo "Compiles and runs several test cases."
+  echo ""
+  echo "Usage: test.sh <config>"
+  echo ""
+  echo "Select a configuration via config: linux-gcc or linux-intel."
+  exit 1
+fi
+
+Config="$1"
 
 make clean-all
 make -j CONFIG=$Config TAG=$XTag-debug
@@ -48,22 +61,3 @@ BinaryV="../bin/lbmbenchk-$Config-$Build$XTag-v"
 BinaryB="../bin/lbmbenchk-$Config-$Build$XTag-b"
 
 ./test-verification.sh "$BinaryV"
-
-
-
-Config=linux-gcc
-
-module purge
-module add gcc
-
-make clean-all
-
-make -j CONFIG=$Config TAG=$XTag-debug
-make -j CONFIG=$Config BUILD=$Build TAG=$XTag-v
-make -j CONFIG=$Config BUILD=$Build TAG=$XTag-b BENCHMARK=on
-
-BinaryV="../bin/lbmbenchk-$Config-$Build$XTag-v"
-BinaryB="../bin/lbmbenchk-$Config-$Build$XTag-b"
-
-./test-verification.sh "$BinaryV"
-
This page took 0.533137 seconds and 5 git commands to generate.