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
113815ae
Commit
113815ae
authored
Jun 06, 2024
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TESTS: add a few more checks to existing tests
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
2f5f67d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
block-decoder-test.sh
tests/block-decoder-test.sh
+8
-0
pipe-test.sh
tests/pipe-test.sh
+2
-0
No files found.
tests/block-decoder-test.sh
View file @
113815ae
...
...
@@ -9,5 +9,13 @@ audiowmark test-gen-noise $IN_WAV 200 44100
audiowmark_add
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
5
$OUT_WAV
$TEST_MSG
check_length
$IN_WAV
$OUT_WAV
audiowmark_add
--test-no-limiter
$IN_WAV
$OUT_WAV
$TEST_MSG
audiowmark_cmp
--expect-matches
5
$OUT_WAV
$TEST_MSG
check_length
$IN_WAV
$OUT_WAV
check_snr
$IN_WAV
$OUT_WAV
32.4
rm
$IN_WAV
$OUT_WAV
exit
0
tests/pipe-test.sh
View file @
113815ae
...
...
@@ -10,5 +10,7 @@ cat $IN_WAV | audiowmark_add - - $TEST_MSG > $OUT_WAV || die "watermark from pip
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"
check_length
$IN_WAV
$OUT_WAV
rm
$IN_WAV
$OUT_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