summaryrefslogtreecommitdiff
path: root/test/runtestcases.bat
blob: 4d4b5e0ffeec1d9c7bee04e7e550d18a6ad73ad9 (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
@ECHO OFF
SETLOCAL EnableDelayedExpansion
SET cmd=%1
SET dir=%2

SET ex=0

FOR /f "tokens=*" %%G IN ('dir /b %dir%\*.t') DO (
  ECHO "%dir%\%%G"
  CALL %cmd% "%dir%\%%G"

  IF !ERRORLEVEL! EQU 0 (
    ECHO "PASSED";
  ) ELSE (
    IF !ERRORLEVEL! EQU 77 (
      ECHO "SKIPPED";
    ) ELSE (
      ECHO "FAILED";
      SET ex=1;
    )
  )
)

exit /B %ex%