Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
ddc07498
Commit
ddc07498
authored
Mar 16, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support testing multiple clips to optimize test performance.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
2df0403b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
ber-test.sh
src/ber-test.sh
+12
-6
No files found.
src/ber-test.sh
View file @
ddc07498
...
...
@@ -16,6 +16,9 @@ fi
if
[
"x
$AWM_FILE
"
==
"x"
]
;
then
AWM_FILE
=
t
fi
if
[
"x
$AWM_MULTI_CLIP
"
==
"x"
]
;
then
AWM_MULTI_CLIP
=
1
fi
{
if
[
"x
$AWM_SET
"
==
"xsmall"
]
;
then
...
...
@@ -90,13 +93,16 @@ do
echo
"unknown transform
$TRANSFORM
"
>
&2
exit
1
fi
if
[
"x
${
AWM_CLIP
}
"
!=
"x"
]
;
then
audiowmark test-clip
$OUT_FILE
${
OUT_FILE
}
.clip.wav
$((
CLIP_SEED++
))
$AWM_CLIP
--test-key
$SEED
rm
$OUT_FILE
OUT_FILE
=
${
OUT_FILE
}
.clip.wav
fi
echo
if
[
"x
$AWM_REPORT
"
==
"xtruncv"
]
;
then
if
[
"x
${
AWM_CLIP
}
"
!=
"x"
]
;
then
for
CLIP
in
$(
seq
$AWM_MULTI_CLIP
)
do
audiowmark test-clip
$OUT_FILE
${
OUT_FILE
}
.clip.wav
$((
CLIP_SEED++
))
$AWM_CLIP
--test-key
$SEED
audiowmark cmp
${
OUT_FILE
}
.clip.wav
$PATTERN
$AWM_PARAMS
--test-key
$SEED
$TEST_CUT_ARGS
rm
${
OUT_FILE
}
.clip.wav
echo
done
elif
[
"x
$AWM_REPORT
"
==
"xtruncv"
]
;
then
for
TRUNC
in
$AWM_TRUNCATE
do
audiowmark cmp
$OUT_FILE
$PATTERN
$AWM_PARAMS
--test-key
$SEED
$TEST_CUT_ARGS
--test-truncate
$TRUNC
|
sed
"s/^/
$TRUNC
/g"
...
...
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