forked from connamara/quickfixn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acceptance_test.bat
executable file
·73 lines (62 loc) · 2.73 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
pushd AcceptanceTest
del TestResult.xml AcceptanceTests_40.html AcceptanceTests_41.xml AcceptanceTests_42.xml AcceptanceTests_43.xml AcceptanceTests_44.xml AcceptanceTests_Misc.html
call runat release 5001 definitions/server/fix40/*.def cfg/at_40.cfg
if ERRORLEVEL 1 set RESULT40=1
echo "40 tests result: %RESULT40%"
xsltproc.exe -o AcceptanceTests_40.html at.xsl TestResult.xml
call pause
call runat release 5002 definitions/server/fix41/*.def cfg/at_41.cfg
if ERRORLEVEL 1 set RESULT41=1
echo "41 tests result: %RESULT41%"
xsltproc.exe -o AcceptanceTests_41.html at.xsl TestResult.xml
call pause
call runat release 5003 definitions/server/fix42/*.def cfg/at_42.cfg
if ERRORLEVEL 1 set RESULT42=1
echo "42 tests result: %RESULT42%"
xsltproc.exe -o AcceptanceTests_42.html at.xsl TestResult.xml
call pause
call runat release 5004 definitions/server/fix43/*.def cfg/at_43.cfg
if ERRORLEVEL 1 set RESULT43=1
echo "43 tests result: %RESULT43%"
xsltproc.exe -o AcceptanceTests_43.html at.xsl TestResult.xml
call pause
call runat release 5005 definitions/server/fix44/*.def cfg/at_44.cfg
if ERRORLEVEL 1 set RESULT44=1
echo "44 tests result: %RESULT44%"
xsltproc.exe -o AcceptanceTests_44.html at.xsl TestResult.xml
call pause
call runat release 5006 definitions/server/fix50/*.def cfg/at_50.cfg
if ERRORLEVEL 1 set RESULT50=1
echo "50 tests result: %RESULT50%"
xsltproc.exe -o AcceptanceTests_50.html at.xsl TestResult.xml
call pause
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%"
xsltproc.exe -o AcceptanceTests_50_SP1.html at.xsl TestResult.xml
call pause
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%"
xsltproc.exe -o AcceptanceTests_50_SP2.html at.xsl TestResult.xml
call pause
call runat release 5003 definitions/server/misc/*.def cfg/at_42.misc.cfg
if ERRORLEVEL 1 set RESULTMISC=1
echo "Misc tests result: %RESULTMISC%"
xsltproc.exe -o AcceptanceTests_Misc.html at.xsl TestResult.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 " 50: %RESULT50%"
echo "50 SP1: %RESULT50SP1%"
echo "50 SP2: %RESULT50SP2%"
echo " MISC: %RESULTMISC%"
set /a RETURNVALUE=RESULT40+RESULT41+RESULT42+RESULT43+RESULT44+RESULT50+RESULT50SP1+RESULT50SP2+RESULTMISC
echo "Script returns: %RETURNVALUE%"
exit /B %RETURNVALUE%