Skip to content
GitLab
Menu
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
7ffd7e4a
Commit
7ffd7e4a
authored
Feb 01, 2005
by
Josh Coalson
Browse files
fix: only do ogg-flac seeking tests if flac has ogg support built in
parent
ae25181b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_seeking.sh
View file @
7ffd7e4a
...
...
@@ -69,6 +69,15 @@ 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
has_ogg
=
yes
;
echo
"flac --ogg works"
else
has_ogg
=
no
;
echo
"flac --ogg doesn't work"
fi
echo
"Generating streams..."
if
[
!
-f
noise.raw
]
;
then
...
...
@@ -107,14 +116,18 @@ if run_test_seeking small.flac 1000 ; then : ; else
die
"ERROR: during test_seeking"
fi
echo
"testing tiny.ogg:"
if
run_test_seeking tiny.ogg 100
;
then
:
;
else
die
"ERROR: during test_seeking"
fi
if
[
$has_ogg
=
"yes"
]
;
then
echo
"testing tiny.ogg:"
if
run_test_seeking tiny.ogg 100
;
then
:
;
else
die
"ERROR: during test_seeking"
fi
echo
"testing small.ogg:"
if
run_test_seeking small.ogg 1000
;
then
:
;
else
die
"ERROR: during test_seeking"
fi
echo
"testing small.ogg:"
if
run_test_seeking small.ogg 1000
;
then
:
;
else
die
"ERROR: during test_seeking"
fi
rm
tiny.flac tiny.ogg small.flac small.ogg
rm
-f
tiny.flac tiny.ogg small.flac small.ogg
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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