11#! /bin/bash
2- # Verify that the configuration file exists.
32CONFIG_FILE=' /workspace/Test-VIs/viaPassCase.viancfg'
43LABVIEW_PATH=' /usr/local/natinst/LabVIEW-2025-64/labviewprofull'
54REPORT_PATH=' /usr/local/natinst/ContainerExamples/Results.txt'
65MASSCOMPILE_DIR=' /workspace/Test-VIs'
6+
7+ # Verify that the configuration file exists.
78if [ ! -f " $CONFIG_FILE " ]; then
89 echo " Error: Configuration file not found at $CONFIG_FILE , exiting...!"
910 exit 1
1011fi
11- echo " ########################################################################################"
12+
13+
1214echo " Running LabVIEWCLI MassCompile with following parameters:"
1315echo " DirectorytoCompile: $MASSCOMPILE_DIR "
1416
@@ -17,8 +19,8 @@ OUTPUT_MASSCOMPILE=$(LabVIEWCLI -LogToConsole TRUE \
1719-DirectoryToCompile $MASSCOMPILE_DIR \
1820-LabVIEWPath $LABVIEW_PATH )
1921
20- echo " \nDone Running Masscompile Operation"
21- echo " Printing Results...\n"
22+ echo " Done Running Masscompile Operation"
23+ echo -e " \nPrinting Results...\n"
2224echo " ########################################################################################"
2325echo $OUTPUT_MASSCOMPILE
2426echo " ########################################################################################"
@@ -27,18 +29,17 @@ echo "Running LabVIEWCLI VIAnalyzer with the following parameters:"
2729echo " ConfigPath: $CONFIG_FILE "
2830echo " ReportPath: $REPORT_PATH "
2931
30- # Run the LabVIEWCLI command.
32+ # Run the LabVIEWCLI VIA command.
3133OUTPUT=$( LabVIEWCLI -LogToConsole TRUE \
3234-OperationName RunVIAnalyzer \
3335-ConfigPath $CONFIG_FILE \
3436-ReportPath $REPORT_PATH \
3537-LabVIEWPath $LABVIEW_PATH )
3638
3739echo " Done running of VI Analyzer Tests"
38- echo " Printing Report ..."
40+ echo " \nPrinting Results ..."
3941echo " ########################################################################################"
4042cat " $REPORT_PATH "
41- echo " ########################################################################################"
4243
4344# 1) Extract the number from the report file, anchor to “Failed Tests”
4445FAILED_COUNT=$(
@@ -59,8 +60,10 @@ echo "Number of failed tests: $FAILED_COUNT"
5960# 4) Exit based on count
6061if (( FAILED_COUNT > 0 )) ; then
6162 echo " ✖ Some tests failed. Exiting with error."
63+ echo " ########################################################################################"
6264 exit 1
6365else
6466 echo " ✔ All tests passed."
67+ echo " ########################################################################################"
6568 exit 0
6669fi
0 commit comments