OSDN Git Service

378ea9a1d6b33a26502e0bcf0a2e1f2f900f1d75
[vbslib/main.git] / test / _test_test / test.bat
1 @echo off\r
2 \r
3 cscript //nologo test_test.vbs > out0.txt\r
4 fc out0.txt ans0.txt\r
5 if errorlevel 1 echo Test Failed. & pause & goto :eof\r
6 fc log.txt ans0.txt\r
7 if errorlevel 1 echo Test Failed. & pause & goto :eof\r
8 del out0.txt\r
9 del log.txt\r
10 \r
11 pushd test1\r
12 cscript //nologo test.vbs > out1.txt\r
13 fc out1.txt ..\ans1.txt\r
14 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
15 del out1.txt\r
16 popd\r
17 \r
18 pushd test2\r
19 cscript //nologo test.vbs > out2a.txt 2>out2b.txt\r
20 fc out2a.txt ..\ans2a.txt\r
21 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
22 fc out2b.txt ..\ans2b.txt\r
23 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
24 del out2a.txt\r
25 del out2b.txt\r
26 popd\r
27 \r
28 pushd test3\r
29 cscript //nologo test.vbs > out3a.txt 2>out3b.txt\r
30 fc out3a.txt ..\ans3a.txt\r
31 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
32 fc out3b.txt ..\ans3b.txt\r
33 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
34 del out3a.txt\r
35 del out3b.txt\r
36 popd\r
37 \r
38 pushd test4\r
39 cscript //nologo test.vbs > out4a.txt 2>out4b.txt\r
40 fc out4a.txt ..\ans4a.txt\r
41 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
42 fc out4b.txt ..\ans4b.txt\r
43 if errorlevel 1 popd & echo Test Failed. & pause & goto :eof\r
44 del out4a.txt\r
45 del out4b.txt\r
46 popd\r
47 \r
48 echo Test Passed ! \r
49 pause