File:  [parser3project] / parser3 / tests / run_tests.cmd
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Thu Feb 9 19:54:38 2017 UTC (9 years, 4 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, HEAD
Windows compatibility

@echo off
echo The system timezone should be GMT+3!

set PARSER_DIR=..\src\targets\cgi\release
set PARSER_EXECUTABLE=parser3.exe
set CYGWIN=nodosfilewarning
set DIFF_DIR=..\..\win32\tools\cygwin\bin
set DIFF_EXECUTABLE=diff.exe -b
set PARSER_CONFIG=results\auto.p
set RUN_PARSER=run_parser.cmd

del /Q "outputs\*.processed"

for %%f in (*.html) do ( call :outputs %%f %%~nf )

for %%f in (*.html) do ( call :compares %%f %%~nf )

goto :end


:outputs
echo %RUN_PARSER% %PARSER_DIR%\%PARSER_EXECUTABLE% %1 %PARSER_CONFIG% ^> outputs\%2.processed
(call %RUN_PARSER% %PARSER_DIR%\%PARSER_EXECUTABLE% %1 %PARSER_CONFIG%) > outputs\%2.processed
goto :end


:compares
echo %DIFF_EXECUTABLE% results\%2.processed outputs\%2.processed
%DIFF_DIR%\%DIFF_EXECUTABLE% results\%2.processed outputs\%2.processed
goto :end



:end

E-mail: