annotate tests/test-supportprogs/test-supportprogs.sh @ 269:39fb206b1153 piper-nopiper

Filter out Xing/LAME info frames, rather than letting them go to the mp3 decoder as if they were audio frames. Fixes the 1152-sample zero pad at start of some decoded mp3 files (distinct from decoder delay). The logic here is based on the madplay code.
author Chris Cannam
date Thu, 24 Nov 2016 13:32:04 +0000
parents c17b184c16db
children 8233a26705ed
rev   line source
Chris@0 1 #!/bin/bash
Chris@0 2
Chris@0 3 fail() {
Chris@0 4 echo "Test failed: $1"
Chris@0 5 exit 1
Chris@0 6 }
Chris@0 7
Chris@0 8 xmllint --version 2>/dev/null || \
Chris@0 9 fail "Can't find required xmllint program"
Chris@0 10
Chris@0 11 rapper --version >/dev/null || \
Chris@0 12 fail "Can't find required rapper program"
Chris@0 13
Chris@198 14 iconv --version >/dev/null || \
Chris@199 15 fail "Can't find required iconv program"
Chris@188 16
Chris@151 17 echo '{}' | json_verify >/dev/null || \
Chris@151 18 fail "Can't find required json_verify program, or it doesn't seem to work"
Chris@151 19
Chris@208 20 echo '{}' | json_reformat >/dev/null || \
Chris@208 21 fail "Can't find required json_reformat program, or it doesn't seem to work"
Chris@208 22
Chris@0 23 exit 0
Chris@0 24