Skip to content

Commit 34563b5

Browse files
committed
Public CI Video Decode and Encode Shell Scripts.
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 Functions for untar of resource Signed-off-by: Abhishek Bajaj <[email protected]>
1 parent 91c4430 commit 34563b5

File tree

2 files changed

+14
-16
lines changed
  • Runner/suites/Multimedia/Video

2 files changed

+14
-16
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
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+
# shellcheck source=./init_env
8+
. "$(pwd)/init_env"
79
TESTNAME="iris_v4l2_video_decode"
810

911
#import test functions library
10-
. $TOOLS/functestlib.sh
12+
. "$TOOLS/functestlib.sh"
1113
test_path=$(find_test_case_by_name "$TESTNAME")
1214
log_info "-----------------------------------------------------------------------------------------"
1315
log_info "-------------------Starting $TESTNAME Testcase----------------------------"
@@ -17,18 +19,15 @@ check_dependencies iris_v4l2_test
1719
check_network_status
1820
extract_tar_from_url https://github.com/qualcomm-linux/qcom-linux-testkit/releases/download/IRIS-Video-Files-v1.0/video_clips_iris.tar.gz
1921

20-
mkdir -p results/iris_v4l2_video_decode
21-
chmod -R 755 results/iris_v4l2_video_decode
22-
2322
# Run the first test
2423
iris_v4l2_test --config ./suites/Multimedia/Video/iris_v4l2_video_decode/h264Decoder.json --loglevel 15 >> ./suites/Multimedia/Video/iris_v4l2_video_decode/video_dec.txt
2524

2625
if grep -q "SUCCESS" ./suites/Multimedia/Video/iris_v4l2_video_decode/video_dec.txt; then
2726
log_pass "$TESTNAME : Test Passed"
28-
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
27+
echo "$TESTNAME PASS" > "$test_path/$TESTNAME.res"
2928
else
3029
log_fail "$TESTNAME : Test Failed"
31-
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
30+
echo "$TESTNAME FAIL" > "$test_path/$TESTNAME.res"
3231
fi
3332

3433
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
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+
# shellcheck source=./init_env
8+
. "$(pwd)/init_env"
79
TESTNAME="iris_v4l2_video_encode"
810

911
#import test functions library
10-
. $TOOLS/functestlib.sh
12+
. "$TOOLS/functestlib.sh"
1113
test_path=$(find_test_case_by_name "$TESTNAME")
1214
log_info "-----------------------------------------------------------------------------------------"
1315
log_info "-------------------Starting $TESTNAME Testcase----------------------------"
@@ -17,18 +19,15 @@ check_dependencies iris_v4l2_test
1719
check_network_status
1820
extract_tar_from_url https://github.com/qualcomm-linux/qcom-linux-testkit/releases/download/IRIS-Video-Files-v1.0/video_clips_iris.tar.gz
1921

20-
mkdir -p results/iris_v4l2_video_encode
21-
chmod -R 755 results/iris_v4l2_video_encode
22-
2322
# Run the first test
2423
iris_v4l2_test --config ./suites/Multimedia/Video/iris_v4l2_video_encode/h264Encoder.json --loglevel 15 >> ./suites/Multimedia/Video/iris_v4l2_video_encode/video_enc.txt
2524

2625
if grep -q "SUCCESS" ./suites/Multimedia/Video/iris_v4l2_video_encode/video_enc.txt; then
2726
log_pass "$TESTNAME : Test Passed"
28-
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
27+
echo "$TESTNAME PASS" > "$test_path/$TESTNAME.res"
2928
else
3029
log_fail "$TESTNAME : Test Failed"
31-
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
30+
echo "$TESTNAME FAIL" > "$test_path/$TESTNAME.res"
3231
fi
3332

3433
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

0 commit comments

Comments
 (0)