summaryrefslogtreecommitdiff
path: root/Chalice/tests/runalltests.bat
blob: f391b1f9a8a7e8749cd6b92809923c15259258f3 (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
@echo off

setlocal EnableDelayedExpansion

:: no-summary command line parameter
set nosummary=0
if "%1"=="-no-summary" (
    set nosummary=1
    SHIFT
)

set t=0
set c=0
for %%f in (examples permission-model general-tests regressions) do (
  echo Running tests in %%f ...
  echo ------------------------------------------------------
  cd %%f
  set tt=0
  for %%f in (*.chalice) do set /A tt+=1
  call reg_test_all.bat -no-summary
  set /A c=!c!+!errorlevel!
  set /A t=!t!+!tt!
  cd ..
  echo ------------------------------------------------------
)

if !nosummary!==0 (
    echo.
    if !c!==0 (echo SUMMARY: completed !t! tests successfully.) else (echo SUMMARY: !c! of !t! tests failed.)
)

exit /b !c!