File: issue150.sh

package info (click to toggle)
simdjson 4.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,396 kB
  • sloc: cpp: 195,760; ansic: 20,954; sh: 1,126; python: 885; makefile: 47; ruby: 25; javascript: 13
file content (15 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
DATADIR="$1/_deps/simdjson-data"

for i in $DATADIR/jsonchecker/adversarial/issue150/*.json ; do
  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