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'
6- MASSCOMPILE_DIR=' /usr/local/natinst/LabVIEW-2025-64/examples/Arrays'
5+ MASSCOMPILE_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- echo " (Debug) Running LabVIEWCLI MassCompile with following parameters: "
13- echo " (Debug) DirectorytoCompile: $MASSCOMPILE_DIR "
14- echo " (Debug) LabVIEWPath : $LABVIEW_PATH "
12+
13+
14+ echo " Running LabVIEWCLI MassCompile with following parameters: "
15+ echo " DirectorytoCompile : $MASSCOMPILE_DIR "
1516
1617OUTPUT_MASSCOMPILE=$( LabVIEWCLI -LogToConsole TRUE \
1718-OperationName MassCompile \
1819-DirectoryToCompile $MASSCOMPILE_DIR \
1920-LabVIEWPath $LABVIEW_PATH )
2021
21- echo " (Debug) Done Running Masscompile Operation"
22+ echo " "
23+ echo " Done Running Masscompile Operation"
2224echo " Printing Results..."
25+ echo " "
26+ echo " ########################################################################################"
2327echo $OUTPUT_MASSCOMPILE
24- echo " ────────────────────────────────────────────────────────────"
28+ echo " ########################################################################################"
29+ echo " "
2530
26- echo " (Debug) Running LabVIEWCLI VIAnalyzer with the following parameters:"
27- echo " (Debug) ConfigPath: $CONFIG_FILE "
28- echo " (Debug) ReportPath: $REPORT_PATH "
29- echo " (Debug) LabVIEWPath: $LABVIEW_PATH "
31+ echo " Running LabVIEWCLI VIAnalyzer with the following parameters:"
32+ echo " ConfigPath: $CONFIG_FILE "
33+ echo " ReportPath: $REPORT_PATH "
34+ echo " "
3035
31- # Run the LabVIEWCLI command.
36+ # Run the LabVIEWCLI VIA command.
3237OUTPUT=$( LabVIEWCLI -LogToConsole TRUE \
3338-OperationName RunVIAnalyzer \
3439-ConfigPath $CONFIG_FILE \
3540-ReportPath $REPORT_PATH \
3641-LabVIEWPath $LABVIEW_PATH )
3742
3843echo " Done running of VI Analyzer Tests"
39- echo " Print Report..."
40- echo " ────────────────────────────────────────────────────────────"
44+ echo " Printing Results..."
45+ echo " "
46+ echo " ########################################################################################"
4147cat " $REPORT_PATH "
42- echo " ────────────────────────────────────────────────────────────"
4348
4449# 1) Extract the number from the report file, anchor to “Failed Tests”
4550FAILED_COUNT=$(
@@ -60,8 +65,10 @@ echo "Number of failed tests: $FAILED_COUNT"
6065# 4) Exit based on count
6166if (( FAILED_COUNT > 0 )) ; then
6267 echo " ✖ Some tests failed. Exiting with error."
68+ echo " ########################################################################################"
6369 exit 1
6470else
6571 echo " ✔ All tests passed."
72+ echo " ########################################################################################"
6673 exit 0
6774fi
0 commit comments