3 REM Test by comparing stdout and stderr (FCBat style)
\r
5 if "%1"=="" cmd /K "%0" /wnd2
\r
7 if exist T_ALL_result.txt del T_ALL_result.txt
\r
12 ( cscript %2 //nologo %T%.vbs %3 2>&1 ) > %T%_log.txt
\r
13 fc %T%_ans.txt %T%_log.txt
\r
14 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
16 set T=T_LauncherFail
\r
18 ( cscript %2 //nologo %T%.vbs %3 2>&1 ) > %T%_log.txt
\r
19 if not %errorlevel%==23 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
20 fc %T%_ans.txt %T%_log.txt
\r
21 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
23 set T=T_LauncherSynErr
\r
25 ( cscript %2 //nologo %T%.vbs %3 2>&1 ) > %T%_log.txt
\r
26 if not %errorlevel%==23 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
27 fc %T%_ans.txt %T%_log.txt
\r
28 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
30 set T=T_LauncherSkip
\r
32 ( cscript %2 //nologo %T%.vbs %3 2>&1 ) > %T%_log.txt
\r
33 if not %errorlevel%==22 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
34 fc %T%_ans.txt %T%_log.txt
\r
35 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
39 echo Test log compare ...>> T_ALL_result.txt
\r
40 if not errorlevel 1 echo Pass.>> T_ALL_result.txt
\r
41 if errorlevel 1 echo Fail.>> T_ALL_result.txt
\r
42 type T_ALL_result.txt
\r