@@ -2,29 +2,46 @@ function exp {
2
2
echo " $( dirname $1 ) /expected/$( basename $1 ) .txt"
3
3
}
4
4
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
-
12
5
for file in tests/src/* .{res,resi}; do
13
6
./rescript-editor-analysis.exe test $file & > $( exp $file )
14
7
done
15
8
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
+
16
40
# # CI
17
41
# if [ "$RUNNER_OS" == "Windows" ]; then
18
42
# dos2unix tests/src/expected/*
19
43
# fi
20
44
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
-
28
45
warningYellow=' \033[0;33m'
29
46
successGreen=' \033[0;32m'
30
47
reset=' \033[0m'
0 commit comments