Index: build/unittest.sh =================================================================== diff -u -r6f85acad44978050b63f5b74e5a0b888a04306ee -r99a429cb5e624941c64e742a2fe95074730c4719 --- build/unittest.sh (.../unittest.sh) (revision 6f85acad44978050b63f5b74e5a0b888a04306ee) +++ build/unittest.sh (.../unittest.sh) (revision 99a429cb5e624941c64e742a2fe95074730c4719) @@ -1,6 +1,6 @@ #!/bin/bash -# --------------------------- Definisions +echo "--------------------------- Definisions" SQUISH_SERVER_PORT=4322 BUID_DIR=build QT_DIR="/opt/Qt/5.12.5/gcc_64/bin" @@ -14,46 +14,41 @@ mkdir $REPORT -# --------------------------- clone denali +echo "--------------------------- clone denali" git clone ssh://git@dvm-linux02:7999/ui/application.git -# --------------------------- Build Application +echo "--------------------------- Build Application" mkdir $BUID_DIR cd $BUID_DIR -# --------------------------- configure the project +echo "--------------------------- configure the project" # Coco Build - Instrumentation /opt/Qt/5.12.5/gcc_64/bin/qmake ../application/denali.pro -spec linux-g++ CONFIG+=qtquickcompiler CONFIG+=CodeCoverage /usr/bin/make LINK=csg++ AR=csar CXX=csg++ CC=csgcc -j4 cd .. -# --------------------------- Clone the Test Suite +echo "--------------------------- Clone the Test Suite" echo "Clone Test Suites..." git clone ssh://git@dvm-linux02:7999/ui/testsuites.git -# --------------------------- Run the Squish runner +echo "--------------------------- Run the Squish runner" echo "Starting tests..." -$SQUISH_DIR/bin/squishrunner \ - addAUT $BUID_DIR/denali \ - --testsuite testsuites --local \ - --exitCodeOnFail 13 \ - --reportgen html,$REPORT/UnitTest \ - 1>$REPORT/runner.log \ - 2>$REPORT/runner.err & +$SQUISH_DIR/bin/squishrunner addAUT $BUID_DIR/denali --testsuite testsuites --local --exitCodeOnFail 13 --reportgen html,$REPORT/UnitTest 1>$REPORT/runner.log 2>$REPORT/runner.err -# --------------------------- Run the denali application as a test, since the Squish Qt can't run it right now. +echo "--------------------------- Run the denali application as a test, since the Squish Qt can't run it right now." cd $BUID_DIR ./denali & sleep 5 killall denali sleep 5 cd .. -# --------------------------- Importing the excecution report into the coverage database +echo "--------------------------- Importing the excecution report into the coverage database" cmcsexeimport -m $PWD/$BUID_DIR/denali.csmes -t UnitTest01 $PWD/$BUID_DIR/denali.csexe -# --------------------------- Generating the coverage report +echo "--------------------------- Generating the coverage report" cmreport --csmes=$PWD/$BUID_DIR/denali.csmes --html=$REPORT/Coverage/index -# --------------------------- Copy the reports +echo "--------------------------- Copy the reports" mkdir $REMOTE_DIR/$REPORT_DIR cp -rd Report/* $REMOTE_DIR/$REPORT_DIR +