3 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../obj/lib
6 if ../obj/bin/test_streams ; then : ; else
7 echo "ERROR during test_streams" 1>&2
20 echo "### ENCODE $name ########################################" >> ./encode.log
21 echo -n "$name: encode..."
22 if $FLAC -s -fb -fs 44100 -fp $bps -fc $channels -0 -l 8 -m -e $encode_options $name.raw $name.flac 2>>./encode.log ; then : ; else
23 echo "ERROR during encode of $name" 1>&2
26 echo "### DECODE $name ########################################" >> ./decode.log
28 if $FLAC -s -fb -d -fr $name.flac $name.cmp 2>>./decode.log ; then : ; else
29 echo "ERROR during decode of $name" 1>&2
33 if cmp $name.raw $name.cmp ; then : ; else
34 echo "ERROR during compare of $name" 1>&2
40 echo "Testing small files..."
46 echo "Testing 8-bit full-scale deflection streams..."
47 for b in 01 02 03 04 05 06 07 ; do
48 test_file fsd8-$b 1 8 "-q 15"
51 echo "Testing 16-bit full-scale deflection streams..."
52 for b in 01 02 03 04 05 06 07 ; do
53 test_file fsd16-$b 1 16 "-q 15"
56 echo "Testing sine wave streams..."
57 for b in 01 02 03 04 05 ; do
58 test_file sine-$b 1 16 ""
61 echo "Testing some frame header variations..."
62 test_file sine-02 1 16 "--lax -b 16"
63 test_file sine-02 1 16 "--lax -b 65535"
64 test_file sine-02 1 16 "-b 16"
65 test_file sine-02 1 16 "-b 65535"
66 test_file sine-02 1 16 "--lax -fs 9"
67 test_file sine-02 1 16 "--lax -fs 90"
68 test_file sine-02 1 16 "--lax -fs 90000"
69 test_file sine-02 1 16 "-fs 9"
70 test_file sine-02 1 16 "-fs 90"
71 test_file sine-02 1 16 "-fs 90000"