test/test_seeking.sh : Fix detection of Ogg support.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 15 Sep 2013 09:58:35 +0000 (19:58 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 15 Sep 2013 10:10:06 +0000 (20:10 +1000)
test/test_seeking.sh

index 7708c58..8057038 100755 (executable)
@@ -78,15 +78,13 @@ run_test_seeking ()
        fi
 }
 
-echo "Checking for --ogg support in flac..."
-if flac --ogg --silent --force-raw-format --endian=little --sign=signed --channels=1 --bps=8 --sample-rate=44100 -c $0 1>/dev/null 2>&1 ; then
+echo -n "Checking for --ogg support in flac ... "
+if flac --ogg --no-error-on-compression-fail --silent --force-raw-format --endian=little --sign=signed --channels=1 --bps=8 --sample-rate=44100 -c $0 1>/dev/null 2>&1 ; then
        has_ogg=yes;
-       echo "flac --ogg works"
 else
        has_ogg=no;
-       echo "flac --ogg doesn't work"
 fi
-
+echo ${has_ogg}
 
 echo "Generating streams..."
 if [ ! -f noise.raw ] ; then