-
Notifications
You must be signed in to change notification settings - Fork 17
LAVA support along with test definitions comment fixes #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
978ade7
Modified the PASS/FAIL result in all the scripts to work for LAVA
vnarapar ab2c76a
Replaced 'source' with '.' in all scripts for consistency
vnarapar dfe35e1
Modified the find command to identify the testcase
vnarapar a752a9e
Fixed indentation in all shell scripts
vnarapar c8583eb
CPU frequency changes to support sh
vnarapar 11301ab
Removing source files in preparation for migration to external reposi…
smuppand 2138225
Removed unwanted functions from testcases
vnarapar fdec95c
Update License to BSD-3-Clause-Clear
smuppand 78db545
Fixed rmnet and IPA script.
vnarapar 2105d0c
Added support for LAVA framework including YAML files
vnarapar dfea5c2
Replaced 'source' with '.' in all scripts for consistency
vnarapar 4a49520
Modified the find command to identify the testcase
vnarapar 9238e04
Fixed indentation in all shell scripts
vnarapar 7acac23
CPU frequency changes to support sh
vnarapar 619c57c
Removed unwanted functions from testcases
vnarapar 0cb15c1
Fixed rmnet and IPA script.
vnarapar 6b5cb3c
Removed source
vnarapar 9a43d3a
Fixed conflit
vnarapar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. | ||
|
||
SPDX-License-Identifier: BSD-3-Clause-Clear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
# Source this file to setup the test suite environment | ||
if [ -e '/var/Runner' ];then | ||
export BASEDIR='/var/Runner' | ||
export TOOLS='/var/Runner/utils' | ||
export SUITES='/var/Runner/suites' | ||
export CALIBRATION='/var/Runner/calib.txt' | ||
export FTRACE_EVENTS='/var/Runner/ftrace_events' | ||
export PATH=$PATH:'/bin' | ||
export PATH=$PATH:'/sbin' | ||
fi | ||
|
||
export BASEDIR=$(pwd) | ||
export TOOLS=$(pwd)/utils | ||
export SUITES=$(pwd)/suites |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
metadata: | ||
format: Lava-Test Test Definition 1.0 | ||
name: AUSanity | ||
description: "Baseline AU Sanity test plan" | ||
maintainer: | ||
- vnarapar@qti.qualcomm.com | ||
os: | ||
- openembedded | ||
scope: | ||
- functional | ||
devices: | ||
- rb3gen2 | ||
|
||
run: | ||
steps: | ||
- cd Runner | ||
- chmod -R 777 * | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
metadata: | ||
format: Lava-Test Test Definition 1.0 | ||
name: AUSanity | ||
description: "Baseline AU Sanity test plan" | ||
maintainer: | ||
- vnarapar@qti.qualcomm.com | ||
os: | ||
- openembedded | ||
scope: | ||
- functional | ||
devices: | ||
- rb3gen2 | ||
|
||
run: | ||
steps: | ||
- cd Runner | ||
- chmod -R 777 * | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/adsp_remoteproc.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/cdsp_remoteproc.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/CPUFreq_Validation.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/GIC/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/GIC/GIC.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/hotplug.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/Interrupts.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/iommu/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/iommu/iommu.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/IPA/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPA/IPA.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/IPCC.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/irq/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/irq/irq.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/kaslr.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/MEMLAT/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/pinctrl.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/Reboot_health_check.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/remoteproc.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/RMNET.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/rngtest/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/smmu/smmu.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/storage/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/storage/storage.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/watchdog.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/wpss_remoteproc.res || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
metadata: | ||
format: Lava-Test Test Definition 1.0 | ||
name: AUSanity | ||
description: "Baseline AU Sanity test plan" | ||
maintainer: | ||
- vnarapar@qti.qualcomm.com | ||
os: | ||
- openembedded | ||
scope: | ||
- functional | ||
devices: | ||
- rb3gen2 | ||
|
||
run: | ||
steps: | ||
- cd Runner | ||
- chmod -R 777 * | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/adsp_remoteproc.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/cdsp_remoteproc.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/CPUFreq_Validation.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/GIC/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/GIC/GIC.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/hotplug.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/Interrupts.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/iommu/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/iommu/iommu.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/IPA/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPA/IPA.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/IPCC.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/irq/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/irq/irq.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/kaslr.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/pinctrl.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/qcrypto/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/qcrypto/qcrypto.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/Reboot_health_check.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/remoteproc.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/RMNET.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/smmu/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/smmu/smmu.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/storage/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/storage/storage.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/Timer/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Timer/Timer.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/watchdog.res || true | ||
- $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/run.sh || true | ||
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/wpss_remoteproc.res || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
#!/bin/sh | ||
# Import test suite definitions | ||
source /var/Runner/init_env | ||
|
||
source $(pwd)/init_env | ||
|
||
#import test functions library | ||
source $TOOLS/functestlib.sh | ||
. $TOOLS/functestlib.sh | ||
|
||
|
||
# Find test case path by name | ||
find_test_case_by_name() { | ||
local test_name="$1" | ||
find /var/Runner/suites -type d -iname "$test_name" 2>/dev/null | ||
# local test_name="$1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove lines if they're not used. |
||
# dir= "." | ||
# Check if the file is a directory | ||
if [ -d "$1" ]; then | ||
# Get the directory name | ||
dir_name_in_dir=${1##*/} | ||
|
||
# Check if the directory name matches the user input (ignoring case) | ||
if [ "${dir_name_in_dir,,}" = "$test_name" ]; then | ||
# Get the absolute path of the directory | ||
abs_path=$(readlink -f "$1") | ||
echo "$abs_path" | ||
# Check if the run.sh file is present in the absolute path (ignoring case) | ||
# if [ -f "$abs_path/run.sh" ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove lines if they're not used. |
||
# Print the absolute path of run.sh | ||
# echo "Absolute path of run.sh: $abs_path/run.sh" | ||
# fi | ||
fi | ||
fi | ||
|
||
# Recursively search for the directory in the subdirectory | ||
for file in "$1"/*; do | ||
# Check if the file is a directory | ||
if [ -d "$file" ]; then | ||
# Recursively search for the directory in the subdirectory | ||
find_test_case_by_name "$file" | ||
fi | ||
done | ||
} | ||
|
||
# Execute a test case | ||
|
@@ -35,8 +62,9 @@ execute_test_case() { | |
|
||
# Function to run a specific test case by name | ||
run_specific_test_by_name() { | ||
local test_name="$1" | ||
test_path=$(find_test_case_by_name "$test_name") | ||
test_name="$1" | ||
test_name=${test_name,,} | ||
test_path=$(find_test_case_by_name ".") | ||
if [ -z "$test_path" ]; then | ||
log "Test case with name $test_name not found." | ||
else | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the steps are missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
steps will be added once audio related testcases are merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just remove it from the commit. No point carrying empty/broken test definition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure