Mercurial > hg > piper
annotate test.sh @ 71:d1638aefce5d jsonrpc
Add finish response (even though it's identical to process response)
author | Chris Cannam |
---|---|
date | Wed, 05 Oct 2016 13:27:05 +0100 |
parents | 9e3ea87dad6e |
children |
rev | line source |
---|---|
Chris@32 | 1 #!/bin/bash |
Chris@32 | 2 |
Chris@69 | 3 set -eu |
Chris@32 | 4 |
Chris@32 | 5 for ex in examples/*.json ; do |
Chris@32 | 6 echo "Checking $ex..." 1>&2 |
Chris@64 | 7 jsonschema -i "$ex" schema/$(basename "$ex" | sed 's/-[^.]*//') |
Chris@32 | 8 done |
Chris@32 | 9 |
Chris@40 | 10 for s in schema/*.json ; do |
Chris@40 | 11 if [ ! -f examples/$(basename "$s") ]; then |
Chris@64 | 12 if ! ls -1 examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then |
Chris@64 | 13 echo "WARNING: No example file for schema $s" |
Chris@64 | 14 fi |
Chris@40 | 15 fi |
Chris@40 | 16 done |
Chris@40 | 17 |