view 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
line wrap: on
line source
#!/bin/bash

fail() {
    echo "Test failed: $1"
    exit 1
}

xmllint --version 2>/dev/null || \
    fail "Can't find required xmllint program"

rapper --version >/dev/null || \
    fail "Can't find required rapper program"

iconv --version >/dev/null || \
    fail "Can't find required iconv program"

echo '{}' | json_verify >/dev/null || \
    fail "Can't find required json_verify program, or it doesn't seem to work"

echo '{}' | json_reformat >/dev/null || \
    fail "Can't find required json_reformat program, or it doesn't seem to work"

exit 0