Skip to content

Commit 66487b2

Browse files
committed
Added 10 tests related changes in the readme and the yaml files
Signed-off-by: Nitin Nakka <nitinn@qti.qualcomm.com>
1 parent 903ad59 commit 66487b2

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

Runner/suites/Multimedia/GSTreamer/Audio/Audio_Record_Playback/Audio_Record_Playback.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ metadata:
33
format: "Lava-Test Test Definition 1.0"
44
description: >
55
Audio record/playback validation using GStreamer (gst-launch-1.0).
6-
Tests 8 scenarios: 4 encode (2 audiotestsrc + 2 pulsesrc) + 4 decode (playback).
7-
Supports WAV and FLAC formats with both synthetic audio (audiotestsrc) and hardware capture (pulsesrc).
6+
Tests 10 scenarios: 4 encode (2 audiotestsrc + 2 pulsesrc) + 6 decode (4 playback + 2 OGG/MP3).
7+
Supports WAV, FLAC, OGG, and MP3 formats with both synthetic audio (audiotestsrc) and hardware capture (pulsesrc).
88
Duration controlled via AUDIO_DURATION (default 10s): audiotestsrc uses num-buffers, pulsesrc uses timeout.
99
os:
1010
- linux

Runner/suites/Multimedia/GSTreamer/Audio/Audio_Record_Playback/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ At a high level, the test:
4949
- Duration control:
5050
- audiotestsrc: Buffer count calculated dynamically: `(44100 * duration) / 1024`
5151
- pulsesrc: Uses timeout command to stop recording after specified duration
52-
5. **Playback phase (DECODE - 4 tests)**:
52+
5. **Playback phase (DECODE - 6 tests)**:
5353
- Reads the previously recorded files (both audiotestsrc and pulsesrc recordings)
5454
- Decodes and plays back using pulsesink
55+
- Plays back external test files (OGG/MP3 formats)
5556
6. Collects test results and emits PASS/FAIL/SKIP
5657

5758
---
@@ -219,7 +220,7 @@ Help:
219220

220221
## Examples
221222

222-
### 1) Run all tests (default - 8 tests: 4 encode + 4 decode for WAV and FLAC with 10 second duration)
223+
### 1) Run all tests (default - 10 tests: 4 encode + 6 decode for WAV, FLAC, OGG, and MP3 with 10 second duration)
223224

224225
```bash
225226
./run.sh
@@ -231,19 +232,19 @@ Help:
231232
./run.sh --mode record
232233
```
233234

234-
### 3) Run only playback tests (4 decode tests - requires recorded files from previous run)
235+
### 3) Run only playback tests (6 decode tests - requires recorded files from previous run, plus OGG/MP3 test files)
235236

236237
```bash
237238
./run.sh --mode playback
238239
```
239240

240-
### 4) Test only WAV format (4 tests: 2 encode + 2 decode)
241+
### 4) Test only WAV format (6 tests total: 2 encode + 2 decode + 2 OGG/MP3 playback)
241242

242243
```bash
243244
./run.sh --formats wav
244245
```
245246

246-
### 5) Test only FLAC format (4 tests: 2 encode + 2 decode)
247+
### 5) Test only FLAC format (6 tests total: 2 encode + 2 decode + 2 OGG/MP3 playback)
247248

248249
```bash
249250
./run.sh --formats flac
@@ -255,7 +256,7 @@ Help:
255256
./run.sh --duration 30
256257
```
257258

258-
### 7) Quick test - WAV only with 3 second duration (4 tests)
259+
### 7) Quick test - WAV only with 3 second duration (6 tests total)
259260

260261
```bash
261262
./run.sh --formats wav --duration 3
@@ -546,11 +547,12 @@ The test supports these environment variables (can be set in LAVA job definition
546547

547548
### Test Counting
548549

549-
- **Total tests**: 8 (when running with default wav,flac formats in all mode)
550+
- **Total tests**: 10 (when running with default wav,flac formats in all mode)
550551
- 4 encode tests (2 audiotestsrc + 2 pulsesrc)
551-
- 4 decode tests (2 audiotestsrc playback + 2 pulsesrc playback)
552+
- 6 decode tests (2 audiotestsrc playback + 2 pulsesrc playback + 2 OGG/MP3 playback)
552553
- **Pass/Fail/Skip are mutually exclusive**: Each test increments exactly one counter
553554
- **Plugin unavailability**: pulsesrc tests will skip if pulsesrc plugin is not available, but audiotestsrc tests will still run
555+
- **Test file availability**: OGG/MP3 playback tests will skip if test files are not available
554556

555557
---
556558

0 commit comments

Comments
 (0)