File: block-decoder-test.sh

package info (click to toggle)
audiowmark 0.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,168 kB
  • sloc: cpp: 10,571; sh: 1,867; makefile: 107; python: 34
file content (21 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

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
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