blob: 21b06e2b09a1920605037e36bc05173601d6bcbc [file] [log] [blame]
Serge Bazanskicc25bdf2018-10-25 14:02:58 +02001#!/bin/bash
2
3set -eu -o pipefail
4dir=$(git rev-parse --show-toplevel)
5scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
6
7function finish {
8 rm -rf "$scratch"
9}
10trap finish EXIT SIGHUP SIGINT SIGTERM
11
12cd "$scratch"
13git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
14cp -r Suite/tests/draft4/* "$dir/fixtures/jsonschema_suite"
15cp -a Suite/remotes "$dir/fixtures/jsonschema_suite"