@@ -2,29 +2,46 @@ function exp {
22 echo " $( dirname $1 ) /expected/$( basename $1 ) .txt"
33}
44
5- echo " cat -A test.sh"
6- cat -A tests/src/expected/Auto.res.txt
7- echo " done---------"
8- echo " git diff test.sh"
9- git diff tests/src/expected/Auto.res.txt
10- echo " done---------"
11-
125for file in tests/src/* .{res,resi}; do
136 ./rescript-editor-analysis.exe test $file & > $( exp $file )
147done
158
9+ ./testmore.exe > helloworld.txt
10+ ./testfile.exe > helloworld2.txt
11+ ./testfile2.exe > helloworld3.txt
12+
13+ echo " cat basetest.txt"
14+ cat -A basetest.txt
15+ echo " ------"
16+ echo " cat basetest.txt > pipetest.txt then cat"
17+ cat basetest.txt > pipetest.txt
18+ cat -A pipetest.txt
19+ echo " ------"
20+ echo " cat helloworld.txt"
21+ cat -A helloworld.txt
22+ echo " ------"
23+ echo " cat helloworld2.txt"
24+ cat -A helloworld2.txt
25+ echo " ------"
26+ echo " cat helloworld3.txt"
27+ cat -A helloworld3.txt
28+ echo " ------"
29+ echo " dox2unix helloworld.txt"
30+ dos2unix helloworld.txt
31+ echo " ------"
32+ echo " dox2unix helloworld2.txt"
33+ dos2unix helloworld2.txt
34+ echo " ------"
35+ echo " dox2unix helloworld3.txt"
36+ dos2unix helloworld3.txt
37+ echo " ------"
38+ echo " ========all done!========="
39+
1640# # CI
1741# if [ "$RUNNER_OS" == "Windows" ]; then
1842# dos2unix tests/src/expected/*
1943# fi
2044
21- echo " cat -A test.sh last"
22- cat -A tests/src/expected/Auto.res.txt
23- echo " done cat last---------"
24- echo " git diff test.sh last"
25- diff -u tests/src/expected/Auto.res.txt tests/src/expected/Auto.res.2.txt
26- echo " done git last---------"
27-
2845warningYellow=' \033[0;33m'
2946successGreen=' \033[0;32m'
3047reset=' \033[0m'
0 commit comments