File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515
1616root=$( dirname $( realpath $( dirname $0 ) ) )
1717cd $root
18- echo " [Making parser]"
19- ./script/make_parser.sh
20- echo " [Done making parser]"
2118
22- parser=tools/parser/lang
2319mkdir -p testdata/jsons
2420
2521do_test () {
22+ name=" ast"
2623 lang=$1
2724 srcpath=$2
28- name=$3
2925 flags=$4
3026
31- echo $name ...
32- $parser -d -v --no-need-comment collect $lang $srcpath > testdata/jsons/$name .json 2> testdata/jsons/$name .log
33- cat testdata/jsons/$name .log
34- python script/check_lineno.py --json testdata/jsons/$name .json --base $srcpath $flags > testdata/jsons/$name .check
27+ echo " go run . parse $lang $srcpath -verbose --no-need-comment > testdata/jsons/$name .json"
28+ go run . parse $lang $srcpath -verbose --no-need-comment > testdata/jsons/$name .json
29+ python3 script/check_lineno.py --json testdata/jsons/$name .json --base $srcpath $flags > testdata/jsons/$name .check
3530
3631 if grep -q " All functions verified successfully!" testdata/jsons/$name .check; then
3732 echo " [PASS]"
@@ -40,5 +35,5 @@ do_test() {
4035 exit 1
4136 fi
4237}
43- do_test go src/lang go " --zero_linebase"
44- do_test rust testdata/rust2-wobyted rust2 " --zero_linebase --implheads"
38+ do_test go testdata/golang " --zero_linebase"
39+ do_test rust testdata/rust2 " --zero_linebase --implheads"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments