annotate tests/test-supportprogs/test-supportprogs.sh @ 395:dec56c3e793b

Add a few more files to .hgignore
author Chris Cannam
date Tue, 09 Jun 2020 17:01:54 +0100
parents 8233a26705ed
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