Skip to content

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
wants to merge 18 commits into from

Conversation

vnarapar
Copy link
Contributor

@vnarapar vnarapar commented May 12, 2025

Below are the changes merged as part of this PR

  1. Added LAVA framework related changes and comment fixes as part of previous PR
  2. find_test_case_by_name function modified
  3. Added send-to-lava.sh along with SPDX license
  4. Fixed indentation issues for all the scripts
  5. removed source and added . in all the scripts
  6. bash syntax is removed
  7. Redundancy variables are removed in .yaml files

@vnarapar vnarapar requested review from mwasilew and smuppand May 12, 2025 05:30
@smuppand
Copy link
Contributor

@vnarapar Could you please add a Signed-off-by line to your commit message. This is required for DCO compliance.

@vnarapar vnarapar force-pushed the main branch 6 times, most recently from e42aec1 to c62dba5 Compare May 12, 2025 17:39
vnarapar and others added 9 commits May 12, 2025 23:10
Removed prev results

Integrated LAVA framework with new YAML plans

Added send-to-lava.sh script with SPDX license header
Removed redundant variables in 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

Signed-off-by: Vamsee Narapareddi <[email protected]>
- Cleaned up bash syntax for better readability and maintainability

Signed-off-by: Vamsee Narapareddi <[email protected]>
Modified the find command

Signed-off-by: Vamsee Narapareddi <[email protected]>
Signed-off-by: Vamsee Narapareddi <[email protected]>
Signed-off-by: Vamsee Narapareddi <[email protected]>
This pull request updates the project's license to BSD-3-Clause-Clear.

Replaced the existing license file with the new license file.

Reason for Change
The update ensures that our project complies with the latest legal requirements and aligns with our current licensing strategy.

Signed-off-by: smuppand <[email protected]>
Signed-off-by: Vamsee Narapareddi <[email protected]>
Added functestlib.sh for IPA and RMNET

Signed-off-by: Vamsee Narapareddi <[email protected]>
vnarapar added 9 commits May 12, 2025 23:12
Integrated LAVA framework with new YAML plans
Added send-to-lava.sh script with SPDX license header
Removed redundant variables in YAML files

Signed-off-by: Vamsee Narapareddi <[email protected]>
Replaced 'source' with '.' in all scripts for consistency
Cleaned up bash syntax for better readability and maintainability

Signed-off-by: Vamsee Narapareddi <[email protected]>
Modified the function find_test_case_by_name and
run_specific_test_by_name in run-test.sh

Signed-off-by: Vamsee Narapareddi <[email protected]>
I have fixed all the indentation issues in all shell scripts

Signed-off-by: Vamsee Narapareddi <[email protected]>
made few changes for the script to work for sh, previously added to work
with bash

Signed-off-by: Vamsee Narapareddi <[email protected]>
Removed logging related functions as they are already present in functestlib.sh

Signed-off-by: Vamsee Narapareddi <[email protected]>
Added functestlib.sh for IPA and RMNET as log_pass/log_fail are define
there

Signed-off-by: Vamsee Narapareddi <[email protected]>
Signed-off-by: Vamsee Narapareddi <[email protected]>
Signed-off-by: Vamsee Narapareddi <[email protected]>
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message in "Modified the PASS/FAIL result in all the scripts to work for LAVA" is duplicated. Please leave just one copy.

There are 3 copies of some commits. Only one should remain.

Some commits are still missing the commit message.

I think this is a very good progress. Some minor cleanup is needed to merge this PR. If you need some help, ping my tomorrow and we can walk through the changes together.

run:
steps:
- cd Runner
- chmod -R 777 *
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

fi
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some condition is missing here.

@@ -0,0 +1,55 @@
#Copyright: 2016-2019 Linaro Limited
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2016-2025 for Linaro
I think we might add Qualcomm's copyright as well with date 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally shouldn't update or add Linaro's copyright statement (or any other 3rd parties). It looks like in this case the original file is unmarked: https://github.com/Linaro/test-definitions/blob/975b3d4bc03401ea9c5c6e078e1f3ac601561121/automated/utils/send-to-lava.sh#L4

In that case perhaps it is best to clearly reference in the file where it came from, the version used and the license. Plus include any relevant notices at the top level (e.g. info from https://github.com/Linaro/test-definitions/blob/975b3d4bc03401ea9c5c6e078e1f3ac601561121/COPYRIGHTS, etc...).

For example:

Script is from https://github.com/Linaro/test-definitions

SPDX-License-Identifier: GPL-2.0-only

We should only add our copyright if we have made modifications.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@craigez thanks for explanation. I thought this copyright applies to all files in the repository:
https://github.com/Linaro/test-definitions/blob/master/COPYRIGHTS

@@ -8,8 +8,34 @@ source $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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove lines if they're not used.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove lines if they're not used.

YELLOW="\e[33m"
BLUE="\e[34m"
NC="\e[0m" # No Color
# Color codes (ANSI escape sequences)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can leave it for now, but in the long run I would discourage from using colour output in test scripts.

@mwasilew
Copy link
Contributor

This PR is replaced by #30.

@mwasilew mwasilew closed this May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants