Skip to content

Commit 934c6ee

Browse files
authored
Merge pull request #321 from smuppand/libcam
(libcamera): simplify Libcamera_cam.yaml and default to non-strict cam run
2 parents ee7c271 + dcd3b45 commit 934c6ee

1 file changed

Lines changed: 11 additions & 18 deletions

File tree

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
metadata:
2-
name: libcamera-cam
2+
name: Libcamera_cam
33
format: "Lava-Test Test Definition 1.0"
4-
description: "This repository contains a **POSIX shell** test harness for exercising `libcamera` via its `cam` utility, with robust postcapture validation and device‑tree (DT) checks. It is designed to run on embedded Linux targets (BusyBox-friendly), including Qualcomm RB platforms."
4+
description: "Run libcamera 'cam' capture with post-capture validation and DT checks (non-strict)."
55
os:
66
- linux
77
scope:
88
- functional
99

1010
params:
11-
12-
INDEX: "" # Camera index (default: auto from `cam -l`; `all` = run on every camera)
13-
COUNT: 10 # Frames to capture (default: 10)
14-
OUT_DIR: "./cam_out" # Output directory (default: ./cam_out)
15-
SAVE_AS_PPM: "yes" # Save frames as ppm or bin, default: ppm
16-
ARGS: "" # Extra args passed to `cam`
17-
STRICT: "yes" # Enforce strict validation (default)
18-
DUP_MAX_RATIO: 0.5 # Fail if max duplicate bucket/total > R (default: 0.5)
19-
BIN_TOL_PCT: 5 # BIN size tolerance vs bytesused in % (default: 5)
11+
INDEX: "auto"
12+
COUNT: "10"
13+
OUT_DIR: "./cam_out"
14+
DUP_MAX_RATIO: "0.5"
15+
BIN_TOL_PCT: "5"
16+
ARGS: "" # optional; keep empty by default
2017

2118
run:
2219
steps:
23-
- REPO_PATH=$PWD
20+
- REPO_PATH="$PWD"
2421
- cd Runner/suites/Multimedia/Camera/Libcamera_cam
25-
- PPM_OPTION="--ppm"
26-
- if [ "${SAVE_AS_PPM}" != "yes" ]; then PPM_OPTION="--bin"; fi
27-
- STRICT_OPTION="--strict"
28-
- if [ "${STRICT}" != "yes" ]; then STRICT_OPTION="--no-strict"; fi
29-
- ./run.sh --index "${INDEX}" --count "${COUNT}" --out "${OUT_DIR}" --dup-max-ratio "${DUP_MAX_RATIO}" --bin-tol-pct "${BIN_TOL_PCT}" "${PPM_OPTION}" "${STRICT_OPTION}" || true
30-
- $REPO_PATH/Runner/utils/send-to-lava.sh Libcamera_cam.res || true
22+
- ./run.sh --index "${INDEX}" --count "${COUNT}" --out "${OUT_DIR}" --dup-max-ratio "${DUP_MAX_RATIO}" --bin-tol-pct "${BIN_TOL_PCT}" --args "${ARGS}" --bin --no-strict || true
23+
- ${REPO_PATH}/Runner/utils/send-to-lava.sh Libcamera_cam.res

0 commit comments

Comments
 (0)