33 lines
816 B
Batchfile
33 lines
816 B
Batchfile
@echo off
|
|
rem =====================================================================
|
|
rem Execute toutes les suites de tests NimPulse et affiche un resume.
|
|
rem Sortie : exit code 0 si tout est vert, 1 sinon.
|
|
rem =====================================================================
|
|
setlocal enabledelayedexpansion
|
|
|
|
set PASS=0
|
|
set FAIL=0
|
|
|
|
for %%t in (test_timer test_stats test_config test_notifications test_tray_integration test_updater test_floating) do (
|
|
echo.
|
|
echo === %%t ===
|
|
nim c -r --hints:off tests\%%t.nim
|
|
if !errorlevel! equ 0 (
|
|
echo [PASS] %%t
|
|
set /a PASS+=1
|
|
) else (
|
|
echo [FAIL] %%t
|
|
set /a FAIL+=1
|
|
)
|
|
)
|
|
|
|
echo.
|
|
echo ==============================
|
|
echo Resultat : !PASS! reussi(s), !FAIL! echoue(s)
|
|
echo ==============================
|
|
|
|
if !FAIL! gtr 0 (
|
|
exit /b 1
|
|
)
|
|
exit /b 0
|