forked from connamara/quickfixn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acceptance_test.bat
executable file
·107 lines (93 loc) · 3.26 KB
/
acceptance_test.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
REM reset script vars that this script uses
REM (in case the environment has them inexplicably set already)
set RESULT40=
set RESULT41=
set RESULT42=
set RESULT43=
set RESULT44=
set RESULT44_NORESET=
set RESULT50=
set RESULT50SP1=
set RESULT50SP2=
set RESULTMISC=
set RETURNVALUE=
pushd AcceptanceTest
del AcceptanceTests_*.xml
call pause
del TestResult.xml
call runat release 5001 definitions/server/fix40/*.def cfg/at_40.cfg
if ERRORLEVEL 1 set RESULT40=1
echo "40 tests result: %RESULT40%"
copy TestResult.xml AcceptanceTests_40.xml
call pause
del TestResult.xml
call runat release 5002 definitions/server/fix41/*.def cfg/at_41.cfg
if ERRORLEVEL 1 set RESULT41=1
echo "41 tests result: %RESULT41%"
copy TestResult.xml AcceptanceTests_41.xml
call pause
del TestResult.xml
call runat release 5003 definitions/server/fix42/*.def cfg/at_42.cfg
if ERRORLEVEL 1 set RESULT42=1
echo "42 tests result: %RESULT42%"
copy TestResult.xml AcceptanceTests_42.xml
call pause
del TestResult.xml
call runat release 5004 definitions/server/fix43/*.def cfg/at_43.cfg
if ERRORLEVEL 1 set RESULT43=1
echo "43 tests result: %RESULT43%"
copy TestResult.xml AcceptanceTests_43.xml
call pause
del TestResult.xml
call runat release 5005 definitions/server/fix44/*.def cfg/at_44.cfg
if ERRORLEVEL 1 set RESULT44=1
echo "44 tests result: %RESULT44%"
copy TestResult.xml AcceptanceTests_44.xml
call pause
del TestResult.xml
call runat release 5005 definitions/server/fix44noreset/*.def cfg/at_44_noreset.cfg
if ERRORLEVEL 1 set RESULT44_NORESET=1
echo "44 tests result: %RESULT44_NORESET%"
copy TestResult.xml AcceptanceTests_44_noreset.xml
call pause
del TestResult.xml
call runat release 5006 definitions/server/fix50/*.def cfg/at_50.cfg
if ERRORLEVEL 1 set RESULT50=1
echo "50 tests result: %RESULT50%"
copy TestResult.xml AcceptanceTests_50.xml
call pause
del TestResult.xml
call runat release 5007 definitions/server/fix50sp1/*.def cfg/at_50_sp1.cfg
if ERRORLEVEL 1 set RESULT50SP1=1
echo "50 SP1 tests result: %RESULT50SP1%"
copy TestResult.xml AcceptanceTests_50_SP1.xml
call pause
del TestResult.xml
call runat release 5008 definitions/server/fix50sp2/*.def cfg/at_50_sp2.cfg
if ERRORLEVEL 1 set RESULT50SP2=1
echo "50 SP2 tests result: %RESULT50SP2%"
copy TestResult.xml AcceptanceTests_50_SP2.xml
call pause
del TestResult.xml
call runat release 5003 definitions/server/misc/*.def cfg/at_42.misc.cfg
if ERRORLEVEL 1 set RESULTMISC=1
echo "Misc tests result: %RESULTMISC%"
copy TestResult.xml AcceptanceTests_Misc.xml
popd
echo ""
echo ""
echo "test suite results (blank means success):"
echo " 40: %RESULT40%"
echo " 41: %RESULT41%"
echo " 42: %RESULT42%"
echo " 43: %RESULT43%"
echo " 44: %RESULT44%"
echo " 44nr: %RESULT44_NORESET%"
echo " 50: %RESULT50%"
echo "50 SP1: %RESULT50SP1%"
echo "50 SP2: %RESULT50SP2%"
echo " MISC: %RESULTMISC%"
set /a RETURNVALUE=RESULT40+RESULT41+RESULT42+RESULT43+RESULT44+RESULT44_NORESET+RESULT50+RESULT50SP1+RESULT50SP2+RESULTMISC
echo "Script returns: %RETURNVALUE%"
echo "(0 means success)"
exit /B %RETURNVALUE%