#!/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=AlarmStatusData,DGOperationMode,DGROPumpData,HDOperationModeData,TreatmentUltrafiltration,TreatmentSalineData TIMEOUT=60 rm -rf /tmp/UnitTest cd .. echo "[i] This script assumes squishserver has already been started with run_server.sh." 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