Files
Database/_UTIL/TestOracle/testwork37.bat
Jos Groot Lipman dbace5d06f DB37 erbij
svn path=/Database/trunk/; revision=42487
2019-05-13 13:34:29 +00:00

52 lines
1.7 KiB
Batchfile

@SET DBVER=37
@SET DBPRV=36
@SET DBPRVPATH=z:\Archief\FACILITOR\2019\01\DB36\FCLT36.sql
::=============================
@SET BUILD=z:\Project\FACILITOR\BUILD
IF EXIST %DBPRVPATH% GOTO START
ECHO %DBPRVPATH% niet gevonden
PAUSE
GOTO EINDE
:START
@echo off
REM Usage: %0
PUSHD z:\Project\FACILITOR\Database\trunk
CALL mx NOWAIT
POPD
:START0
IF EXIST %BUILD%\DB%DBVER%\FCLT%DBVER%.sql GOTO STARTCREA
ECHO %BUILD%\DB%DBVER%\FCLT%DBVER%.sql niet gevonden
PAUSE
GOTO EINDE
:STARTCREA
ECHO ==========================================================================================================>diffwork_%DBVER%.lst
ECHO Comparescript %0>>diffwork_%DBVER%.lst
ECHO Creates databases users TEST_DB%DBVER% and TEST_DB%DBPRV%TO%DBVER% and compares them>>diffwork_%DBVER%.lst
ECHO (password is the same as username in uppercase)>>diffwork_%DBVER%.lst
ECHO ==========================================================================================================>>diffwork_%DBVER%.lst
ECHO.>>diffwork_%DBVER%.lst
ECHO Starting Create, see diffwork_%DBVER%.lst
ECHO Starting Create>>diffwork_%DBVER%.lst
CALL _CREA_WORK %DBVER% z:\Project\FACILITOR\BUILD>>diffwork_%DBVER%.lst
ECHO Starting Update, see diffwork_%DBVER%.lst
ECHO Starting Update>>diffwork_%DBVER%.lst
CALL _CREA_WORK_UPDATE %DBPRV% %DBPRVPATH% %DBVER% z:\Project\FACILITOR\BUILD>>diffwork_%DBVER%.lst
ECHO Starting Compare, see diffwork_%DBVER%.lst
ECHO Starting Compare>>diffwork_%DBVER%.lst
cscript compare.js %DBPRV% %DBVER% >>diffwork_%DBVER%.lst 2>>&1
findstr /i "ORA-" "diffwork_%DBVER%.lst"
if %errorlevel%==1 GOTO EINDE
findstr /C:"ORA-" "diffwork_%DBVER%.lst" | cscript emailerror.js
@TITLE ORA-Errors found, e-mail sent
PAUSE
:EINDE