summaryrefslogtreecommitdiffstats
path: root/tests/auto/autobuildrunsingle.bat
blob: adb98719241f69de0eaa87b4d64f00c02be4c13a (plain)
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
@echo off
REM  runtest

SET QTVERSION=%4

IF %1 == winscw goto winscw:
IF %1 == armv5 goto armv5:
IF %1 == gcce goto gcce:
goto end:

:winscw
IF EXIST \epoc32\release\winscw\udeb\tst_%2.exe (
	call \epoc32\release\winscw\udeb\tst_%2.exe -lightxml
	if ERRORLEVEL 1 (		
		echo ^<TestFunction name="PANIC"^> >> \Epoc32\winscw\c\system\data\out.txt
		echo ^<Incident type="fail" file="" line="0"^> >> \Epoc32\winscw\c\system\data\out.txt
		echo ^<DataTag^>^<![CDATA[ message ]]^>^</DataTag^> >> \Epoc32\winscw\c\system\data\out.txt
		echo ^<Description^>^<![CDATA['MESSAGE: TEST CASE PANICS]]^>^</Description^> >> \Epoc32\winscw\c\system\data\out.txt
		echo ^</Incident^> >> \Epoc32\winscw\c\system\data\out.txt
		echo ^</TestFunction^> >> \Epoc32\winscw\c\system\data\out.txt )
	copy /Y \Epoc32\winscw\c\system\data\out.txt %3\%2.xml 
	goto end:
) ELSE (
goto notExist:
)

:ARMV5
IF EXIST \epoc32\release\armv5\urel\tst_%2.exe (
    pushd .
    cd %2
    IF _%5 == _cetest-subdir: (
        echo Running cetest from subdir: %6
        cd %6
    )
    IF _%5 == _cetest-pro: (
    	call cetest -release -f %6 -project-delete -lightxml -o %3\%2.xml
    ) ELSE (
    	call cetest -release -project-delete -lightxml -o %3\%2.xml
    )
    if EXIST %3\%2.xml if ERRORLEVEL 1 (
		echo ^<TestFunction name="PANIC"^> >> %3\%2.xml
		echo ^<Incident type="fail" file="" line="0"^> >> %3\%2.xml
		echo ^<DataTag^>^<![CDATA[ message ]]^>^</DataTag^> >> %3\%2.xml
		echo ^<Description^>^<![CDATA['MESSAGE: TEST CASE PANICS]]^>^</Description^> >> %3\%2.xml
		echo ^</Incident^> >> %3\%2.xml
		echo ^</TestFunction^> >> %3\%2.xml
		)
    popd
	goto end:
) ELSE (
goto notExist:
)

:gcce
goto end:

:notExist
echo AAA: %3\%2.xml
echo ^<Environment^> >> %3\%2.xml
echo ^<QtVersion^>%QTVERSION%^</QtVersion^> >> %3\%2.xml
echo ^<QTestVersion^>%QTVERSION%^</QTestVersion^> >> %3\%2.xml
echo ^</Environment^> >> %3\%2.xml
echo ^<TestFunction name="initTestCase"^> >> %3\%2.xml
echo ^<Incident type="fail" file="" line="0"^> >> %3\%2.xml
echo ^<DataTag^>^<![CDATA[ message ]]^>^</DataTag^> >> %3\%2.xml
echo ^<Description^>^<![CDATA['MESSAGE: COMPILE FAIL]]^>^</Description^> >> %3\%2.xml
echo ^</Incident^> >> %3\%2.xml
echo ^</TestFunction^> >> %3\%2.xml
goto end:

:end