Mercurial > hg > piper
annotate test.sh @ 158:781de01a04eb
Request/response -> RpcRequest/response
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 06 Oct 2016 11:23:25 +0100 |
parents | d3b7d5185e55 |
children |
rev | line source |
---|---|
c@103 | 1 #!/bin/bash |
c@103 | 2 |
c@154 | 3 set -eu |
c@103 | 4 |
c@103 | 5 for ex in examples/*.json ; do |
c@103 | 6 echo "Checking $ex..." 1>&2 |
c@148 | 7 jsonschema -i "$ex" schema/$(basename "$ex" | sed 's/-[^.]*//') |
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@148 | 12 if ! ls -1 examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then |
c@148 | 13 echo "WARNING: No example file for schema $s" |
c@148 | 14 fi |
c@111 | 15 fi |
c@111 | 16 done |
c@111 | 17 |