This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://github.com/test262-utils/test262-harness-py | |
| cd test262-harness-py | |
| git checkout 0f2acdd882c84cff43b9d60df7574a1901e2cdcd | |
| git clone https://github.com/tc39/test262 | |
| patch -p1 < test262.patch (https://gist.github.com/xeioex/0ad564ce405b6c78883583e04d569885) | |
| python ./src/test262.py --command='<full path to njs cli binary> -q' --tests=./test262/ --strict_only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description: http://lcamtuf.coredump.cx/afl/ | |
| cmd: | |
| # ubuntu: apt-get install afl | |
| CC=afl-clang CFLAGS='-O0' ./configure && make njs | |
| afl-fuzz -i testcases_njs -o findings_njs -x njs.dict <path-to-njs-binary> - | |
| cat njs.dict | |
| keyword_arguments="arguments" | |
| keyword_break="break" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| SRC=$PWD | |
| BBUILD=/tmp/build/nginx/ | |
| mkdir -p $BBUILD | |
| rm -fr "$BBUILD/*" | |
| BUILD="$BBUILD/$1" | |
| mkdir -p "$BUILD" |