1*5a6e8488SAndroid Build Coastguard Worker@echo off 2*5a6e8488SAndroid Build Coastguard Worker 3*5a6e8488SAndroid Build Coastguard Workerset scripts=..\..\tests\bc 4*5a6e8488SAndroid Build Coastguard Workerset bc=%~dp0\bc.exe 5*5a6e8488SAndroid Build Coastguard Workerset args=-ql 6*5a6e8488SAndroid Build Coastguard Worker 7*5a6e8488SAndroid Build Coastguard Workerdel /f /q *.txt > NUL 8*5a6e8488SAndroid Build Coastguard Worker 9*5a6e8488SAndroid Build Coastguard Worker 10*5a6e8488SAndroid Build Coastguard Workerrem excluded: all, errors, read_errors, posix_errors, misc6, misc7, recursive_arrays 11*5a6e8488SAndroid Build Coastguard Worker 12*5a6e8488SAndroid Build Coastguard Workerfor %%i in ( 13*5a6e8488SAndroid Build Coastguard Workerabs 14*5a6e8488SAndroid Build Coastguard Workeradd 15*5a6e8488SAndroid Build Coastguard Workerarctangent 16*5a6e8488SAndroid Build Coastguard Workerarrays 17*5a6e8488SAndroid Build Coastguard Workerassignments 18*5a6e8488SAndroid Build Coastguard Workerbitfuncs 19*5a6e8488SAndroid Build Coastguard Workerboolean 20*5a6e8488SAndroid Build Coastguard Workercomp 21*5a6e8488SAndroid Build Coastguard Workercosine 22*5a6e8488SAndroid Build Coastguard Workerdecimal 23*5a6e8488SAndroid Build Coastguard Workerdivide 24*5a6e8488SAndroid Build Coastguard Workerdivmod 25*5a6e8488SAndroid Build Coastguard Workerengineering 26*5a6e8488SAndroid Build Coastguard Workerexponent 27*5a6e8488SAndroid Build Coastguard Workerfunctions 28*5a6e8488SAndroid Build Coastguard Workerglobals 29*5a6e8488SAndroid Build Coastguard Workerlength 30*5a6e8488SAndroid Build Coastguard Workerletters 31*5a6e8488SAndroid Build Coastguard Workerlib2 32*5a6e8488SAndroid Build Coastguard Workerlog 33*5a6e8488SAndroid Build Coastguard Workermisc 34*5a6e8488SAndroid Build Coastguard Workermisc1 35*5a6e8488SAndroid Build Coastguard Workermisc2 36*5a6e8488SAndroid Build Coastguard Workermisc3 37*5a6e8488SAndroid Build Coastguard Workermisc4 38*5a6e8488SAndroid Build Coastguard Workermisc5 39*5a6e8488SAndroid Build Coastguard Workermodexp 40*5a6e8488SAndroid Build Coastguard Workermodulus 41*5a6e8488SAndroid Build Coastguard Workermultiply 42*5a6e8488SAndroid Build Coastguard Workerpi 43*5a6e8488SAndroid Build Coastguard Workerplaces 44*5a6e8488SAndroid Build Coastguard Workerpower 45*5a6e8488SAndroid Build Coastguard Workerprint2 46*5a6e8488SAndroid Build Coastguard Workerrand 47*5a6e8488SAndroid Build Coastguard Workerread 48*5a6e8488SAndroid Build Coastguard Workerscale 49*5a6e8488SAndroid Build Coastguard Workerscientific 50*5a6e8488SAndroid Build Coastguard Workershift 51*5a6e8488SAndroid Build Coastguard Workersine 52*5a6e8488SAndroid Build Coastguard Workersqrt 53*5a6e8488SAndroid Build Coastguard Workerstdin 54*5a6e8488SAndroid Build Coastguard Workerstdin1 55*5a6e8488SAndroid Build Coastguard Workerstdin2 56*5a6e8488SAndroid Build Coastguard Workerstrings 57*5a6e8488SAndroid Build Coastguard Workersubtract 58*5a6e8488SAndroid Build Coastguard Workertrunc 59*5a6e8488SAndroid Build Coastguard Workervars 60*5a6e8488SAndroid Build Coastguard Workervoid 61*5a6e8488SAndroid Build Coastguard Workerleadingzero 62*5a6e8488SAndroid Build Coastguard Worker) do ( 63*5a6e8488SAndroid Build Coastguard Workerif exist "%scripts%\%%i.txt" ( 64*5a6e8488SAndroid Build Coastguard Worker "%bc%" "%args%" < "%scripts%\%%i.txt" > "%%i_results.txt" 65*5a6e8488SAndroid Build Coastguard Worker 66*5a6e8488SAndroid Build Coastguard Worker if errorlevel 1 ( 67*5a6e8488SAndroid Build Coastguard Worker echo FAIL_RUNTIME: %%i 68*5a6e8488SAndroid Build Coastguard Worker goto :eof 69*5a6e8488SAndroid Build Coastguard Worker ) 70*5a6e8488SAndroid Build Coastguard Worker 71*5a6e8488SAndroid Build Coastguard Worker fc.exe "%scripts%\%%i_results.txt" "%%i_results.txt" > NUL 72*5a6e8488SAndroid Build Coastguard Worker 73*5a6e8488SAndroid Build Coastguard Worker if errorlevel 1 ( 74*5a6e8488SAndroid Build Coastguard Worker echo FAIL_RESULTS: %%i 75*5a6e8488SAndroid Build Coastguard Worker goto :eof 76*5a6e8488SAndroid Build Coastguard Worker ) 77*5a6e8488SAndroid Build Coastguard Worker 78*5a6e8488SAndroid Build Coastguard Worker echo PASS: %%i 79*5a6e8488SAndroid Build Coastguard Worker) else ( 80*5a6e8488SAndroid Build Coastguard Worker echo FAIL_NOT_EXIST: %%i 81*5a6e8488SAndroid Build Coastguard Worker goto :eof 82*5a6e8488SAndroid Build Coastguard Worker) 83*5a6e8488SAndroid Build Coastguard Worker) 84*5a6e8488SAndroid Build Coastguard Worker 85*5a6e8488SAndroid Build Coastguard Workerif exist "%scripts%\leadingzero.txt" ( 86*5a6e8488SAndroid Build Coastguard Worker "%bc%" "%args%" -z < "%scripts%\leadingzero.txt" > "leadingzero_z_results.txt" 87*5a6e8488SAndroid Build Coastguard Worker 88*5a6e8488SAndroid Build Coastguard Worker if errorlevel 1 ( 89*5a6e8488SAndroid Build Coastguard Worker echo FAIL_RUNTIME: leadingzero_z 90*5a6e8488SAndroid Build Coastguard Worker goto :eof 91*5a6e8488SAndroid Build Coastguard Worker ) 92*5a6e8488SAndroid Build Coastguard Worker 93*5a6e8488SAndroid Build Coastguard Worker fc.exe "%scripts%\leadingzero_results.txt" "leadingzero_z_results.txt" > NUL 94*5a6e8488SAndroid Build Coastguard Worker 95*5a6e8488SAndroid Build Coastguard Worker if errorlevel 1 ( 96*5a6e8488SAndroid Build Coastguard Worker echo FAIL_RESULTS: leadingzero_z 97*5a6e8488SAndroid Build Coastguard Worker goto :eof 98*5a6e8488SAndroid Build Coastguard Worker ) 99*5a6e8488SAndroid Build Coastguard Worker 100*5a6e8488SAndroid Build Coastguard Worker echo PASS: leadingzero_z 101*5a6e8488SAndroid Build Coastguard Worker) else ( 102*5a6e8488SAndroid Build Coastguard Worker echo FAIL_NOT_EXIST: leadingzero_z 103*5a6e8488SAndroid Build Coastguard Worker goto :eof 104*5a6e8488SAndroid Build Coastguard Worker)