Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions Runner/plans/video-ci-sanity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
metadata:
format: Lava-Test Test Definition 1.0
name: Video_V4L2_LocalClips
description: "Run Video V4L2 runner with local clips tar and custom .ko dir; auto-args for kodiak vs lemans/monaco; run base only"
maintainer:
- smuppand@qti.qualcomm.com
os:
- openembedded
scope:
- functional

run:
steps:
- cd Runner
- export REPO_ROOT="$PWD"
- export TARGET="${TARGET:-}" # kodiak | lemans | monaco (case-insensitive)

- |
RPATH="$REPO_ROOT/suites/Multimedia/Video/Video_V4L2_Runner/run.sh"
RESFILE="$REPO_ROOT/suites/Multimedia/Video/Video_V4L2_Runner/Video_V4L2_Runner.res"

# Custom media bundle (local) path
CLIPS_TAR="/data/vendor/iris_test_app/video_clips_iris.tar.gz"

# Optional: downstream module / FW (not used now, but kept for future)
KO_DIR="/data/vendor/iris_test_app"
DS_FW="/data/vendor/iris_test_app/vpu20_1v.mbn"

# Prefer explicit TARGET; otherwise derive from LAVA device-type
if [ -n "${TARGET:-}" ]; then
TL="$(printf '%s' "$TARGET" | tr '[:upper:]' '[:lower:]')"
else
DEVTYPE_RAW="${DEVICE_TYPE:-${LAVA_DEVICE_TYPE:-${LAVA_DEVICE_TYPE_NAME:-${DEVICE_TYPE_NAME:-}}}}"
DEVTYPE="$(printf '%s' "$DEVTYPE_RAW" | tr '[:upper:]' '[:lower:]')"
case "$DEVTYPE" in
# monaco
qcs8300-ride|qcs8300-ride-sx|iq-8275-evk) TL="monaco" ;;
# lemans
qcs9100-ride-r3|sa8775p-ride|iq-9075-evk|qcs9075-rb8|qcs9100-ride-sx) TL="lemans" ;;
# kodiak
qcs6490-rb3gen2|rb3gen2|qcs6490-rb3gen2-core-kit) TL="kodiak" ;;
# fallback to autodetect in run.sh
*) TL="" ;;
esac
fi

case "$TL" in
kodiak|lemans|monaco) PLAT="--platform $TL" ;;
*) PLAT="" ;; # autodetect
esac

echo "DEBUG: TARGET='${TARGET:-}' DEVTYPE='${DEVTYPE:-}' -> TL='$TL' PLAT='$PLAT'"

# Common args (local clips; no Wi-Fi/TAR_URL needed)
ARGS_COMMON="--clips-tar $CLIPS_TAR --app /data/vendor/iris_test_app/iris_v4l2_test $PLAT --retry-on-fail 2 --loglevel 15"

# --- BASE (upstream) only ---
ARGS_BASE="--stack base $ARGS_COMMON"

echo "BASE ARGS: $ARGS_BASE"

# Run BASE (upstream)
# shellcheck disable=SC2086
sh -lc "$RPATH $ARGS_BASE" || true
"$REPO_ROOT/utils/send-to-lava.sh" "$RESFILE" || true

# Optional roll-up (ignored if absent)
"$REPO_ROOT/utils/result_parse.sh" || true
Loading