本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
392B

  1. #!/bin/bash
  2. set -eu -o pipefail
  3. dir=$(git rev-parse --show-toplevel)
  4. scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
  5. function finish {
  6. rm -rf "$scratch"
  7. }
  8. trap finish EXIT SIGHUP SIGINT SIGTERM
  9. cd "$scratch"
  10. git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
  11. cp -r Suite/tests/draft4/* "$dir/fixtures/jsonschema_suite"
  12. cp -a Suite/remotes "$dir/fixtures/jsonschema_suite"
上海开阖软件有限公司 沪ICP备12045867号-1