1
- function exp {
2
- echo " $( dirname $1 ) /expected/$( basename $1 ) .txt"
3
- }
4
-
5
1
for file in tests/src/* .{res,resi}; do
6
- ./rescript-editor-analysis.exe test $file & > $( exp $file )
2
+ output=" $( dirname $file ) /expected/$( basename $file ) .txt"
3
+ ./rescript-editor-analysis.exe test $file & > $output
4
+ # CI
5
+ if [ " $RUNNER_OS " == " Windows" ]; then
6
+ sed -i ' s/\r\n/\n/g' $output
7
+ fi
7
8
done
8
9
9
10
./testmore.exe > helloworld.txt
@@ -26,21 +27,17 @@ echo "------"
26
27
echo " cat helloworld3.txt"
27
28
cat -A helloworld3.txt
28
29
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
30
40
- # # CI
41
- # if [ "$RUNNER_OS" == "Windows" ]; then
42
- # dos2unix tests/src/expected/*
43
- # fi
31
+ # echo "dox2unix helloworld.txt"
32
+ # dos2unix helloworld.txt
33
+ # echo "------"
34
+ # echo "dox2unix helloworld2.txt"
35
+ # dos2unix helloworld2.txt
36
+ # echo "------"
37
+ # echo "dox2unix helloworld3.txt"
38
+ # dos2unix helloworld3.txt
39
+ # echo "------"
40
+ # echo "========all done!========="
44
41
45
42
warningYellow=' \033[0;33m'
46
43
successGreen=' \033[0;32m'
0 commit comments