Mercurial > hg > sonic-annotator
annotate tests/test-supportprogs/test-supportprogs.sh @ 182:11a9ce2fa331
Add ability to read segment boundaries from a file; test for it; bump version no; make test script bail out if path has spaces (can't cope with that, sheesh)
author | Chris Cannam |
---|---|
date | Fri, 09 Jan 2015 11:48:12 +0000 |
parents | a1300db6c63e |
children | cbbf8a838b47 |
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 || \ |
Chris@0 | 9 fail "Can't find required xmllint program" |
Chris@0 | 10 |
Chris@0 | 11 rapper --version >/dev/null || \ |
Chris@0 | 12 fail "Can't find required rapper program" |
Chris@0 | 13 |
Chris@151 | 14 echo '{}' | json_verify >/dev/null || \ |
Chris@151 | 15 fail "Can't find required json_verify program, or it doesn't seem to work" |
Chris@151 | 16 |
Chris@0 | 17 exit 0 |
Chris@0 | 18 |