mirror of
https://github.com/imapsync/imapsync.git
synced 2025-08-02 23:21:49 +02:00
1.727
This commit is contained in:
parent
3eaac56812
commit
137242e609
114 changed files with 10852 additions and 8980 deletions
37
W/test_testsdebug.bat
Normal file
37
W/test_testsdebug.bat
Normal file
|
@ -0,0 +1,37 @@
|
|||
@REM $Id: test_testsdebug.bat,v 1.1 2016/08/19 08:20:53 gilles Exp gilles $
|
||||
|
||||
@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
|
||||
CALL :handle_error perl .\imapsync --testsdebug
|
||||
@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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue