annotate tests/test-supportprogs/test-supportprogs.sh @ 284:8233a26705ed piper-nopiper

More info about where helper programs live
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 30 Nov 2016 10:16:23 +0000
parents c17b184c16db
children
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 || \
cannam@284 9 fail "Can't find required xmllint program (from libxml2 distribution)"
Chris@0 10
Chris@0 11 rapper --version >/dev/null || \
cannam@284 12 fail "Can't find required rapper program (from raptor/redland distribution)"
Chris@0 13
Chris@198 14 iconv --version >/dev/null || \
cannam@284 15 fail "Can't find required iconv program (usually associated with glibc or libiconv)"
Chris@188 16
Chris@151 17 echo '{}' | json_verify >/dev/null || \
cannam@284 18 fail "Can't find required json_verify program (from yajl distribution), or it doesn't seem to work"
Chris@151 19
Chris@208 20 echo '{}' | json_reformat >/dev/null || \
cannam@284 21 fail "Can't find required json_reformat program (from yajl distribution), or it doesn't seem to work"
Chris@208 22
Chris@0 23 exit 0
Chris@0 24