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
fb9b344e
Commit
fb9b344e
authored
Jun 03, 2022
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TESTS: use audiowmark cmp --expect-matches option
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
0d4af829
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
block-decoder-test.sh
tests/block-decoder-test.sh
+1
-1
clip-decoder-test.sh
tests/clip-decoder-test.sh
+2
-2
pipe-test.sh
tests/pipe-test.sh
+2
-2
sample-rate-test.sh
tests/sample-rate-test.sh
+2
-2
sync-test.sh
tests/sync-test.sh
+1
-1
No files found.
tests/block-decoder-test.sh
View file @
fb9b344e
...
...
@@ -7,7 +7,7 @@ OUT_WAV=block-decoder-test-out.wav
audiowmark test-gen-noise
$IN_WAV
200 44100
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
$OUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
5
$OUT_WAV
$TEST_MSG
rm
$IN_WAV
$OUT_WAV
exit
0
tests/clip-decoder-test.sh
View file @
fb9b344e
...
...
@@ -8,10 +8,10 @@ CUT_WAV=clip-decoder-test-out-cut.wav
audiowmark test-gen-noise
$IN_WAV
30 44100
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
$OUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
1
$OUT_WAV
$TEST_MSG
# cut 1 second 300 samples
audiowmark cut-start
$OUT_WAV
$CUT_WAV
44300
audiowmark_cmp
$CUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
1
$CUT_WAV
$TEST_MSG
rm
$IN_WAV
$OUT_WAV
$CUT_WAV
exit
0
tests/pipe-test.sh
View file @
fb9b344e
...
...
@@ -7,8 +7,8 @@ OUT_WAV=pipe-test-out.wav
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"
audiowmark_cmp
--expect-matches
5
$OUT_WAV
$TEST_MSG
cat
$OUT_WAV
| audiowmark_cmp
-
-expect-matches
5 -
$TEST_MSG
||
die
"watermark detection from pipe failed"
rm
$IN_WAV
$OUT_WAV
exit
0
tests/sample-rate-test.sh
View file @
fb9b344e
...
...
@@ -8,9 +8,9 @@ OUT_48000_WAV=sample-rate-test-out-48000.wav
audiowmark test-gen-noise
$IN_WAV
200 32000
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
$OUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
5
$OUT_WAV
$TEST_MSG
audiowmark test-resample
$OUT_WAV
$OUT_48000_WAV
48000
audiowmark_cmp
$OUT_48000_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
5
$OUT_48000_WAV
$TEST_MSG
rm
$IN_WAV
$OUT_WAV
$OUT_48000_WAV
exit
0
tests/sync-test.sh
View file @
fb9b344e
...
...
@@ -10,7 +10,7 @@ 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
audiowmark_cmp
$CUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
3
$CUT_WAV
$TEST_MSG
rm
$IN_WAV
$OUT_WAV
$CUT_WAV
exit
0
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