Skip to content

Conversation

abbajaj806
Copy link
Contributor

Implemented shell scripts for public CI for Decode and Encode Scenarios.

Added Video encode test script
Added Video decode test script
Added readme document for video validation
Implemented Function for ActiveIP
Implemented Function for wget pull resource
Implemented Function for untar of resource
Implemented Function to check if file is already present or not

@abbajaj806 abbajaj806 requested review from mwasilew, smuppand and vnarapar and removed request for mwasilew May 23, 2025 13:25
# Extract the filename from the URL
filename=$(basename "$url")
if [ -f "$filename" ]; then
return 0
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix indentation.

# Extract the filename from the URL
filename=$(basename "$url")
if check_tar_file "$filename"; then
echo "[PASS] file already exists, Hence skipping downloading"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix indentation.


#import test functions library
. $TOOLS/functestlib.sh
# shellcheck souce=../../../../utils/functestlib.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix the typo


#import test functions library
. $TOOLS/functestlib.sh
# shellcheck souce=../../../../utils/functestlib.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix the typo

filename=$(basename "$url")
if check_tar_file "$filename"; then
echo "[PASS] file already exists, Hence skipping downloading"
return 1
Copy link
Contributor

Choose a reason for hiding this comment

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

The return codes are really confusing. Sometimes 1 means OK and sometimes it means failure. I propose to return 0 always when there is no problem and use non-zero codes when there are issues.


if ping -c 1 -W 2 8.8.8.8 >/dev/null 2>&1; then
echo "[PASS] Internet is reachable."
return 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Return codes in this function are reversed.

mwasilew and others added 2 commits May 23, 2025 19:30
When suite is run from a different directory than /var/ functions won't
be able to find tests by name. This patch fixes the issue and allows to
discover tests that are executed from current path.

Signed-off-by: Milosz Wasilewski <[email protected]>
Implemented shell scripts for public CI for Decode and Encode Scenarios.

Added Video encode test script
Added Video decode test script
Added readme document for video validation
Implemented Function for ActiveIP
Implemented Function for wget pull resource
Implemented Function for untar of resource
Implemented Function to check if file is already present or not

Signed-off-by: Abhishek Bajaj <[email protected]>
@abbajaj806
Copy link
Contributor Author

Some Rebase issue. Will raise another PR

@abbajaj806 abbajaj806 closed this May 23, 2025
@abbajaj806 abbajaj806 deleted the Video branch May 23, 2025 14:02
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.

2 participants