OSDN Git Service

Version 2.00
[vbslib/main.git] / _src / TestByFCBat / TestPrompt / T_TestScErr / T_ALL_5_do_test.bat
diff --git a/_src/TestByFCBat/TestPrompt/T_TestScErr/T_ALL_5_do_test.bat b/_src/TestByFCBat/TestPrompt/T_TestScErr/T_ALL_5_do_test.bat
new file mode 100644 (file)
index 0000000..aeb998e
--- /dev/null
@@ -0,0 +1,24 @@
+@echo off \r
+REM\r
+REM  Test by comparing stdout and stderr (FCBat style)\r
+REM\r
+\r
+if exist T_ALL_result.txt  del T_ALL_result.txt\r
+if "%1"=="" cmd /K "%0" /wnd\r
+set CL=cscript %2 //nologo\r
+\r
+set T=T_TestScErr\r
+echo ^<^<^< [%T%] ^>^>^>\r
+( %CL% Test.vbs /autokeys:2.9. %3 2>&1 ) > %T%_log.txt\r
+fc Test_ans.txt Test_logs.txt\r
+if errorlevel 1  echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test\r
+\r
+:last_of_test\r
+set T=\r
+set CL=\r
+echo Test log compare ...>> T_ALL_result.txt\r
+if not errorlevel 1 echo Pass.>> T_ALL_result.txt\r
+if     errorlevel 1 echo Fail.>> T_ALL_result.txt\r
+type T_ALL_result.txt\r
+\r
\r