2
rem Test building a sample game. We'll make a copy of the sample
3
rem game source and build the game.
5
rem Usage: testsample <testName>
8
echo Sample Game test: %1
10
rem Delete the log file if it already exists
11
if exist %tstout%\%1.log del %tstout%\%1.log
13
rem Copy the sample game to the output directory, renaming to testName.t
14
copy %tstsamp%\%1.t %tstout%\%1.t >nul
15
if errorlevel 1 echo Error in COPY %tstsamp%\%1.t %tstout%\%1.t >%tstout%\%1.log
17
rem Compile testName.t with the adv3 library
18
%tstbin%\capture >>%tstout%\%1.log %tstbin%\t3make -test -a -nobanner -DLANGUAGE=en_us -DMESSAGESTYLE=neu -nopre -Fo %tstout% -Fy %tstout% -o %tstout%\%1.t3 -lib system.tl -lib adv3/adv3.tl -source %tstout%\%1.t
21
%tstbin%\capture >>%tstout%\%1.log %tstbin%\t3run -plain -csl us-ascii -i %tstdat%\%1.in -l%tstout%\%1_run.log %tstout%\%1.t3
24
call %tstbat%\testdiff %1
25
call %tstbat%\testdiff %1_run