[SCM] libav/experimental: Collect list of seek tests in configure

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:11:52 UTC 2013


The following commit has been merged in the experimental branch:
commit b9d5f1b7eda75be3476c5e3cdb80ac1599e79561
Author: Måns Rullgård <mans at mansr.com>
Date:   Tue Jul 20 10:19:26 2010 +0000

    Collect list of seek tests in configure
    
    Originally committed as revision 24346 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index f92b582..ef4f68b 100755
--- a/configure
+++ b/configure
@@ -1612,13 +1612,14 @@ PROTOCOL_LIST=$(find_things protocol PROTOCOL libavformat/allformats.c)
 FILTER_LIST=$(find_things   filter   FILTER   libavfilter/allfilters.c)
 
 find_tests(){
-    map 'echo ${v}_test' $(ls "$source_path"/tests/ref/$1 | grep -v '[^-a-z0-9_]')
+    map "echo ${2}\${v}_test" $(ls "$source_path"/tests/ref/$1 | grep -v '[^-a-z0-9_]')
 }
 
 ACODEC_TESTS=$(find_tests acodec)
 VCODEC_TESTS=$(find_tests vsynth1)
 LAVF_TESTS=$(find_tests lavf)
 LAVFI_TESTS=$(find_tests lavfi)
+SEEK_TESTS=$(find_tests seek seek_)
 
 pcm_test_deps=$(map 'echo ${v%_*}_decoder $v' $(filter pcm_* $ENCODER_LIST))
 
@@ -1628,7 +1629,7 @@ for n in $COMPONENT_LIST; do
     eval ${n}_if_any="\$$v"
 done
 
-enable $ARCH_EXT_LIST $ACODEC_TESTS $VCODEC_TESTS $LAVF_TESTS $LAVFI_TESTS
+enable $ARCH_EXT_LIST $ACODEC_TESTS $VCODEC_TESTS $LAVF_TESTS $LAVFI_TESTS $SEEK_TESTS
 
 die_unknown(){
     echo "Unknown option \"$1\"."
@@ -2857,6 +2858,7 @@ check_deps $CONFIG_LIST       \
            $VCODEC_TESTS      \
            $LAVF_TESTS        \
            $LAVFI_TESTS       \
+           $SEEK_TESTS        \
 
 enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }
 
@@ -3132,6 +3134,7 @@ ACODEC_TESTS=$(print_enabled -n _test $ACODEC_TESTS)
 VCODEC_TESTS=$(print_enabled -n _test $VCODEC_TESTS)
 LAVF_TESTS=$(print_enabled   -n _test $LAVF_TESTS)
 LAVFI_TESTS=$(print_enabled  -n _test $LAVFI_TESTS)
+SEEK_TESTS=$(print_enabled   -n _test $SEEK_TESTS)
 EOF
 
 echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list