2019-05-10 08:51:33 +08:00
|
|
|
#!/bin/bash
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
2021-06-04 21:24:03 +08:00
|
|
|
DATADIR="$1/_deps/simdjson-data"
|
|
|
|
|
|
|
|
for i in $DATADIR/jsonchecker/adversarial/issue150/*.json ; do
|
2019-05-10 08:51:33 +08:00
|
|
|
echo $i;
|
|
|
|
./allparserscheckfile -m $i;
|
|
|
|
if [ $? -ne 0 ];
|
|
|
|
then echo "potential bug";
|
|
|
|
exit 1
|
|
|
|
fi;
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "Code is probably ok. All parsers agree."
|
|
|
|
exit 0
|