File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # @echo off
2-
3- isFaild=0;
4-
5- rm * .test & > /dev/null
6-
7- while IFS=$' ' read -r command xmlFile; do
8-
9- if [ " $2 " == " -debug" ]; then
10- echo " $exePath ${command} ./${xmlFile} > ${xmlFile} .test"
11- fi
12-
13- $exePath ${command} ./${xmlFile} > ${xmlFile} .test
14-
15- if diff --ignore-all-space ${xmlFile} .res ${xmlFile} .test > /dev/null ; then
16- continue ;
17- else
18- isFaild=1;
19- echo " ${xmlFile} failed."
20- break ;
21- fi
22- done < " testList.txt"
23-
24- if [ $isFaild -eq 1 ]; then
25- echo " Failed" ;
26- exit 1;
27- else
28- echo " OK"
29- rm * .test & > /dev/null
30- fi
31-
1+ # @echo off
2+
3+ isFaild=0;
4+
5+ rm * .test & > /dev/null
6+
7+ while IFS=$' ' read -r command xmlFile; do
8+
9+ if [ " $2 " == " -debug" ]; then
10+ echo " $exePath ${command} ./${xmlFile} > ${xmlFile} .test"
11+ fi
12+
13+ $exePath ${command} ./${xmlFile} > ${xmlFile} .test
14+
15+ if diff --ignore-all-space ${xmlFile} .res ${xmlFile} .test > /dev/null ; then
16+ continue ;
17+ else
18+ isFaild=1;
19+ echo " ${xmlFile} failed."
20+ break ;
21+ fi
22+ done < " testList.txt"
23+
24+ if [ $isFaild -eq 1 ]; then
25+ echo " Failed" ;
26+ exit 1;
27+ else
28+ echo " OK"
29+ rm * .test & > /dev/null
30+ fi
31+
You can’t perform that action at this time.
0 commit comments