| 1 |
@echo off |
| 2 |
@rem Make and execute tests |
| 3 |
|
| 4 |
|
| 5 |
sleep -m 500 |
| 6 |
|
| 7 |
set tstCodePage=cp437 |
| 8 |
if not %1# == -cp# goto nocp |
| 9 |
shift |
| 10 |
set tstCodePage=%1 |
| 11 |
shift |
| 12 |
|
| 13 |
:nocp |
| 14 |
set tstmakerun=YES |
| 15 |
if not %1# == -norun# goto yesrun |
| 16 |
shift |
| 17 |
set tstmakerun=NO |
| 18 |
|
| 19 |
:yesrun |
| 20 |
set tstscript= |
| 21 |
if not %1# == -script# goto noscript |
| 22 |
shift |
| 23 |
set tstscript=YES |
| 24 |
|
| 25 |
:noscript |
| 26 |
if %1# == -nodef# goto nodef |
| 27 |
if %1# == -debug# goto debug |
| 28 |
if %1# == -pre# goto yespre |
| 29 |
|
| 30 |
%tstbin%\capture >%tstout%\%1.log %tstbin%\t3make -test -I%tstdat% -I%tstinc% -a -nobanner -nopre -Fs %tstdat% -Fs %tstlib% -Fo %tstout% -Fy %tstout% -o %tstout%\%1.t3 %2 %3 %4 %5 %6 %7 %8 %9 |
| 31 |
goto doRun |
| 32 |
|
| 33 |
:nodef |
| 34 |
|
| 35 |
shift |
| 36 |
%tstbin%\capture >%tstout%\%1.log %tstbin%\t3make -test -I%tstdat% -I%tstinc% -a -nodef -nobanner -nopre -Fs %tstdat% -Fs %tstlib% -Fo %tstout% -Fy %tstout% -o %tstout%\%1.t3 %2 %3 %4 %5 %6 %7 %8 %9 |
| 37 |
goto doRun |
| 38 |
|
| 39 |
:debug |
| 40 |
|
| 41 |
shift |
| 42 |
%tstbin%\capture >%tstout%\%1.log %tstbin%\t3make -test -d -I%tstdat% -I%tstinc% -a -nobanner -nopre -Fs %tstdat% -Fs %tstlib% -Fo %tstout% -Fy %tstout% -o %tstout%\%1.t3 %2 %3 %4 %5 %6 %7 %8 %9 |
| 43 |
goto doRun |
| 44 |
|
| 45 |
:yespre |
| 46 |
|
| 47 |
shift |
| 48 |
%tstbin%\capture >%tstout%\%1.log %tstbin%\t3make -test -I%tstdat% -I%tstinc% -a -nobanner -Fs %tstdat% -Fs %tstlib% -Fo %tstout% -Fy %tstout% -o %tstout%\%1.t3 %2 %3 %4 %5 %6 %7 %8 %9 |
| 49 |
goto doRun |
| 50 |
|
| 51 |
:doRun |
| 52 |
if %tstmakerun%==NO goto :doSkipRun |
| 53 |
echo 'Make' test: %1 |
| 54 |
|
| 55 |
if %tstscript%# == YES# set tstscript=-I %tstdat%\%1.in |
| 56 |
%tstbin%\capture >>%tstout%\%1.log %tstbin%\test_exec -sd %tstroot% %tstscript% -cs %tstCodePage% -norand %tstout%\%1.t3 |
| 57 |
|
| 58 |
|
| 59 |
:doSkipRun |
| 60 |
call %tstbat%\testdiff %1 |
| 61 |
|
| 62 |
echo. |