blob: 047a189c9ef13adae1a9ed5a42e474821ebfc9d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
@echo off
set scripts=..\..\tests\bc
set bc=%~dp0\bc.exe
set args=-ql
del /f /q *.txt > NUL
rem excluded: all, errors, read_errors, posix_errors, misc6, misc7, recursive_arrays
for %%i in (
abs
add
arctangent
arrays
assignments
bitfuncs
boolean
comp
cosine
decimal
divide
divmod
engineering
exponent
functions
globals
length
letters
lib2
log
misc
misc1
misc2
misc3
misc4
misc5
modexp
modulus
multiply
pi
places
power
print2
rand
read
scale
scientific
shift
sine
sqrt
stdin
stdin1
stdin2
strings
subtract
trunc
vars
void
) do (
if exist "%scripts%\%%i.txt" (
"%bc%" "%args%" < "%scripts%\%%i.txt" > "%%i_results.txt"
if errorlevel 1 (
echo FAIL_RUNTIME: %%i
goto :eof
)
fc.exe "%scripts%\%%i_results.txt" "%%i_results.txt" > NUL
if errorlevel 1 (
echo FAIL_RESULTS: %%i
goto :eof
)
echo PASS: %%i
) else (
echo FAIL_NOT_EXIST: %%i
goto :eof
)
)
|