3 REM Test by comparing stdout and stderr (FCBat style)
\r
5 if "%1"=="" cmd /K "%0" /wnd
\r
7 if exist T_ALL_result.txt del T_ALL_result.txt
\r
10 echo ^<^<^< [%T%] ^>^>^>
\r
11 ( cscript //nologo %T%.vbs 2>&1 ) > %T%_log.txt
\r
12 fc %T%_ans.txt %T%_log.txt
\r
13 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
15 fc %T%_r_fi_ans.txt %T%_r_fi_log.txt
\r
16 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
18 fc %T%_r_fo_ans.txt %T%_r_fo_log.txt
\r
19 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
23 echo Test log compare ...>> T_ALL_result.txt
\r
24 if not errorlevel 1 echo Pass.>> T_ALL_result.txt
\r
25 if errorlevel 1 echo Fail.>> T_ALL_result.txt
\r
26 type T_ALL_result.txt
\r