Skip to content

Commit 07adc13

Browse files
committed
Added support for LAVA framework including YAML files
Integrated LAVA framework with new YAML plans Added send-to-lava.sh script with SPDX license header Removed redundant variables in YAML files Removed Audio_Premerge yaml file Copied send-to-lava.sh from linaro to support result parsing with LAVA framework. Original source: https://github.com/Linaro/test-definitions/blob/master/automated/utils/send-to-lava.sh License: GPL-2.0-only, MIT This change is added for LAVA framework support to all the scripts based on testplan. Added the license file with 644 permissionsin the same folder where send-to-lava.sh is present as per review comment Removed chmod permissions in testplansand gave permissions to repository Signed-off-by: Vamsee Narapareddi <[email protected]>
1 parent ec8d3f1 commit 07adc13

File tree

35 files changed

+587
-71
lines changed

35 files changed

+587
-71
lines changed

Runner/init_env

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
# SPDX-License-Identifier: BSD-3-Clause-Clear
33

44
# Source this file to setup the test suite environment
5-
if [ -e '/var/Runner' ];then
6-
export BASEDIR='/var/Runner'
7-
export TOOLS='/var/Runner/utils'
8-
export SUITES='/var/Runner/suites'
9-
export CALIBRATION='/var/Runner/calib.txt'
10-
export FTRACE_EVENTS='/var/Runner/ftrace_events'
11-
export PATH=$PATH:'/bin'
12-
export PATH=$PATH:'/sbin'
13-
fi
14-
5+
export BASEDIR=$(pwd)
6+
export TOOLS=$(pwd)/utils
7+
export SUITES=$(pwd)/suites

Runner/plans/KernelCI_PreMerge.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
metadata:
2+
format: Lava-Test Test Definition 1.0
3+
name: AUSanity
4+
description: "Baseline AU Sanity test plan"
5+
maintainer:
6+
7+
os:
8+
- openembedded
9+
scope:
10+
- functional
11+
devices:
12+
- rb3gen2
13+
14+
run:
15+
steps:
16+
- cd Runner
17+
- $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh || true
18+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/adsp_remoteproc.res || true
19+
- $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh || true
20+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/cdsp_remoteproc.res || true
21+
- $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh || true
22+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/CPUFreq_Validation.res || true
23+
- $PWD/suites/Kernel/FunctionalArea/baseport/GIC/run.sh || true
24+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/GIC/GIC.res || true
25+
- $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh || true
26+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/hotplug.res || true
27+
- $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh || true
28+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/Interrupts.res || true
29+
- $PWD/suites/Kernel/FunctionalArea/baseport/iommu/run.sh || true
30+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/iommu/iommu.res || true
31+
- $PWD/suites/Kernel/FunctionalArea/baseport/IPA/run.sh || true
32+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPA/IPA.res || true
33+
- $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh || true
34+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/IPCC.res || true
35+
- $PWD/suites/Kernel/FunctionalArea/baseport/irq/run.sh || true
36+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/irq/irq.res || true
37+
- $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh || true
38+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/kaslr.res || true
39+
- $PWD/suites/Kernel/FunctionalArea/baseport/MEMLAT/run.sh || true
40+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/pinctrl.res || true
41+
- $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh || true
42+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/Reboot_health_check.res || true
43+
- $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh || true
44+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/remoteproc.res || true
45+
- $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh || true
46+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/RMNET.res || true
47+
- $PWD/suites/Kernel/FunctionalArea/baseport/rngtest/run.sh || true
48+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/smmu/smmu.res || true
49+
- $PWD/suites/Kernel/FunctionalArea/baseport/storage/run.sh || true
50+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/storage/storage.res || true
51+
- $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/run.sh || true
52+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/watchdog.res || true
53+
- $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/run.sh || true
54+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/wpss_remoteproc.res || true

Runner/plans/meta-qcom_PreMerge.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
metadata:
2+
format: Lava-Test Test Definition 1.0
3+
name: AUSanity
4+
description: "Baseline AU Sanity test plan"
5+
maintainer:
6+
7+
os:
8+
- openembedded
9+
scope:
10+
- functional
11+
devices:
12+
- rb3gen2
13+
14+
run:
15+
steps:
16+
- cd Runner
17+
- $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh || true
18+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/adsp_remoteproc.res || true
19+
- $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh || true
20+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/cdsp_remoteproc.res || true
21+
- $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh || true
22+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/CPUFreq_Validation.res || true
23+
- $PWD/suites/Kernel/FunctionalArea/baseport/GIC/run.sh || true
24+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/GIC/GIC.res || true
25+
- $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh || true
26+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/hotplug.res || true
27+
- $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh || true
28+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/Interrupts.res || true
29+
- $PWD/suites/Kernel/FunctionalArea/baseport/iommu/run.sh || true
30+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/iommu/iommu.res || true
31+
- $PWD/suites/Kernel/FunctionalArea/baseport/IPA/run.sh || true
32+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPA/IPA.res || true
33+
- $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh || true
34+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/IPCC.res || true
35+
- $PWD/suites/Kernel/FunctionalArea/baseport/irq/run.sh || true
36+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/irq/irq.res || true
37+
- $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh || true
38+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/kaslr.res || true
39+
- $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/run.sh || true
40+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/pinctrl.res || true
41+
- $PWD/suites/Kernel/FunctionalArea/baseport/qcrypto/run.sh || true
42+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/qcrypto/qcrypto.res || true
43+
- $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh || true
44+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/Reboot_health_check.res || true
45+
- $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh || true
46+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/remoteproc.res || true
47+
- $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh || true
48+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/RMNET.res || true
49+
- $PWD/suites/Kernel/FunctionalArea/baseport/smmu/run.sh || true
50+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/smmu/smmu.res || true
51+
- $PWD/suites/Kernel/FunctionalArea/baseport/storage/run.sh || true
52+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/storage/storage.res || true
53+
- $PWD/suites/Kernel/FunctionalArea/baseport/Timer/run.sh || true
54+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Timer/Timer.res || true
55+
- $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/run.sh || true
56+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/watchdog.res || true
57+
- $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/run.sh || true
58+
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/wpss_remoteproc.res || true

Runner/run-test.sh

100644100755
File mode changed.

Runner/suites/Kernel/FunctionalArea/baseport/BWMON/run.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ done
5454

5555
if $incremented; then
5656
log_pass "$TESTNAME : Test Passed"
57-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
57+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
5858
else
59-
log_fail "$TESTNAME : Test Failed"
60-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
59+
log_fail "$TESTNAME : Test Failed"
60+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
6161
fi
6262
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/Buses/run.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ output=$(i2c-msm-test -v -D /dev/i2c-0 -l | grep "ret:1")
2121

2222
if echo "$output" | grep -q "Reading"; then
2323
log_pass "$TESTNAME : Test Passed"
24-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
24+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
2525
else
26-
log_fail "$TESTNAME : Test Failed"
27-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
26+
log_fail "$TESTNAME : Test Failed"
27+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
2828
fi
2929
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ if $overall_pass; then
120120
echo -e "${GREEN}[OVERALL PASS]${NC} All CPUs validated successfully."
121121
log_pass "$TESTNAME : Test Passed"
122122
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
123+
echo "$TESTNAME PASS" > "$test_path/$TESTNAME.res"
123124
exit 0
124125
else
125126
echo -e "${RED}[OVERALL FAIL]${NC} Some CPUs failed frequency validation."
126127
log_fail "$TESTNAME : Test Failed"
127128
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
129+
echo "$TESTNAME FAIL" > "$test_path/$TESTNAME.res"
128130
exit 1
129131
fi
130132

Runner/suites/Kernel/FunctionalArea/baseport/GIC/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ echo "$initial_count" | while read -r line; do
5757
echo $fail_test
5858
if [ "$fail_test" = false ]; then
5959
log_pass "$TESTNAME : Test Passed"
60-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
6160
else
6261
log_fail "$TESTNAME : Test Failed"
63-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
6462
fi
63+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
64+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
6565
done
6666
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/IPA/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ log_info "output of insmod $TEST"
4242
if /sbin/lsmod | /bin/grep "ipa"; then
4343
log_info "$(/sbin/lsmod | /bin/grep "ipa")"
4444
log_pass "$TESTNAME : Test Passed"
45-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
45+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
4646
else
4747
log_error "rmnet module not running"
4848
log_fail "$TESTNAME : Test Failed"
49-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
49+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
5050
fi
5151
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ count=$(echo "$output" | grep -c "running")
1818

1919
if [ $count -eq 4 ]; then
2020
log_pass "$TESTNAME : Test Passed"
21-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
21+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
2222
else
2323
log_fail "$TESTNAME : Test Failed"
24-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
24+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
2525
fi
2626
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh

100644100755
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ echo "$initial_count" | while read -r line; do
5454
fi
5555
i=$((i+1))
5656
done
57-
echo $fail_test
58-
if [ "$fail_test" = false ]; then
59-
log_pass "$TESTNAME : Test Passed"
60-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
61-
else
62-
log_fail "$TESTNAME : Test Failed"
63-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
64-
fi
57+
echo $fail_test
58+
if [ "$fail_test" = false ]; then
59+
log_pass "$TESTNAME : Test Passed"
60+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
61+
else
62+
log_fail "$TESTNAME : Test Failed"
63+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
64+
fi
6565
done
66-
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
66+
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/MEMLAT/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ else
5555
fi
5656
if $incremented; then
5757
log_pass "$TESTNAME : Test Passed"
58-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
58+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
5959
else
6060
log_fail "$TESTNAME : Test Failed"
61-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
61+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
6262
fi
6363
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ log_info "output of insmod $TEST"
4141
if /sbin/lsmod | /bin/grep "rmnet"; then
4242
log_info "$(/sbin/lsmod | /bin/grep "rmnet")"
4343
log_pass "$TESTNAME : Test Passed"
44-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
44+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
4545
else
4646
log_error "rmnet module not running"
4747
log_fail "$TESTNAME : Test Failed"
48-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
48+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
4949
fi
5050
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh

100644100755
File mode changed.

Runner/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/setup_systemd.sh

100644100755
File mode changed.

Runner/suites/Kernel/FunctionalArea/baseport/Timer/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ OUTPUT=$($BINARY_PATH)
2323
# Check if "pass:7" is in the output
2424
if [[ $OUTPUT == *"pass:7"* ]]; then
2525
log_pass "$TESTNAME : Test Passed"
26-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
26+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
2727
else
2828
log_fail "$TESTNAME : Test Failed"
29-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
29+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
3030
fi
3131
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ state1=$(cat ${remoteproc_path}/state)
2828

2929
if [ "$state1" != "running" ]; then
3030
log_fail "$TESTNAME : Test Failed"
31-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
31+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
3232
exit 1
3333
fi
3434

@@ -40,7 +40,7 @@ echo stop > ${remoteproc_path}/state
4040
state3=$(cat ${remoteproc_path}/state)
4141
if [ "$state3" != "offline" ]; then
4242
log_fail "adsp stop failed"
43-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
43+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
4444
exit 1
4545
else
4646
log_pass "adsp stop successful"
@@ -53,12 +53,12 @@ echo start > ${remoteproc_path}/state
5353
state5=$(cat ${remoteproc_path}/state)
5454
if [ "$state5" != "running" ]; then
5555
log_fail "adsp start failed"
56-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
56+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
5757
exit 1
5858
fi
5959

6060
# If all checks pass, print "PASS"
6161
echo "adsp PASS"
6262
log_pass "adsp PASS"
63-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
63+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
6464
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ remoteproc_path="/sys/class/remoteproc/remoteproc${remoteproc_number}"
2727
state1=$(cat ${remoteproc_path}/state)
2828
if [ "$state1" != "running" ]; then
2929
log_fail "$TESTNAME : Test Failed"
30-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
30+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
3131
exit 1
3232
fi
3333

@@ -38,7 +38,7 @@ echo stop > ${remoteproc_path}/state
3838
state3=$(cat ${remoteproc_path}/state)
3939
if [ "$state3" != "offline" ]; then
4040
log_fail "cdsp stop failed"
41-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
41+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
4242
exit 1
4343
else
4444
log_pass "cdsp stop successful"
@@ -51,12 +51,12 @@ echo start > ${remoteproc_path}/state
5151
state5=$(cat ${remoteproc_path}/state)
5252
if [ "$state5" != "running" ]; then
5353
log_fail "cdsp start failed"
54-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
54+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
5555
exit 1
5656
fi
5757

5858
# If all checks pass, print "PASS"
5959
echo "cdsp PASS"
6060
log_pass "cdsp PASS"
61-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
61+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
6262
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ check_cpu_status | tee -a "$LOG_FILE"
6666
# Print overall test result
6767
if [ "$test_passed" = true ]; then
6868
log_pass "$TESTNAME : Test Passed"
69+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
6970
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
7071
else
7172
log_fail "$TESTNAME : Test Failed"
72-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
73+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
7374
fi
7475
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/iommu/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ OUTPUT=$(dmesg | grep iommu)
1818
# Check if the output is null
1919
if [ -z "$OUTPUT" ]; then
2020
log_pass "$TESTNAME : Test Passed"
21-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
21+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
2222
else
2323
log_fail "$TESTNAME : Test Failed"
24-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
24+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
2525
fi
2626
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/irq/run.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ echo "$initial_count" | while read -r line; do
5454

5555
if [ "$fail_test" = false ]; then
5656
log_pass "$TESTNAME : Test Passed"
57-
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
57+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
5858
else
5959
log_fail "$TESTNAME : Test Failed"
60-
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
60+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
6161
fi
6262
done
6363
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

Runner/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ value=$(echo $output | awk '{print $1}')
2121

2222
if [ $value == "0000000000000000" ]; then
2323
log_pass "$TESTNAME : Test Passed"
24+
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
2425
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
2526
else
2627
log_fail "$TESTNAME : Test Failed"
2728
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
29+
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
2830
fi
2931
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

0 commit comments

Comments
 (0)