bulk commit
[LbmBenchmarkKernelsPublic.git] / src / test.sh
index ea64791e212497a957b4ce97dcef5c6f0130af3e..a0e8ad67fc3575cb346b321651ce4cfb1c47f869 100755 (executable)
@@ -32,38 +32,32 @@ XTag="-test"
 
 Build=release
 
-
-
-Config=linux-intel
-
-module purge
-module add intel64
-
-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"
-
-
-
-Config=linux-gcc
-
-module purge
-module add gcc
+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
-make -j CONFIG=$Config BUILD=$Build TAG=$XTag-v
+make -j CONFIG=$Config BUILD=$Build TAG=$XTag-v VERIFICATION=on
 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.069349 seconds and 5 git commands to generate.