Skip to content

Commit 7cc7021

Browse files
committed
tmp remove line CI
1 parent 0df218d commit 7cc7021

3 files changed

Lines changed: 6 additions & 49 deletions

File tree

.github/workflows/simple_checks.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

script/check_all_linenos.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,18 @@
1515

1616
root=$(dirname $(realpath $(dirname $0)))
1717
cd $root
18-
echo "[Making parser]"
19-
./script/make_parser.sh
20-
echo "[Done making parser]"
2118

22-
parser=tools/parser/lang
2319
mkdir -p testdata/jsons
2420

2521
do_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"

script/make_parser.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)