OSDN Git Service

Version 3.00
[vbslib/main.git] / _src / TestByFCBatAuto / TestPrompt / Sample / T_RunFCBat / T_ALL_5_do_test.bat
1 @echo off \r
2 REM\r
3 REM  Test by comparing stdout and stderr (FCBat style)\r
4 REM\r
5 if "%1"=="" cmd /K "%0" /wnd\r
6 \r
7 if exist T_ALL_result.txt  del T_ALL_result.txt\r
8 \r
9 set T=T_Sample\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
14 \r
15 :last_of_test\r
16 set T=\r
17 echo Test log compare ...>> T_ALL_result.txt\r
18 if not errorlevel 1 echo Pass.>> T_ALL_result.txt\r
19 if     errorlevel 1 echo Fail.>> T_ALL_result.txt\r
20 type T_ALL_result.txt\r
21 \r
22  \r