Skip to content

Commit c305809

Browse files
authored
Merge pull request qualcomm-linux#223 from Manigurr/main
Add video-ci-sanity plan for base video sanity checks
2 parents 3f7165c + a614484 commit c305809

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

Runner/plans/video-ci-sanity.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
metadata:
2+
format: Lava-Test Test Definition 1.0
3+
name: Video_V4L2_LocalClips
4+
description: "Run Video V4L2 runner with local clips tar and custom .ko dir; auto-args for kodiak vs lemans/monaco; run base only"
5+
maintainer:
6+
7+
os:
8+
- openembedded
9+
scope:
10+
- functional
11+
12+
run:
13+
steps:
14+
- cd Runner
15+
- export REPO_ROOT="$PWD"
16+
- export TARGET="${TARGET:-}" # kodiak | lemans | monaco (case-insensitive)
17+
18+
- |
19+
RPATH="$REPO_ROOT/suites/Multimedia/Video/Video_V4L2_Runner/run.sh"
20+
RESFILE="$REPO_ROOT/suites/Multimedia/Video/Video_V4L2_Runner/Video_V4L2_Runner.res"
21+
22+
# Custom media bundle (local) path
23+
CLIPS_TAR="/data/vendor/iris_test_app/video_clips_iris.tar.gz"
24+
25+
# Optional: downstream module / FW (not used now, but kept for future)
26+
KO_DIR="/data/vendor/iris_test_app"
27+
DS_FW="/data/vendor/iris_test_app/vpu20_1v.mbn"
28+
29+
# Prefer explicit TARGET; otherwise derive from LAVA device-type
30+
if [ -n "${TARGET:-}" ]; then
31+
TL="$(printf '%s' "$TARGET" | tr '[:upper:]' '[:lower:]')"
32+
else
33+
DEVTYPE_RAW="${DEVICE_TYPE:-${LAVA_DEVICE_TYPE:-${LAVA_DEVICE_TYPE_NAME:-${DEVICE_TYPE_NAME:-}}}}"
34+
DEVTYPE="$(printf '%s' "$DEVTYPE_RAW" | tr '[:upper:]' '[:lower:]')"
35+
case "$DEVTYPE" in
36+
# monaco
37+
qcs8300-ride|qcs8300-ride-sx|iq-8275-evk) TL="monaco" ;;
38+
# lemans
39+
qcs9100-ride-r3|sa8775p-ride|iq-9075-evk|qcs9075-rb8|qcs9100-ride-sx) TL="lemans" ;;
40+
# kodiak
41+
qcs6490-rb3gen2|rb3gen2|qcs6490-rb3gen2-core-kit) TL="kodiak" ;;
42+
# fallback to autodetect in run.sh
43+
*) TL="" ;;
44+
esac
45+
fi
46+
47+
case "$TL" in
48+
kodiak|lemans|monaco) PLAT="--platform $TL" ;;
49+
*) PLAT="" ;; # autodetect
50+
esac
51+
52+
echo "DEBUG: TARGET='${TARGET:-}' DEVTYPE='${DEVTYPE:-}' -> TL='$TL' PLAT='$PLAT'"
53+
54+
# Common args (local clips; no Wi-Fi/TAR_URL needed)
55+
ARGS_COMMON="--clips-tar $CLIPS_TAR --app /data/vendor/iris_test_app/iris_v4l2_test $PLAT --retry-on-fail 2 --loglevel 15"
56+
57+
# --- BASE (upstream) only ---
58+
ARGS_BASE="--stack base $ARGS_COMMON"
59+
60+
echo "BASE ARGS: $ARGS_BASE"
61+
62+
# Run BASE (upstream)
63+
# shellcheck disable=SC2086
64+
sh -lc "$RPATH $ARGS_BASE" || true
65+
"$REPO_ROOT/utils/send-to-lava.sh" "$RESFILE" || true
66+
67+
# Optional roll-up (ignored if absent)
68+
"$REPO_ROOT/utils/result_parse.sh" || true

0 commit comments

Comments
 (0)