Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flac
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
flac
Commits
452a4477
Commit
452a4477
authored
Jun 04, 2018
by
orbea
Committed by
Erik de Castro Lopo
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add output-prefix tests
Signed-off-by:
Erik de Castro Lopo
<
erikd@mega-nerd.com
>
parent
5dff53c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
test/test_flac.sh
test/test_flac.sh
+37
-0
No files found.
test/test_flac.sh
View file @
452a4477
...
...
@@ -726,6 +726,43 @@ if [ $is_win = no ] ; then
echo
OK
fi
############################################################################
# test --output-prefix
############################################################################
in_dir
=
./tmp_in
out_dir
=
./tmp_out
mkdir
$in_dir
$out_dir
||
die
"ERROR failed to create temp directories"
cp
50c.raw 50c.flac
$in_dir
#
# test --output-prefix when encoding
#
echo
$ECHO_N
"testing --output-prefix=
$out_dir
/ (encode)... "
$ECHO_C
run_flac
$raw_eopt
--output-prefix
=
$out_dir
/
$in_dir
/50c.raw
||
die
"ERROR generating FLAC file in
$out_dir
(encode)"
[
-f
$out_dir
/50c.flac
]
||
die
"ERROR FLAC file not in
$out_dir
(encode)"
run_flac
$raw_dopt
$out_dir
/50c.flac
||
die
"ERROR decoding FLAC file (encode)"
[
-f
$out_dir
/50c.raw
]
||
die
"ERROR RAW file not in
$out_dir
(encode)"
cmp 50c.raw
$out_dir
/50c.raw
||
die
"ERROR: file mismatch for --output-prefix=
$out_dir
(encode)"
rm
-f
$out_dir
/50c.flac
$out_dir
/50c.raw
echo
OK
#
# test --ouput-prefix when decoding
#
echo
$ECHO_N
"testing --output-prefix=
$out_dir
/ (decode)... "
$ECHO_C
run_flac
$raw_dopt
--output-prefix
=
$out_dir
/
$in_dir
/50c.flac
||
die
"ERROR deocding FLAC file in
$out_dir
(decode)"
[
-f
$out_dir
/50c.raw
]
||
die
"ERROR RAW file not in
$out_dir
(decode)"
run_flac
$raw_eopt
$out_dir
/50c.raw
||
die
"ERROR generating FLAC file (decode)"
[
-f
$out_dir
/50c.flac
]
||
die
"ERROR FLAC file not in
$out_dir
(decode)"
cmp 50c.flac
$out_dir
/50c.flac
||
die
"ERROR: file mismatch for --output-prefix=
$out_dir
(decode)"
rm
-f
$out_dir
/50c.flac
$out_dir
/50c.raw
echo
OK
rm
-rf
$in_dir
$out_dir
############################################################################
# test --cue
...
...
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