view tests/test-supportprogs/test-supportprogs.sh @ 201:345b10b8cf17

Added tag sonic-annotator-1.2 for changeset f35bbb3e4d41
author Chris Cannam
date Wed, 09 Sep 2015 14:11:53 +0100
parents c8b934ed4ddd
children c17b184c16db
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"

exit 0