Mercurial > hg > piper
view test.sh @ 64:4e9ea8f177b6 docrefactor
Pull out serialisedArray definition, add tests for both kinds
author | Chris Cannam |
---|---|
date | Wed, 05 Oct 2016 09:37:08 +0100 |
parents | a5eb5ef2e92d |
children | ada4cd9daaba |
line wrap: on
line source
#!/bin/bash set -eu for ex in examples/*.json ; do echo "Checking $ex..." 1>&2 jsonschema -i "$ex" schema/$(basename "$ex" | sed 's/-[^.]*//') done for s in schema/*.json ; do if [ ! -f examples/$(basename "$s") ]; then if ! ls -1 examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then echo "WARNING: No example file for schema $s" fi fi done