]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bc/vs/tests/tests_dc.bat
contrib/bc: merge version 5.1.0 from vendor branch
[FreeBSD/FreeBSD.git] / contrib / bc / vs / tests / tests_dc.bat
1 @echo off
2
3 set scripts=..\..\tests\dc
4 set dc=%~dp0\dc.exe
5 set args=-x
6
7 del /f /q *.txt > NUL
8
9
10 rem excluded: all, errors, read_errors
11
12 for %%i in (
13 abs
14 add
15 boolean
16 decimal
17 divide
18 divmod
19 engineering
20 exec_stack_len
21 length
22 misc
23 modexp
24 modulus
25 multiply
26 negate
27 places
28 power
29 rand
30 read
31 scientific
32 shift
33 sqrt
34 stack_len
35 stdin
36 strings
37 subtract
38 trunc
39 vars
40 ) do (
41 if exist "%scripts%\%%i.txt" (
42         "%dc%" "%args%" < "%scripts%\%%i.txt" > "%%i_results.txt"
43         
44         if errorlevel 1 (
45                 echo FAIL_RUNTIME: %%i
46                 goto :eof
47         )
48         
49         fc.exe "%scripts%\%%i_results.txt" "%%i_results.txt" > NUL
50         
51         if errorlevel 1 (
52                 echo FAIL_RESULTS: %%i
53                 goto :eof
54         )
55
56         echo PASS: %%i
57 ) else (
58         echo FAIL_NOT_EXIST: %%i
59         goto :eof
60 )
61 )