Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
324 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Xteq5 XML template version 1.06 | ||
It is assumed that this file will be used for automatic processing. | ||
Therefore it contains only the minimum required information in order to reduce the file size. | ||
--> | ||
|
||
<report xmlns="http://www.xteq5.com/xmlreport/v1"> | ||
|
||
<summary> | ||
<id>@@REPORTID@@</id> | ||
<compilationfolder>@@SOURCEFOLDER@@</compilationfolder> | ||
<engineversion>@@VERSIONSTRING@@</engineversion> | ||
<username>@@USERNAME@@</username> | ||
<computer>@@COMPUTERNAME@@</computer> | ||
<text>@@USERTEXT@@</text> | ||
<starttime>@@STARTDATETIMEUTC@@</starttime> | ||
<endtime>@@ENDDATETIMEUTC@@</endtime> | ||
<runtimeseconds>@@RUNTIMESECONDS@@</runtimeseconds> | ||
</summary> | ||
|
||
<issuesfound> | ||
<any>@@ISSUESFOUND@@</any> | ||
<assets>@@ASSETISSUESFOUND@@</assets> | ||
<tests>@@TESTISSUESFOUND@@</tests> | ||
</issuesfound> | ||
|
||
<statistics> | ||
<assets> | ||
<total>@@ASSETS.TOTAL@@</total> | ||
<doesnotapply>@@ASSETS.DOESNOTAPPLY@@</doesnotapply> | ||
<success>@@ASSETS.SUCCESS@@</success> | ||
<inconclusive>@@ASSETS.INCONCLUSIVE@@</inconclusive> | ||
<minor>@@ASSETS.MINOR@@</minor> | ||
<major>@@ASSETS.MAJOR@@</major> | ||
<fatal>@@ASSETS.FATAL@@</fatal> | ||
</assets> | ||
|
||
<tests> | ||
<total>@@TESTS.TOTAL@@</total> | ||
<doesnotapply>@@TESTS.DOESNOTAPPLY@@</doesnotapply> | ||
<success>@@TESTS.SUCCESS@@</success> | ||
<inconclusive>@@TESTS.INCONCLUSIVE@@</inconclusive> | ||
<minor>@@TESTS.MINOR@@</minor> | ||
<major>@@TESTS.MAJOR@@</major> | ||
<fatal>@@TESTS.FATAL@@</fatal> | ||
</tests> | ||
</statistics> | ||
|
||
|
||
<assets> | ||
<!--@@ASSETROWS@@--> | ||
</assets> | ||
|
||
|
||
<tests> | ||
<!--@@TESTROWS@@--> | ||
</tests> | ||
|
||
|
||
<!-- E N D E --> | ||
</report> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
|
||
|
||
REM First step is to find out if this is a x64 or a x86 machine. | ||
REM This happens in order to start the correct version (bitness match) of Xteq5CLI. | ||
|
||
|
||
SET BITNESS=64bit | ||
IF "%PROCESSOR_ARCHITECTURE%" == "x86" ( | ||
if not defined PROCESSOR_ARCHITEW6432 SET BITNESS=32bit | ||
) | ||
|
||
REM Clear errorlevel variable, just to be sure | ||
SET ERRORLEVEL= | ||
|
||
REM Since Xteq5 is always installed into the native ProgramFiles folder, we can use the path directly | ||
"C:\Program Files\Xteq5\%BITNESS%\Xteq5CLI.exe" -Run -Path "C:\dev\git\Xteq5\scripts" -Format XML -Filename "C:\Temp\result.xml" -Text "From BatchTestBAT" | ||
SET RETURN_CODE=%ERRORLEVEL% | ||
|
||
REM Execute Xteq5CLI (Debug Version) | ||
REM "%~dp0bin\x64\Debug\Xteq5CLI.exe" -Run -Path "C:\dev\git\Xteq5\scripts" -Format XML -Filename "C:\Temp\result.xml" -Text "From BatchTestBAT" | ||
|
||
REM Write found RETURN CODE | ||
echo Error level is %RETURN_CODE% | ||
|
||
REM Check the result with a STRING operator to avoid side effects | ||
IF "%RETURN_CODE%"=="0" GOTO good | ||
IF "%RETURN_CODE%"=="13" GOTO issuesfound | ||
IF "%RETURN_CODE%"=="22" GOTO hell | ||
|
||
REM We expected that this line will not be executed because of the GOTO commands. | ||
REM If we are here, it means an unknown return code has been returned (e.g. 9009 for file not found). | ||
REM Go to hell in this case. | ||
goto hell | ||
|
||
|
||
:good | ||
echo. | ||
echo All is good. | ||
echo. | ||
goto ENDE | ||
|
||
|
||
:issuesfound | ||
echo. | ||
echo Some issues were found | ||
echo. | ||
goto ENDE | ||
|
||
|
||
:hell | ||
echo. | ||
echo Fatal error during run! | ||
echo. | ||
goto ENDE | ||
|
||
|
||
|
||
:ENDE | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.