#!/bin/bash ########################################################################### # # Copyright (c) 2019-2019 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 # # @date 14-Oct-2020 # @author Peter Lucia # # @brief This script runs the test suite from the command line # and can run tests with the specified tags # ############################################################################ TAGS=TreatmentAdjustmentBloodDialysate,TreatmentAdjustmentDuration,TreatmentStatesData,HDOutletFlowData,AlarmColors,CreateTreatment TIMEOUT=60 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 /opt/squishqt/bin/squishrunner --config setAUTTimeout $TIMEOUT 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