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
9419199c
Commit
9419199c
authored
Jun 01, 2022
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TESTS: use audiowmark test function to improve debugging output
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
9f8d93be
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
10 deletions
+11
-10
block-decoder-test.sh
tests/block-decoder-test.sh
+1
-1
clip-decoder-test.sh
tests/clip-decoder-test.sh
+3
-2
detect-speed-test.sh
tests/detect-speed-test.sh
+3
-3
pipe-test.sh
tests/pipe-test.sh
+1
-1
short-payload-test.sh
tests/short-payload-test.sh
+1
-1
sync-test.sh
tests/sync-test.sh
+2
-2
No files found.
tests/block-decoder-test.sh
View file @
9419199c
...
...
@@ -5,7 +5,7 @@ source test-common.sh
IN_WAV
=
block-decoder-test.wav
OUT_WAV
=
block-decoder-test-out.wav
$AUDIOWMARK
test-gen-noise
$IN_WAV
200 44100
||
die
"failed to generate noise"
audiowmark test-gen-noise
$IN_WAV
200 44100
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
$OUT_WAV
$TEST_MSG
...
...
tests/clip-decoder-test.sh
View file @
9419199c
...
...
@@ -6,10 +6,11 @@ IN_WAV=clip-decoder-test.wav
OUT_WAV
=
clip-decoder-test-out.wav
CUT_WAV
=
clip-decoder-test-out-cut.wav
$AUDIOWMARK
test-gen-noise
$IN_WAV
30 44100
||
die
"failed to generate noise"
audiowmark test-gen-noise
$IN_WAV
30 44100
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
$OUT_WAV
$TEST_MSG
$AUDIOWMARK
cut-start
$OUT_WAV
$CUT_WAV
44300
||
die
"failed to cut input"
# cut 1 second 300 samples
audiowmark cut-start
$OUT_WAV
$CUT_WAV
44300
audiowmark_cmp
$CUT_WAV
$TEST_MSG
rm
$IN_WAV
$OUT_WAV
$CUT_WAV
...
...
tests/detect-speed-test.sh
View file @
9419199c
...
...
@@ -6,11 +6,11 @@ IN_WAV=detect-speed-test.wav
OUT_WAV
=
detect-speed-test-out.wav
OUTS_WAV
=
detect-speed-test-out-spd.wav
$AUDIOWMARK
test-gen-noise detect-speed-test.wav 30 44100
||
die
"failed to generate noise"
for
SPEED
in
0.9764 1.01
audiowmark test-gen-noise detect-speed-test.wav 30 44100
for
SPEED
in
0.9764 1.0
1.0
1
do
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
$AUDIOWMARK
test-change-speed
$OUT_WAV
$OUTS_WAV
$SPEED
||
die
"failed to change speed"
audiowmark test-change-speed
$OUT_WAV
$OUTS_WAV
$SPEED
audiowmark_cmp
$OUTS_WAV
$TEST_MSG
--detect-speed
--test-speed
$SPEED
audiowmark_cmp
$OUTS_WAV
$TEST_MSG
--detect-speed-patient
--test-speed
$SPEED
done
...
...
tests/pipe-test.sh
View file @
9419199c
...
...
@@ -5,7 +5,7 @@ source test-common.sh
IN_WAV
=
pipe-test.wav
OUT_WAV
=
pipe-test-out.wav
$AUDIOWMARK
test-gen-noise
$IN_WAV
200 44100
||
die
"failed to generate noise"
audiowmark test-gen-noise
$IN_WAV
200 44100
cat
$IN_WAV
| audiowmark_add - -
$TEST_MSG
>
$OUT_WAV
||
die
"watermark from pipe failed"
audiowmark_cmp
$OUT_WAV
$TEST_MSG
cat
$OUT_WAV
| audiowmark_cmp -
$TEST_MSG
||
die
"watermark detection from pipe failed"
...
...
tests/short-payload-test.sh
View file @
9419199c
...
...
@@ -5,7 +5,7 @@ source test-common.sh
IN_WAV
=
short-playload-test.wav
OUT_WAV
=
short-playload-test-out.wav
$AUDIOWMARK
test-gen-noise
$IN_WAV
200 44100
||
die
"failed to generate noise"
audiowmark test-gen-noise
$IN_WAV
200 44100
audiowmark_add
--short
12
$IN_WAV
$OUT_WAV
abc
audiowmark_cmp
--short
12
$OUT_WAV
abc
audiowmark_add
--short
16
$IN_WAV
$OUT_WAV
abcd
...
...
tests/sync-test.sh
View file @
9419199c
...
...
@@ -6,10 +6,10 @@ IN_WAV=sync-test.wav
OUT_WAV
=
sync-test-out.wav
CUT_WAV
=
sync-test-cut.wav
$AUDIOWMARK
test-gen-noise
$IN_WAV
200 44100
||
die
"failed to generate noise"
audiowmark test-gen-noise
$IN_WAV
200 44100
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
# cut 20 seconds and 300 samples
$AUDIOWMARK
cut-start
$OUT_WAV
$CUT_WAV
882300
||
die
"failed to cut input"
audiowmark cut-start
$OUT_WAV
$CUT_WAV
882300
audiowmark_cmp
$CUT_WAV
$TEST_MSG
rm
$IN_WAV
$OUT_WAV
$CUT_WAV
...
...
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