Skip to content

Commit 551c2e6

Browse files
committed
Modularize the script to single script which works for all the Decoders and encoders
Add Support Video Decode Testcases for H265 Add Support Video Decode Testcases for VP9 Add Support Video Encode Testcases for H265 Signed-off-by: Abhishek Bajaj <[email protected]>
1 parent ffce08d commit 551c2e6

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

Runner/suites/Multimedia/Video/README_Video.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Runner/
6060

6161
Run a specific test using:
6262
---
63-
Quick Example:
63+
Quick Example
6464
```
6565
git clone <this-repo>
6666
cd <this-repo>
@@ -78,13 +78,13 @@ sh-5.2# ./run-test.sh Video_V4L2_Runner
7878
[INFO] 2025-09-02 05:08:36 - TIMEOUT=60s STRICT=0 DMESG_SCAN=1 SUCCESS_RE=SUCCESS
7979
[INFO] 2025-09-02 05:08:36 - LOGLEVEL=15
8080
[INFO] 2025-09-02 05:08:36 - REPEAT=1 REPEAT_DELAY=0s REPEAT_POLICY=all
81-
[INFO] 2025-09-02 05:08:36 - No config argument passed, searching for JSON files in /var/Runner/suites/Multimedia/Video/
81+
[INFO] 2025-09-02 05:08:36 - No config argument passed, searching for JSON files in ./Runner/suites/Multimedia/Video/
8282
[INFO] 2025-09-02 05:08:36 - Configs to run:
83-
- /var/Runner/suites/Multimedia/Video/Video_V4L2_H264_Decode/h264Decoder.json
84-
- /var/Runner/suites/Multimedia/Video/Video_V4L2_H264_Encode/h264Encoder.json
85-
- /var/Runner/suites/Multimedia/Video/Video_V4L2_H265_Decode/h265Decoder.json
86-
- /var/Runner/suites/Multimedia/Video/Video_V4L2_H265_Encode/h265Encoder.json
87-
- /var/Runner/suites/Multimedia/Video/Video_V4L2_VP9_Decode/vp9Decoder.json
83+
- ./Runner/suites/Multimedia/Video/Video_V4L2_Runner/h264Decoder.json
84+
- ./Runner/suites/Multimedia/Video/Video_V4L2_Runner/h264Encoder.json
85+
- ./Runner/suites/Multimedia/Video/Video_V4L2_Runner/h265Decoder.json
86+
- ./Runner/suites/Multimedia/Video/Video_V4L2_Runner/h265Encoder.json
87+
- ./Runner/suites/Multimedia/Video/Video_V4L2_Runner/vp9Decoder.json
8888
[INFO] 2025-09-02 05:08:37 - No relevant, non-benign errors for modules [oom|memory|BUG|hung task|soft lockup|hard lockup|rcu|page allocation failure|I/O error] in recent dmesg.
8989
[PASS] 2025-09-02 05:08:37 - [Decode1] PASS (1/1 ok)
9090
[INFO] 2025-09-02 05:08:39 - No relevant, non-benign errors for modules [oom|memory|BUG|hung task|soft lockup|hard lockup|rcu|page allocation failure|I/O error] in recent dmesg.
@@ -117,7 +117,7 @@ None
117117

118118
- Below options are currently supported if you run video test script `Runner/suites/Multimedia/Video/Video_V4L2_Runner/run.sh`
119119

120-
| Option | Description |
120+
| Option | Description |
121121
|---|---|
122122
| `--config path.json` | Run a specific config file |
123123
| `--dir DIR` | Directory to search for configs |
@@ -127,10 +127,10 @@ None
127127
| `--no-dmesg` | Disable dmesg scanning |
128128
| `--max N` | Run at most N tests |
129129
| `--stop-on-fail` | Stop on first failure |
130-
| `--loglevel N` | Set log level for `iris_v4l2_test` |
130+
| `--loglevel N` | Set log level for `iris_v4l2_test` |
131131
| `--repeat N` | Repeat each test N times |
132132
| `--repeat-delay S` | Delay between repeats |
133-
| `--repeat-policy` | all or any |
133+
| `--repeat-policy | all or any |
134134
| `--junit FILE` | Output JUnit XML to file |
135135
| `--dry-run` | Show commands without executing |
136136

@@ -141,4 +141,9 @@ None
141141
- It validates the presence of required libraries before executing tests.
142142
- If any critical tool is missing, the script exits with an error message.
143143
- Missing input clips are fetched from:
144-
https://github.com/qualcomm-linux/qcom-linux-testkit/releases/download/IRIS-Video-Files-v1.0/video_clips_iris.tar.gz
144+
https://github.com/qualcomm-linux/qcom-linux-testkit/releases/download/IRIS-Video-Files-v1.0/video_clips_iris.tar.gz
145+
146+
## License
147+
148+
SPDX-License-Identifier: BSD-3-Clause-Clear
149+
(C) Qualcomm Technologies, Inc. and/or its subsidiaries.

Runner/suites/Multimedia/Video/Video_V4L2_Runner/run.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ done
9898
test_path="$(find_test_case_by_name "$TESTNAME" 2>/dev/null || echo "$SCRIPT_DIR")"
9999
cd "$test_path" || { log_error "cd failed: $test_path"; echo "$TESTNAME FAIL" >"$RES_FILE"; exit 1; }
100100

101-
# Pull clips (if requested) *after* moving into the testcase directory so they extract here
102-
if [ "$EXTRACT_INPUT_CLIPS" = "true" ]; then
103-
extract_tar_from_url "$TAR_URL" || true
104-
fi
105101

106102
LOG_DIR="./logs_${TESTNAME}"
107103
mkdir -p "$LOG_DIR"
@@ -231,7 +227,7 @@ ensure_clips_present_or_fetch() {
231227
log_warn "Missing input clip: $abs"
232228
if [ "$EXTRACT_INPUT_CLIPS" = "true" ] && [ -n "$TAR_URL" ]; then
233229
log_info "Attempting fetch via TAR_URL=$TAR_URL"
234-
extract_tar_from_url "$TAR_URL" || log_warn "Fetch/extract failed for TAR_URL"
230+
extract_tar_from_url "$TAR_URL" || true
235231
else
236232
log_warn "Skipping extraction of input clips as EXTRACT_INPUT_CLIPS is not true."
237233
fi

0 commit comments

Comments
 (0)