Skip to content

Commit c008ebb

Browse files
committed
add tests to ffmpeg
1 parent 4372f89 commit c008ebb

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

projects/ffmpeg/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ RUN git clone --depth 1 https://gitlab.xiph.org/xiph/theora.git
4141
RUN git clone --depth 1 https://gitlab.xiph.org/xiph/vorbis.git
4242
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git
4343

44-
COPY build.sh replay_build.sh group_seed_corpus.py $SRC/
44+
COPY build.sh replay_build.sh run_tests.sh group_seed_corpus.py $SRC/

projects/ffmpeg/run_tests.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
# Usage:
4+
# bash run_test.sh list - Lists all available tests
5+
# bash run_test.sh - Runs all tests (same as 'make fate')
6+
# bash run_test.sh <filter> - Runs a specific test or group of tests
7+
# (e.g., './run_test.sh acodec-pcm')
8+
9+
set -e # Exit immediately if any command fails
10+
11+
FFMPEG_SRC_DIR="/src/ffmpeg"
12+
13+
# if [ TODO: How can i check if ffmpeg is compiled? ]; then
14+
# echo "==> FFmpeg executable not found. Running build.sh..."
15+
# ./build.sh # TODO: Check if this does what we want or just generate artefacts.
16+
# fi
17+
18+
echo "==> Changing to FFmpeg source directory: $FFMPEG_SRC_DIR"
19+
cd "$FFMPEG_SRC_DIR"
20+
21+
if [ "$1" == "list" ]; then
22+
echo "==> Listing all FATE tests..."
23+
make fate-list
24+
25+
elif [ -z "$1" ]; then
26+
echo "==> Running all FATE tests..."
27+
make fate
28+
29+
else
30+
echo "==> Running FATE test(s) matching '$1'..."
31+
make "fate-$1"
32+
fi
33+
34+
echo "==> Test run finished successfully."

0 commit comments

Comments
 (0)