Chris@0: #!/bin/bash
Chris@0: 
Chris@0: fail() {
Chris@0:     echo "Test failed: $1"
Chris@0:     exit 1
Chris@0: }
Chris@0: 
Chris@0: xmllint --version 2>/dev/null || \
Chris@0:     fail "Can't find required xmllint program"
Chris@0: 
Chris@0: rapper --version >/dev/null || \
Chris@0:     fail "Can't find required rapper program"
Chris@0: 
Chris@198: iconv --version >/dev/null || \
Chris@199:     fail "Can't find required iconv program"
Chris@188: 
Chris@151: echo '{}' | json_verify >/dev/null || \
Chris@151:     fail "Can't find required json_verify program, or it doesn't seem to work"
Chris@151: 
Chris@208: echo '{}' | json_reformat >/dev/null || \
Chris@208:     fail "Can't find required json_reformat program, or it doesn't seem to work"
Chris@208: 
Chris@0: exit 0
Chris@0: