1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/W/test_testsdebug.bat

38 lines
804 B
Batchfile
Raw Normal View History

2020-04-11 01:15:57 +02:00
@REM $Id: test_testsdebug.bat,v 1.4 2019/11/25 12:44:59 gilles Exp gilles $
2016-09-19 17:17:24 +02:00
@SETLOCAL
@ECHO OFF
ECHO Currently running through %0 %*
CD /D %~dp0
REM Remove the error file because its existence means an error occured during this script execution
IF EXIST LOG_bat\%~nx0.txt DEL LOG_bat\%~nx0.txt
@REM CALL :handle_error perl .\imapsync --justbanner
2017-09-23 23:54:48 +02:00
CALL :handle_error perl .\imapsync --testsdebug --debug
2016-09-19 17:17:24 +02:00
@REM CALL :handle_error perl .\imapsync --tests
@REM @PAUSE
@ENDLOCAL
@EXIT /B
:handle_error
SETLOCAL
ECHO IN %0 with parameters %*
%*
SET CMD_RETURN=%ERRORLEVEL%
IF %CMD_RETURN% EQU 0 (
ECHO GOOD END
) ELSE (
ECHO BAD END
IF NOT EXIST LOG_bat MKDIR LOG_bat
ECHO Failure running %* >> LOG_bat\%~nx0.txt
)
ENDLOCAL
EXIT /B