Mercurial > hg > piper
annotate test.sh @ 67:ada4cd9daaba docrefactor
Pull out serialisedarray schema
author | Chris Cannam |
---|---|
date | Wed, 05 Oct 2016 09:58:49 +0100 |
parents | 4e9ea8f177b6 |
children | 9e3ea87dad6e |
rev | line source |
---|---|
Chris@32 | 1 #!/bin/bash |
Chris@32 | 2 |
Chris@32 | 3 |
Chris@32 | 4 for ex in examples/*.json ; do |
Chris@32 | 5 echo "Checking $ex..." 1>&2 |
Chris@64 | 6 jsonschema -i "$ex" schema/$(basename "$ex" | sed 's/-[^.]*//') |
Chris@32 | 7 done |
Chris@32 | 8 |
Chris@40 | 9 for s in schema/*.json ; do |
Chris@40 | 10 if [ ! -f examples/$(basename "$s") ]; then |
Chris@64 | 11 if ! ls -1 examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then |
Chris@64 | 12 echo "WARNING: No example file for schema $s" |
Chris@64 | 13 fi |
Chris@40 | 14 fi |
Chris@40 | 15 done |
Chris@40 | 16 |