view tests/test-supportprogs/test-supportprogs.sh @ 198:68daabfc4ccc

Use iconv instead of uconv (present on OS/X)
author Chris Cannam
date Tue, 01 Sep 2015 17:29:02 +0100
parents cbbf8a838b47
children c8b934ed4ddd
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 uconv program"

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

exit 0