json: move validation test data to dedicated directory

This commit is contained in:
Danny Robson 2018-07-05 15:00:47 +10:00
parent 74568d1c2d
commit 30c35b2101
28 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
#!/bin/sh #!/bin/sh
validate="@CMAKE_CURRENT_BINARY_DIR@/json-validate" validate="@CMAKE_CURRENT_BINARY_DIR@/json-validate"
basedir="@CMAKE_CURRENT_SOURCE_DIR@/test/json/validate"
count=0 count=0
code=0 code=0
for i in $(ls "@CMAKE_CURRENT_SOURCE_DIR@/test/json/good/"*); for i in $(ls "${basedir}/good/"*);
do do
$validate $i 2>/dev/null 1>&2 $validate $i 2>/dev/null 1>&2
@ -19,7 +20,7 @@ do
count=$((count+1)) count=$((count+1))
done done
for i in $(ls "@CMAKE_CURRENT_SOURCE_DIR@/test/json/bad/"*); for i in $(ls "${basedir}/bad/"*);
do do
$validate $i 1>&2 2>/dev/null $validate $i 1>&2 2>/dev/null