Mercurial > hg > sonic-annotator
annotate tests/test-supportprogs/test-supportprogs.sh @ 196:082c3f21f49e
Simple MIDI writer test
author | Chris Cannam |
---|---|
date | Tue, 01 Sep 2015 15:51:07 +0100 |
parents | cbbf8a838b47 |
children | 68daabfc4ccc |
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@188 | 14 uconv --version >/dev/null || \ |
Chris@188 | 15 fail "Can't find required uconv program" |
Chris@188 | 16 |
Chris@151 | 17 echo '{}' | json_verify >/dev/null || \ |
Chris@151 | 18 fail "Can't find required json_verify program, or it doesn't seem to work" |
Chris@151 | 19 |
Chris@0 | 20 exit 0 |
Chris@0 | 21 |