File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,21 +10,25 @@ red=$(tput setaf 1)
1010reset=$( tput sgr0)
1111bold=$( tput bold)
1212
13+ fail () {
14+ echo " ${bold}${red} FAIL${reset} "
15+ exit 1
16+ }
17+
1318set -euo pipefail
1419
1520HERE=$( cygpath -w $( pwd) )
1621
17- g-cli vipc -- -v " ${LV_VERSION:- " 20.0 (64-bit)" } " -t 1200 " approvals-dev.vipc"
18- g-cli lunit -- -r " reports\\ LUnit.UnitTestReport.xml" " Approval Testing.lvproj"
19- g-cli vitester -- -r " reports\\ VITester.UnitTestReport.xml" " Tests\\ Extension Tests.lvproj"
22+ g-cli vipc -- -v " ${LV_VERSION:- " 20.0 (64-bit)" } " -t 1200 " approvals-dev.vipc" || fail
23+ g-cli lunit -- -r " reports\\ LUnit.UnitTestReport.xml" " Approval Testing.lvproj" || fail
24+ g-cli vitester -- -r " reports\\ VITester.UnitTestReport.xml" " Tests\\ Extension Tests.lvproj" || fail
2025SECONDS=0
2126echo " Running Caraya Extension Tests" # needed because caray tool is not very verbose.
22- g-cli caraya -- -s " Tests\\ Caraya.Tests\\ Caraya Extension Tests\\ Caraya Extension Tests.lvclass" -x " reports\\ Caraya.UnitTestReport.xml"
27+ g-cli caraya -- -s " Tests\\ Caraya.Tests\\ Caraya Extension Tests\\ Caraya Extension Tests.lvclass" -x " reports\\ Caraya.UnitTestReport.xml" || fail
2328echo " Test Time: $SECONDS "
2429SECONDS=0
2530echo " Running Error Propagation Tests"
26- g-cli caraya -- -s " Tests\\ Error.Propagation.Tests\\ Error.Propagation.Tests.lvclass" -x " reports\\ Error.Propagation.UnitTestReport.xml"
27-
28- echo " ${bold}${green} Result Pass${reset} "
29- echo " ${bold} Test Time: $SECONDS ${reset} "
31+ g-cli caraya -- -s " Tests\\ Error.Propagation.Tests\\ Error.Propagation.Tests.lvclass" -x " reports\\ Error.Propagation.UnitTestReport.xml" || fail
32+ echo " Test Time: $SECONDS "
33+ echo " ${bold}${green} PASS${reset} "
3034
You can’t perform that action at this time.
0 commit comments