| 1 |
@echo off |
| 2 |
@rem Resource bundler test |
| 3 |
|
| 4 |
echo 'Resource' test: %1 |
| 5 |
set _1=%1 |
| 6 |
|
| 7 |
rem shift all build arguments into a single environment string; stop |
| 8 |
rem at the "-res" flag, which indicates the start of resource arguments |
| 9 |
|
| 10 |
set _src= |
| 11 |
:srcLoop |
| 12 |
set _src=%_src% %1 |
| 13 |
shift |
| 14 |
if %1# == # goto done |
| 15 |
if not %1 == -res goto srcLoop |
| 16 |
|
| 17 |
rem skip the "-res" flag |
| 18 |
shift |
| 19 |
|
| 20 |
rem run the build |
| 21 |
%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 %_src% |
| 22 |
|
| 23 |
rem shift all resource bundler arguments into a single environment string |
| 24 |
|
| 25 |
set _res= |
| 26 |
:resLoop |
| 27 |
set _res=%_res% %1 |
| 28 |
shift |
| 29 |
if not %1# == # goto resLoop |
| 30 |
|
| 31 |
rem run the resource bundler |
| 32 |
%tstbin%\capture >>%tstout%\%_1%.log %tstbin%\t3res %tstout%\%_1%.t3 %_res% |
| 33 |
|
| 34 |
rem run the program |
| 35 |
%tstbin%\capture >>%tstout%\%_1%.log %tstbin%\test_exec -cs cp437 -norand %tstout%\%_1%.t3 |
| 36 |
|
| 37 |
rem check for differences |
| 38 |
call %tstbat%\testdiff %_1% |
| 39 |
|
| 40 |
:done |
| 41 |
echo. |