Skip to content

Commit f234392

Browse files
committed
CleanUp of Audio and Video Usecase
Removing var folder reference from Video README_Video File Removing common folder copy to device from Audio and Video Readme files Removing syslog copy to results folder, as no processing is done for testcase results on this log Signed-off-by: Abhishek Bajaj <abbajaj@qti.qualcomm.com>
1 parent 0c2e49a commit f234392

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

Runner/suites/Multimedia/Audio/AudioPlayback/Read_me.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Quick Example
4444
```
4545
git clone <this-repo>
4646
cd <this-repo>
47-
scp -r common Runner user@target_device_ip:<Path in device>
47+
scp -r Runner user@target_device_ip:<Path in device>
4848
ssh user@target_device_ip
4949
cd <Path in device>/Runner && ./run-test.sh AudioPlayback
5050
```

Runner/suites/Multimedia/Audio/AudioPlayback/run.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ log_info "Playback clip present: $PLAYBACK_CLIP"
6969

7070
# --- Capture logs BEFORE playback (for debugging) ---
7171
dmesg > "$LOGDIR/dmesg_before.log"
72-
cp /var/log/syslog "$LOGDIR/syslog_before.log" 2>/dev/null
7372

7473
# --- Start the Playback, capture output ---
7574
timeout 15s paplay "$PLAYBACK_CLIP" -d "$AUDIO_DEVICE" > "$LOGDIR/playback_stdout.log" 2>&1
7675
ret=$?
7776

7877
# --- Capture logs AFTER playback (for debugging) ---
7978
dmesg > "$LOGDIR/dmesg_after.log"
80-
cp /var/log/syslog "$LOGDIR/syslog_after.log" 2>/dev/null
8179

8280
if [ "$ret" -eq 0 ] || [ "$ret" -eq 124 ] ; then
8381
log_pass "Playback completed or timed out (ret=$ret) as expected."

Runner/suites/Multimedia/Audio/AudioRecord/Read_me.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Quick Example
4444
```
4545
git clone <this-repo>
4646
cd <this-repo>
47-
scp -r common Runner user@target_device_ip:<Path in device>
47+
scp -r Runner user@target_device_ip:<Path in device>
4848
ssh user@target_device_ip
4949
cd <Path in device>Runner && ./run-test.sh AudioRecord
5050
```

Runner/suites/Multimedia/Audio/AudioRecord/run.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ check_dependencies "$TESTBINARY" pgrep timeout
4848

4949
# --- Capture logs BEFORE recording (for debugging) ---
5050
dmesg > "$LOGDIR/dmesg_before.log"
51-
cp /var/log/syslog "$LOGDIR/syslog_before.log" 2>/dev/null
5251

5352
# Remove old record file if present
5453
rm -f "$RECORD_FILE"
@@ -59,7 +58,6 @@ ret=$?
5958

6059
# --- Capture logs AFTER recording (for debugging) ---
6160
dmesg > "$LOGDIR/dmesg_after.log"
62-
cp /var/log/syslog "$LOGDIR/syslog_after.log" 2>/dev/null
6361

6462
# --- Evaluate result: pass only if process completed successfully and file is non-empty ---
6563
if ([ "$ret" -eq 0 ] || [ "$ret" -eq 124 ]) && [ -s "$RECORD_FILE" ]; then

Runner/suites/Multimedia/Video/README_Video.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,26 @@ Runner/
4141

4242
## Usage
4343

44-
1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to the /var directory on the target device.
44+
1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to any directory on the target device.
4545

46-
2. Verify Transfer: Ensure that the repo have been successfully copied to the /var directory on the target device.
46+
2. Verify Transfer: Ensure that the repo have been successfully copied to any directory on the target device.
4747

48-
3. Run Scripts: Navigate to the /var directory on the target device and execute the scripts as needed.
48+
3. Run Scripts: Navigate to the directory where these files are copied on the target device and execute the scripts as needed.
4949

5050
Run a specific test using:
5151
---
5252
Quick Example
5353
```
5454
git clone <this-repo>
5555
cd <this-repo>
56-
scp -r common Runner user@target_device_ip:/var
56+
scp -r Runner user@target_device_ip:<Path in device>
5757
ssh user@target_device_ip
58-
cd /var/Runner && ./run-test.sh iris_v4l2_video_encode
58+
cd <Path in device>/Runner && ./run-test.sh iris_v4l2_video_encode
5959
```
6060
Sample output:
6161
```
62-
sh-5.2# cd /var/Runner && ./run-test.sh iris_v4l2_video_encode
63-
[Executing test case: /var/Runner/suites/Multimedia/Video/iris_v4l2_video_encode] 1980-01-08 22:22:15 -
62+
sh-5.2# cd <Path in device>/Runner && ./run-test.sh iris_v4l2_video_encode
63+
[Executing test case: <Path in device>/Runner/suites/Multimedia/Video/iris_v4l2_video_encode] 1980-01-08 22:22:15 -
6464
[INFO] 1980-01-08 22:22:15 - -----------------------------------------------------------------------------------------
6565
[INFO] 1980-01-08 22:22:15 - -------------------Starting iris_v4l2_video_encode Testcase----------------------------
6666
[INFO] 1980-01-08 22:22:15 - Checking if dependency binary is available

0 commit comments

Comments
 (0)