Index: tools/run_tests.sh =================================================================== diff -u -r932d63fb26cda19a65375d592e454836f8b2522e -rca79dc7f50fc912b05da91321d8652934aee0764 --- tools/run_tests.sh (.../run_tests.sh) (revision 932d63fb26cda19a65375d592e454836f8b2522e) +++ tools/run_tests.sh (.../run_tests.sh) (revision ca79dc7f50fc912b05da91321d8652934aee0764) @@ -15,10 +15,10 @@ # and can run tests with the specified tags # ############################################################################ -TAGS=AlarmSilence +TAGS=TreatmentAdjustmentUltrafiltration TIMEOUT=200 -rm -rf /tmp/UnitTest +rm -rf /tmp/UnitTest* cd .. read -p "Did you already start run_server.sh? (y/n) " serverStarted if [ "$serverStarted" != "y" ]; then @@ -28,16 +28,26 @@ read -p "Do you want to run all tests? (y/n) " resp -/opt/squishqt/bin/squishrunner --config setAUTTimeout $TIMEOUT +nums=1 +if [ "$resp" == "n" ]; then + read -p "How many repetitions? " nums -if [ "$resp" == "y" ]; then - /opt/squishqt/bin/squishrunner --testsuite . \ - --reportgen html,/tmp/UnitTest -else - /opt/squishqt/bin/squishrunner --testsuite . \ - --tags $TAGS \ - --reportgen html,/tmp/UnitTest fi +/opt/squishqt/bin/squishrunner --config setAUTTimeout $TIMEOUT +for (( i=1; i<=$nums; i++)) +do + if [ "$resp" == "y" ]; then + /opt/squishqt/bin/squishrunner --testsuite . \ + --reportgen html,/tmp/UnitTest-$i + else + /opt/squishqt/bin/squishrunner --testsuite . \ + --tags $TAGS \ + --reportgen html,/tmp/UnitTest-$i + fi +done + + +