@@ -22,23 +22,23 @@ mkdir temp
22
22
# parsing
23
23
find tests/parsing/{errors,infiniteLoops,recovery} -name " *.res" -o -name " *.resi" > temp/files.txt
24
24
while read file; do
25
- rescript -recover -print ml $file & > $( exp $file ) & maybeWait
25
+ res_parser -recover -print ml $file & > $( exp $file ) & maybeWait
26
26
done < temp/files.txt
27
27
find tests/parsing/{grammar,other} -name " *.res" -o -name " *.resi" > temp/files.txt
28
28
while read file; do
29
- rescript -print ml $file & > $( exp $file ) & maybeWait
29
+ res_parser -print ml $file & > $( exp $file ) & maybeWait
30
30
done < temp/files.txt
31
31
32
32
# printing
33
33
find tests/{printer,conversion} -name " *.res" -o -name " *.resi" -o -name " *.ml" -o -name " *.mli" > temp/files.txt
34
34
while read file; do
35
- rescript $file & > $( exp $file ) & maybeWait
35
+ res_parser $file & > $( exp $file ) & maybeWait
36
36
done < temp/files.txt
37
37
38
38
# printing with ppx
39
39
find tests/ppx/react -name " *.res" -o -name " *.resi" > temp/files.txt
40
40
while read file; do
41
- rescript -jsx-version 4 -jsx-mode " automatic" $file & > $( exp $file ) & maybeWait
41
+ res_parser -jsx-version 4 -jsx-mode " automatic" $file & > $( exp $file ) & maybeWait
42
42
done < temp/files.txt
43
43
44
44
wait
@@ -78,11 +78,11 @@ if [[ $ROUNDTRIP_TEST = 1 ]]; then
78
78
* .resi ) class=" res" ; resIntf=-interface ;;
79
79
esac
80
80
81
- rescript $resIntf -parse $class -print sexp $file > $sexpAst1
82
- rescript $resIntf -parse $class -print res $file > $rescript1
81
+ res_parser $resIntf -parse $class -print sexp $file > $sexpAst1
82
+ res_parser $resIntf -parse $class -print res $file > $rescript1
83
83
84
- rescript $resIntf -print sexp $rescript1 > $sexpAst2
85
- rescript $resIntf -print res $rescript1 > $rescript2
84
+ res_parser $resIntf -print sexp $rescript1 > $sexpAst2
85
+ res_parser $resIntf -print res $rescript1 > $rescript2
86
86
87
87
diff --unified $sexpAst1 $sexpAst2
88
88
[[ " $? " = 1 ]] && echo 1 > $roundtripTestsResult
0 commit comments