blob: 5dadb05940734417fbd02406c39da0cd95eb7903 (
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
|
@echo off
setlocal EnableDelayedExpansion
if [%PLATFORM%]==[] set PLATFORM=x86
if [%PREFERREDTOOLARCHITECTURE%]==[x64] set PLATFORM=x64
set PLATFORM=%PLATFORM:X=x%
if exist build_msvc12_%PLATFORM%\tests (cd build_msvc12_%PLATFORM%\tests) else (
if exist ..\build_%PLATFORM%\tests (cd ..\build_msvc12_%PLATFORM%\tests) else (
echo unable to find test dir
exit /b 1
)
)
for /f %%T in (testlist.txt) do (
set test=%%T
set output=test: !test!....................................................................
set target=%%~nT.exe
if not exist !target! SET result=NotFound
call !target! && (SET result=Passed) || (SET result=Failed)
rem > last_test.out 2> last_test.err
rem set /p testerr=<last_test.err
rem set /p testout=<last_test.out
echo !output:~0,70!!result!
rem if defined testerr echo error: !testerr!
rem if defined testout echo msg: !testout!
if defined APPVEYOR (
appveyor AddTest "!test! %PLATFORM%" -Outcome !result! -Framework Custom -Filename %%~nT.exe -Duration 0
)
)
exit /b 0
|