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@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@0: exit 0 Chris@0: