#!/bin/bash ########################################################################### # # Copyright (c) 2020-2022 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file run_tests.sh # # @author (last) Peter Lucia # @date (last) 19-Feb-2021 # @author (original) Peter Lucia # @date (original) 28-Sep-2020 # ############################################################################ TAGS=TreatmentAdjustmentUltrafiltration TIMEOUT=200 rm -rf /tmp/UnitTest* cd .. read -p "Did you already start run_server.sh? (y/n) " serverStarted if [ "$serverStarted" != "y" ]; then echo "Please start run_server.sh prior to running this script." exit fi read -p "Do you want to run all tests? (y/n) " resp nums=1 if [ "$resp" == "n" ]; then read -p "How many repetitions? " nums 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