• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:disable +full:- +full:file

1 #!/bin/sh -e
3 # FLAC - Free Lossless Audio Codec
4 # Copyright (C) 2001-2009 Josh Coalson
5 # Copyright (C) 2011-2023 Xiph.Org Foundation
7 # This file is part the FLAC project. FLAC is comprised of several
9 # are distributed under Xiph.Org's BSD-like license (see the file
12 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
16 # Since this particular file is relevant to all components of FLAC,
18 # restrictive of those mentioned above. See the file COPYING.Xiph in this
27 if [ -z "$FLAC__TEST_LEVEL" ] ; then
31 flac${EXE} --help 1>/dev/null 2>/dev/null || die "ERROR can't find flac executable"
36 …echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac $*" >>test_streams.valg…
37 …valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 flac --no-error-on-comp…
39 flac${EXE} --no-error-on-compression-fail $*
44 if [ ! -f wacky1.wav ] ; then
49 # single-file test routines
59 echo $ECHO_N "$name (--channels=$channels --bps=$bps $encode_options): encode..." $ECHO_C
60 …c --verify --silent --force --force-raw-format --endian=little --sign=signed --sample-rate=44100 -…
66 …cmd="run_flac --silent --force --endian=little --sign=signed --decode --force-raw-format --output-
71 ls -1l $name.raw >> ./streams.log
72 ls -1l $name.flac >> ./streams.log
73 ls -1l $name.cmp >> ./streams.log
88 if [ "$(env | grep -ic '^comspec=')" != 0 ] ; then
96--verify --silent --force --force-raw-format --endian=little --sign=signed --sample-rate=44100 --b…
101--verify --silent --force --force-raw-format --endian=little --sign=signed --sample-rate=44100 --b…
108 …cmd="run_flac --silent --force --endian=little --sign=signed --decode --force-raw-format --stdout …
113 …cmd="run_flac --silent --force --endian=little --sign=signed --decode --force-raw-format --stdout
118 ls -1l $name.raw >> ./streams.log
119 ls -1l $name.flac >> ./streams.log
120 ls -1l $name.cmp >> ./streams.log
135 echo $ECHO_N "$name (--channels=$channels --bps=$bps $encode_options): encode..." $ECHO_C
136--verify --silent --no-padding --force --force-raw-format --endian=little --sign=signed --sample-r…
141 filesize=$(wc -c < $name.flac)
155 …cmd="run_flac --silent --decode-through-errors --force --endian=little --sign=signed --decode --fo…
160 ls -1l $name.raw >> ./streams.log
161 ls -1l $name.flac >> ./streams.log
162 ls -1l $name.cmp >> ./streams.log
165 if [ "$(wc -c < $name.raw)" -ne "$(wc -c < $name.cmp)" ]; then
166 die "ERROR, length of decoded file not equal to length of original"
172 if [ "$FLAC__TEST_LEVEL" -gt 1 ] ; then
179 test_file_piped noise 1 8 "-0"
182 test_file test01 1 16 "-0 -l $max_lpc_order --lax -m -e -p"
183 test_file test02 2 16 "-0 -l $max_lpc_order --lax -m -e -p"
184 test_file test03 1 16 "-0 -l $max_lpc_order --lax -m -e -p"
185 test_file test04 2 16 "-0 -l $max_lpc_order --lax -m -e -p"
188 echo "Testing $bps-bit full-scale deflection streams..."
190 test_file fsd$bps-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e -p"
194 echo "Testing 16-bit wasted-bits-per-sample streams..."
196 test_file wbps16-$b 1 16 "-0 -l $max_lpc_order --lax -m -e -p"
200 echo "Testing $bps-bit sine wave streams..."
202 test_file sine${bps}-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e --sample-rate=48000"
205 test_file sine${bps}-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e --sample-rate=96000"
208 test_file sine${bps}-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e"
211 test_file sine${bps}-$b 2 $bps "-0 -l $max_lpc_order --lax -m -e --sample-rate=48000"
214 test_file sine${bps}-$b 2 $bps "-0 -l $max_lpc_order --lax -m -e --sample-rate=96000"
217 test_file sine${bps}-$b 2 $bps "-0 -l $max_lpc_order --lax -m -e"
222 …r disable in '' '--disable-verbatim-subframes --disable-constant-subframes' '--disable-verbatim-su…
225 if [ $lpc_order = 0 ] || [ $lpc_order -le $blocksize ] ; then
226 test_file noise8m32 1 8 "-8 -p -e -l $lpc_order --lax --blocksize=$blocksize $disable"
235 if [ $lpc_order = 0 ] || [ $lpc_order -le $blocksize ] ; then
236 …test_file noise8m32 1 8 "-8 -p -e -A \"subdivide_tukey(32)\" -l $lpc_order --lax --blocksize=$bloc…
242 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax -b $max_lpc_order"
243 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax -b 65535"
244 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax --sample-rate=9"
245 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax --sample-rate=90"
246 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax --sample-rate=90000"
247 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax --sample-rate=9"
248 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax --sample-rate=90"
249 test_file sine16-01 1 16 "-0 -l $max_lpc_order -m -e -p --lax --sample-rate=90000"
253 …r disable in '' '--disable-verbatim-subframes --disable-constant-subframes' '--disable-verbatim-su…
254 if [ -z "$disable" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
256 for extras in '' '-p' '-e' ; do
257 if [ -z "$extras" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
258 test_file sine16-$f 1 16 "-$opt $extras $disable"
262 if [ "$FLAC__TEST_LEVEL" -gt 1 ] ; then
263 test_file sine16-$f 1 16 "-b 16384 -m -r 8 -l $max_lpc_order --lax -e -p $disable"
270 …r disable in '' '--disable-verbatim-subframes --disable-constant-subframes' '--disable-verbatim-su…
271 if [ -z "$disable" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
273 for extras in '' '-p' '-e' ; do
274 if [ -z "$extras" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
275 test_file sine16-$f 2 16 "-$opt $extras $disable"
279 if [ "$FLAC__TEST_LEVEL" -gt 1 ] ; then
280 test_file sine16-$f 2 16 "-b 16384 -m -r 8 -l $max_lpc_order --lax -e -p $disable"
289 …r disable in '' '--disable-verbatim-subframes --disable-constant-subframes' '--disable-verbatim-su…
290 if [ -z "$disable" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
292 for extras in '' '-p' '-e' ; do
293 …if [ -z "$extras" -o "$FLAC__TEST_LEVEL" -gt 0 ] && { [ "$bps" -eq 16 -a "$f" -lt 15 ] || [ "$FLAC…
294 if [ "$f" -lt 10 ] ; then
295 test_corrupted_file sine$bps-$f 1 $bps "-$opt $extras $disable"
297 test_corrupted_file sine$bps-$f 2 $bps "-$opt $extras $disable"
308 …r disable in '' '--disable-verbatim-subframes --disable-constant-subframes' '--disable-verbatim-su…
309 if [ -z "$disable" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
311 if [ $channels -le 2 ] || [ "$FLAC__TEST_LEVEL" -gt 1 ] ; then
314 for extras in '' '-p' '-e' ; do
315 …if { [ -z "$extras" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ]; } && { [ "$extras" != '-p' ] || [ "$opt" -
316 for blocksize in '' '--lax -b 32' '--lax -b 32768' '--lax -b 65535' ; do
317 if [ -z "$blocksize" ] || [ "$FLAC__TEST_LEVEL" -gt 0 ] ; then
318 test_file noise $channels $bps "-$opt $extras $blocksize $disable"
324 if [ "$FLAC__TEST_LEVEL" -gt 1 ] ; then
325 test_file noise $channels $bps "-b 16384 -m -r 8 -l $max_lpc_order --lax -e -p $disable"