File tree Expand file tree Collapse file tree 31 files changed +184
-141
lines changed
Kernel/FunctionalArea/baseport Expand file tree Collapse file tree 31 files changed +184
-141
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
12# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
23# SPDX-License-Identifier: BSD-3-Clause-Clear
34
45# Source this file to setup the test suite environment
5- export BASEDIR=$(pwd)
6- export TOOLS=$(pwd)/utils
7- export SUITES=$(pwd)/suites
6+ BASEDIR=$( pwd)
7+ export BASEDIR
8+ TOOLS=$( pwd) /utils
9+ export TOOLS
10+ SUITES=$( pwd) /suites
11+ export SUITES
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78
89# import test functions library
9- . $ TOOLS /functestlib.sh
10+ . " ${ TOOLS} " /functestlib.sh
1011
1112
1213# Find test case path by name
@@ -16,8 +17,8 @@ find_test_case_by_name() {
1617 # Get the directory name
1718 dir_name_in_dir=${1##*/ }
1819
19- # Check if the directory name matches the user input (ignoring case)
20- if [ " ${dir_name_in_dir,, } " = " $test_name " ]; then
20+ # Check if the directory name matches the user input
21+ if [ " ${dir_name_in_dir} " = " $test_name " ]; then
2122 # Get the absolute path of the directory
2223 abs_path=$( readlink -f " $1 " )
2324 echo " $abs_path "
@@ -53,7 +54,6 @@ execute_test_case() {
5354# Function to run a specific test case by name
5455run_specific_test_by_name () {
5556 test_name=" $1 "
56- test_name=${test_name,,}
5757 test_path=$( find_test_case_by_name " ." )
5858 if [ -z " $test_path " ]; then
5959 log " Test case with name $test_name not found."
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" BWMON"
89
910# import test functions library
10- . $ TOOLS /functestlib.sh
11+ . " ${ TOOLS} " /functestlib.sh
1112test_path=$( find_test_case_by_name " $TESTNAME " )
1213log_info " --------------------------------------------------------------------------"
1314log_info " -------------------Starting $TESTNAME Testcase----------------------------"
@@ -41,6 +42,7 @@ log_info "Comparing votes"
4142
4243
4344incremented=true
45+ # shellcheck disable=SC2046
4446for i in $( seq 2 $( echo " $initial_votes " | wc -l) ) ; do
4547 initial_vote=$( echo " $initial_votes " | sed -n " ${i} p" )
4648 final_vote=$( echo " $final_votes " | sed -n " ${i} p" )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" Buses"
89
910# import test functions library
10- . $ TOOLS /functestlib.sh
11+ . " ${ TOOLS} " /functestlib.sh
1112test_path=$( find_test_case_by_name " $TESTNAME " )
1213log_info " -----------------------------------------------------------------------------------------"
1314log_info " -------------------Starting $TESTNAME Testcase----------------------------"
2627 log_fail " $TESTNAME : Test Failed"
2728 echo " $TESTNAME FAIL" > $test_path /$TESTNAME .res
2829fi
29- log_info " -------------------Completed $TESTNAME Testcase----------------------------"
30+ log_info " -------------------Completed $TESTNAME Testcase----------------------------"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
5-
6- . " $( pwd) /init_env"
6+ . " ${PWD} /init_env"
77TESTNAME=" CPUFreq_Validation"
88. " $TOOLS /functestlib.sh"
99
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" GIC"
89
910# import test functions library
10- . $ TOOLS /functestlib.sh
11+ . " ${ TOOLS} " /functestlib.sh
1112test_path=$( find_test_case_by_name " $TESTNAME " )
1213log_info " -----------------------------------------------------------------------------------------"
1314log_info " -------------------Starting $TESTNAME Testcase----------------------------"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" IPA"
89. " $TOOLS /functestlib.sh"
910test_path=$( find_test_case_by_name " $TESTNAME " )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" IPCC"
89
910# import test functions library
10- . $ TOOLS /functestlib.sh
11+ . " ${ TOOLS} " /functestlib.sh
1112test_path=$( find_test_case_by_name " $TESTNAME " )
1213log_info " --------------------------------------------------------------------------"
1314log_info " -------------------Starting $TESTNAME Testcase----------------------------"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" Interrupts"
89
910# import test functions library
10- . $TOOLS /functestlib.sh
11- test_path=$( find_test_case_by_name " $TESTNAME " )
11+ . " ${TOOLS} " /functestlib.sh
1212log_info " -----------------------------------------------------------------------------------------"
1313log_info " -------------------Starting $TESTNAME Testcase----------------------------"
1414
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
6- . $( pwd ) /init_env
7+ . " ${PWD} " /init_env
78TESTNAME=" MEMLAT"
89# import test functions library
9- . $ TOOLS /functestlib.sh
10+ . " ${ TOOLS} " /functestlib.sh
1011test_path=$( find_test_case_by_name " $TESTNAME " )
1112test_bin_path=$( find_test_case_bin_by_name " lat_mem_rd" )
1213log_info " -----------------------------------------------------------------------------------------"
3738log_info " Comparing votes..."
3839
3940incremented=true
41+ # shellcheck disable=SC2046
4042for i in $( seq 1 $( echo " $initial_votes " | wc -l) ) ; do
4143 initial_vote=$( echo " $initial_votes " | sed -n " ${i} p" )
4244 final_vote=$( echo " $final_votes " | sed -n " ${i} p" )
You can’t perform that action at this time.
0 commit comments