~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to tads/tads3/win32/test/testsample.bat

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
rem  Test building a sample game.  We'll make a copy of the sample
 
3
rem  game source and build the game.
 
4
rem
 
5
rem  Usage: testsample <testName>
 
6
rem
 
7
 
 
8
echo Sample Game test: %1
 
9
 
 
10
rem  Delete the log file if it already exists
 
11
if exist %tstout%\%1.log del %tstout%\%1.log
 
12
 
 
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
 
16
 
 
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
 
19
 
 
20
rem  Run the test
 
21
%tstbin%\capture >>%tstout%\%1.log %tstbin%\t3run -plain -csl us-ascii -i %tstdat%\%1.in -l%tstout%\%1_run.log %tstout%\%1.t3
 
22
 
 
23
rem  Diff the outputs
 
24
call %tstbat%\testdiff %1
 
25
call %tstbat%\testdiff %1_run
 
26
 
 
27
echo.