-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
@vnarapar Could you please add a Signed-off-by line to your commit message. This is required for DCO compliance. |
e42aec1
to
c62dba5
Compare
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]>
…tory Signed-off-by: smuppand <[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]>
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]>
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.
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 * |
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
fi | ||
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res |
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 some condition is missing here.
@@ -0,0 +1,55 @@ | |||
#Copyright: 2016-2019 Linaro Limited |
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.
2016-2025 for Linaro
I think we might add Qualcomm's copyright as well with date 2025
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.
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.
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.
@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" |
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.
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 |
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.
Remove lines if they're not used.
YELLOW="\e[33m" | ||
BLUE="\e[34m" | ||
NC="\e[0m" # No Color | ||
# Color codes (ANSI escape sequences) |
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 we can leave it for now, but in the long run I would discourage from using colour output in test scripts.
This PR is replaced by #30. |
Below are the changes merged as part of this PR