| 1 | #!/bin/sh |
| 2 | |
| 3 | # $1 would be the title/substring of the title that parserTests.js uses to filter tests |
| 4 | # $2 would be the changetree -- copy-paste it from a failing test in parserTests-knownFailures.json |
| 5 | # $3 (optional) would be the parser test file |
| 6 | # |
| 7 | # Ex 1: debug_selser.sh "Say the magic word" "[[1,2,0,0,0,4,0,4,0,3,0,4,0,2,2,0,1,3,1,4,[4,0],3,[2],3,0,0,3,0,[2,0],0,4,0,[4,0],0,0,0,2,2,0,0,0,4,0]]" |
| 8 | # Ex 2: debug_selser.sh "Lists: 0. Outside nests" "[0,3,2]" |
| 9 | # |
| 10 | # "--trace selser" currently emits verbose selser and wts debugging output. |
| 11 | # So, you will want to pipe both stdout and stderr through less. |
| 12 | # You can copy this commandline to omit "--trace selser" if you dont want the verbose output. |
| 13 | |
| 14 | php "$(dirname "$0")"/parserTests.php --selser auto --dump dom:post-changes --knownFailures false --trace selser,wt-escape --filter "$1" --changetree "$2" "$3" |