Index: tools/run_tests.sh =================================================================== diff -u -rb3653a30a05b551f24ac231ca499d71252fd2a3c -r8df6ead4e7b8c832f4fdf07dd751245b9c75a973 --- tools/run_tests.sh (.../run_tests.sh) (revision b3653a30a05b551f24ac231ca499d71252fd2a3c) +++ tools/run_tests.sh (.../run_tests.sh) (revision 8df6ead4e7b8c832f4fdf07dd751245b9c75a973) @@ -1,7 +1,24 @@ #!/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=CreateTreatment,AlarmColors 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 if [ "$resp" == "y" ]; then /opt/squishqt/bin/squishrunner --testsuite . \ Index: tools/run_tests_on_target.sh =================================================================== diff -u --- tools/run_tests_on_target.sh (revision 0) +++ tools/run_tests_on_target.sh (revision 8df6ead4e7b8c832f4fdf07dd751245b9c75a973) @@ -0,0 +1,25 @@ +#!/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 a specific test case on a target over SSH +# +############################################################################ +cd .. +SQUISH_RUNNER_PATH="/opt/squishqt/bin" +SQUISH_SERVER_HOST="192.168.10.92" +SQUISH_SERVER_PORT=4322 +TESTSUITE="$(pwd)" +REPORTPATH="$(pwd)/reports" +cd $SQUISH_RUNNER_PATH/ + +./squishrunner --host $SQUISH_SERVER_HOST --port $SQUISH_SERVER_PORT --testsuite $TESTSUITE --testcase tst_HomeScreen --aut denali -q --reportgen xml2.1,$REPORTPATH/report.xml