# HG changeset patch # User Chris Cannam # Date 1413282463 -3600 # Node ID a1300db6c63edd6365cd9bace3c9ea55eed11460 # Parent d86ef0a88fa46c558e56a0a269d8c644b4a63ce7 JSON well-formedness test (currently failing) diff -r d86ef0a88fa4 -r a1300db6c63e tests/test-json-destinations/test-json-destinations.sh --- a/tests/test-json-destinations/test-json-destinations.sh Tue Oct 14 11:24:05 2014 +0100 +++ b/tests/test-json-destinations/test-json-destinations.sh Tue Oct 14 11:27:43 2014 +0100 @@ -26,7 +26,8 @@ check_json() { test -f $1 || \ fail "Fails to write output to expected location $1 for $2" - ##!!! todo! + cat $1 | json_verify || \ + fail "Writes invalid JSON to location $1 for $2" rm -f $1 } diff -r d86ef0a88fa4 -r a1300db6c63e tests/test-supportprogs/test-supportprogs.sh --- a/tests/test-supportprogs/test-supportprogs.sh Tue Oct 14 11:24:05 2014 +0100 +++ b/tests/test-supportprogs/test-supportprogs.sh Tue Oct 14 11:27:43 2014 +0100 @@ -11,5 +11,8 @@ rapper --version >/dev/null || \ fail "Can't find required rapper program" +echo '{}' | json_verify >/dev/null || \ + fail "Can't find required json_verify program, or it doesn't seem to work" + exit 0