view tests/test-supportprogs/test-supportprogs.sh @ 189:089f1a13963d

Require (and provide) text codec for output stream -- fixing #1153 (wrong codec used when writing RDF)
author Chris Cannam
date Mon, 02 Mar 2015 17:17:59 +0000
parents cbbf8a838b47
children 68daabfc4ccc
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"

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