Skip to content

Commit 5d4b698

Browse files
authored
Update runlabview.sh
1 parent 4f6f5f4 commit 5d4b698

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

runlabview.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/bin/bash
2-
# Verify that the configuration file exists.
32
CONFIG_FILE='/workspace/Test-VIs/viaPassCase.viancfg'
43
LABVIEW_PATH='/usr/local/natinst/LabVIEW-2025-64/labviewprofull'
54
REPORT_PATH='/usr/local/natinst/ContainerExamples/Results.txt'
65
MASSCOMPILE_DIR='/workspace/Test-VIs'
6+
7+
# Verify that the configuration file exists.
78
if [ ! -f "$CONFIG_FILE" ]; then
89
echo "Error: Configuration file not found at $CONFIG_FILE, exiting...!"
910
exit 1
1011
fi
11-
echo "########################################################################################"
12+
13+
1214
echo "Running LabVIEWCLI MassCompile with following parameters:"
1315
echo "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"
2224
echo "########################################################################################"
2325
echo $OUTPUT_MASSCOMPILE
2426
echo "########################################################################################"
@@ -27,18 +29,17 @@ echo "Running LabVIEWCLI VIAnalyzer with the following parameters:"
2729
echo "ConfigPath: $CONFIG_FILE"
2830
echo "ReportPath: $REPORT_PATH"
2931

30-
# Run the LabVIEWCLI command.
32+
# Run the LabVIEWCLI VIA command.
3133
OUTPUT=$(LabVIEWCLI -LogToConsole TRUE \
3234
-OperationName RunVIAnalyzer \
3335
-ConfigPath $CONFIG_FILE \
3436
-ReportPath $REPORT_PATH \
3537
-LabVIEWPath $LABVIEW_PATH)
3638

3739
echo "Done running of VI Analyzer Tests"
38-
echo "Printing Report..."
40+
echo "\nPrinting Results..."
3941
echo "########################################################################################"
4042
cat "$REPORT_PATH"
41-
echo "########################################################################################"
4243

4344
# 1) Extract the number from the report file, anchor to “Failed Tests”
4445
FAILED_COUNT=$(
@@ -59,8 +60,10 @@ echo "Number of failed tests: $FAILED_COUNT"
5960
# 4) Exit based on count
6061
if (( FAILED_COUNT > 0 )); then
6162
echo "✖ Some tests failed. Exiting with error."
63+
echo "########################################################################################"
6264
exit 1
6365
else
6466
echo "✔ All tests passed."
67+
echo "########################################################################################"
6568
exit 0
6669
fi

0 commit comments

Comments
 (0)