Mercurial > hg > piper
annotate test.sh @ 152:f82853dd8d8a
Start reworking request-response into json-rpc format
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 05 Oct 2016 09:19:05 +0100 |
parents | de53fcc487c4 |
children | 4e9ea8f177b6 |
rev | line source |
---|---|
c@103 | 1 #!/bin/bash |
c@103 | 2 |
c@103 | 3 set -eu |
c@103 | 4 |
c@103 | 5 for ex in examples/*.json ; do |
c@103 | 6 echo "Checking $ex..." 1>&2 |
c@103 | 7 jsonschema -i "$ex" schema/$(basename "$ex") |
c@103 | 8 done |
c@103 | 9 |
c@111 | 10 for s in schema/*.json ; do |
c@111 | 11 if [ ! -f examples/$(basename "$s") ]; then |
c@111 | 12 echo "WARNING: No example file for schema $s" |
c@111 | 13 fi |
c@111 | 14 done |
c@111 | 15 |