Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
929ccb88
Commit
929ccb88
authored
Aug 18, 2002
by
Josh Coalson
Browse files
update to match new getopt-based options
parent
b7023aa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_bins.sh
View file @
929ccb88
...
...
@@ -32,7 +32,7 @@ test_file ()
encode_options
=
"
$4
"
echo
-n
"
$name
: encode..."
cmd
=
"flac -
V -s -fr -fb -fs
44100 -
fp
$bps
-
fc
$channels
$encode_options
$name
.bin"
cmd
=
"flac -
-verify --silent --force-raw-input --endian=big --sample-rate=
44100 -
-bps=
$bps
-
-channels=
$channels
$encode_options
$name
.bin"
echo
"### ENCODE
$name
#######################################################"
>>
./streams.log
echo
"### cmd=
$cmd
"
>>
./streams.log
if
$cmd
2>>./streams.log
;
then
:
;
else
...
...
@@ -40,7 +40,7 @@ test_file ()
exit
1
fi
echo
-n
"decode..."
cmd
=
"flac -
s -fb -d -fr
$name
.flac"
;
cmd
=
"flac -
-silent --endian=big --decode --force-raw-input
$name
.flac"
;
echo
"### DECODE
$name
#######################################################"
>>
./streams.log
echo
"### cmd=
$cmd
"
>>
./streams.log
if
$cmd
2>>./streams.log
;
then
:
;
else
...
...
@@ -61,8 +61,8 @@ test_file ()
echo
"Testing bins..."
for
f
in
b00 b01 b02 b03
;
do
for
opt
in
0 1 2 4 5 6 8
;
do
for
extras
in
''
'-
p'
'-e
'
;
do
for
blocksize
in
''
'-
b 32'
'-b 32768'
'-b
65535'
;
do
for
extras
in
''
'-
-qlp-coeff-precision-search'
'--exhaustive-model-search
'
;
do
for
blocksize
in
''
'-
-blocksize=32'
'--blocksize=32768'
'--blocksize=
65535'
;
do
for
channels
in
1 2 4 8
;
do
for
bps
in
8 16 24
;
do
test_file
$BINS_PATH
/
$f
$channels
$bps
"-
$opt
$extras
$blocksize
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment