fix up the xmltest.cmd

This commit is contained in:
Geoff McLane 2015-05-13 13:22:11 +02:00
parent 40824e9a68
commit 6f36698268

View file

@ -1,11 +1,37 @@
@setlocal
@echo off @echo off
REM xmltest.cmd - execute all XML test cases @REM xmltest.cmd - execute all XML test cases
REM @REM
REM (c) 1998-2003 (W3C) MIT, ERCIM, Keio University @REM (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
REM See tidy.c for the copyright notice. @REM See tidy.c for the copyright notice.
REM @REM
REM <URL:http://www.html-tidy.org/> @REM <URL:http://www.html-tidy.org/>
REM @REM
@set TIDY=..\build\cmake\Release\tidy5.exe
@if NOT EXIST %TIDY% goto NOEXE
@if NOT EXIST xmlcases.txt goto NOXML
@REM set OUTPUT folder
@set TIDYOUT=tmp
@if EXIST %TIDYOUT%\nul goto DOTEST
@md tmp
:DOTEST
@set TMPTEST=temptest.txt
@if EXIST %TMPTEST% @del %TMPTEST%
@echo Commencing xml tests from xmlcases.txt
for /F "tokens=1*" %%i in (xmlcases.txt) do call onetest.cmd %%i %%j @for /F "tokens=1*" %%i in (xmlcases.txt) do @(call onetest.cmd %%i %%j)
@echo Full output written to %TMPTEST%
@goto END
:NOXML
@echo Error: Can NOT locate xmlcases.txt! *** FIX ME ***
@goto END
:NOEXE
@echo Can NOT locate %TIDY% executable! *** FIX ME ***
@goto END
:END