Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Strogin
flac
Commits
450572f6
Commit
450572f6
authored
Jan 26, 2005
by
Josh Coalson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test_seeking runs for native FLAC files with total_samples=0 in the STREAMINFO
parent
7b3808bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
test/test_seeking.sh
test/test_seeking.sh
+26
-0
No files found.
test/test_seeking.sh
View file @
450572f6
...
...
@@ -34,11 +34,13 @@ LD_LIBRARY_PATH=../src/libOggFLAC/.libs:$LD_LIBRARY_PATH
LD_LIBRARY_PATH
=
../obj/
$BUILD
/lib:
$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
PATH
=
../src/flac:
$PATH
PATH
=
../src/metaflac:
$PATH
PATH
=
../src/test_seeking:
$PATH
PATH
=
../src/test_streams:
$PATH
PATH
=
../obj/
$BUILD
/bin:
$PATH
flac
--help
1>/dev/null 2>/dev/null
||
die
"ERROR can't find flac executable"
metaflac
--help
1>/dev/null 2>/dev/null
||
die
"ERROR can't find metaflac executable"
run_flac
()
{
...
...
@@ -49,6 +51,15 @@ run_flac ()
fi
}
run_metaflac
()
{
if
[
x
"
$FLAC__VALGRIND
"
=
xyes
]
;
then
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
100
--logfile-fd
=
4 metaflac
$*
4>>test_seeking.valgrind.log
else
metaflac
$*
fi
}
run_test_seeking
()
{
if
[
x
"
$FLAC__VALGRIND
"
=
xyes
]
;
then
...
...
@@ -81,6 +92,21 @@ if run_test_seeking small.flac 1000 ; then : ; else
die
"ERROR: during test_seeking"
fi
echo
"removing sample count from tiny.flac and small.flac:"
if
run_metaflac
--no-filename
--set-total-samples
=
0 tiny.flac small.flac
;
then
:
;
else
die
"ERROR: during metaflac"
fi
echo
"testing tiny.flac with total_samples=0:"
if
run_test_seeking tiny.flac 100
;
then
:
;
else
die
"ERROR: during test_seeking"
fi
echo
"testing small.flac with total_samples=0:"
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"
...
...
Write
Preview
Markdown
is supported
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