Commit Graph

22 Commits (125e7ba9ab0403fe3156b8c377d7b7e2d07d7709)

Author SHA1 Message Date
Christian Ohm e503f52a32 Fix "make distcheck".
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11371 4a71c877-e1ca-e34f-864e-861f7616d084
2010-08-04 16:43:19 +02:00
Christian Ohm d1343e4a7d Prevent automake.sh from complaining about astartest.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11296 4a71c877-e1ca-e34f-864e-861f7616d084
2010-07-28 18:58:31 +02:00
Christian Ohm a31beaec05 Fix "make check".
Disable astartest, since it's broken after the rename of astar.c to astar.cpp.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11258 4a71c877-e1ca-e34f-864e-861f7616d084
2010-07-22 19:17:54 +02:00
Per Inge Mathisen e17c33635c Fix unit tests
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10641 4a71c877-e1ca-e34f-864e-861f7616d084
2010-04-19 12:52:42 +02:00
Cyp 5c9585e8cb pointtree: Find points quickly.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9260 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:09 +01:00
Christian Ohm d8295761fc Add missing include to astartest.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9150 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Christian Ohm 0949e9ed28 Fix tests/Makefile.am for out-of-tree builds.
This makes "make distcheck" run the tests (but maptest has its paths hardcoded
and thus fails).

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8362 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:56 +01:00
Per Inge Mathisen a33e89200b Remove useless, old astar measurement code. Some code cleanup.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7919 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:56 +02:00
Per Inge Mathisen f0f13e295c Do some micro-optimizations on inner loop of path-finding code. Boosts performance by a measured 20%.
Also add a unit test for further testing, optimization and measurement work on this code.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7918 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:55 +02:00
Giel van Schijndel 52c8ba24e4 Revert accidentilly committed revisions r7394, r7395 and r7396 (part of a private branch)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7398 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-15 22:29:31 +02:00
Giel van Schijndel ef5a01eeb9 Add a JSON tokenizer (lexer), parser and serializer
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7395 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-15 22:29:30 +02:00
Giel van Schijndel 12436947e8 Make tests/Makefile.am more suitable for line-based diffs
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7053 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-18 15:37:53 +02:00
Giel van Schijndel 0698f8424d Slightly better documenting of code and error messages
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6909 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Per Inge Mathisen 571d7e0329 make check: Also test included mod maps.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6821 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-08 18:02:39 +00:00
Per Inge Mathisen ecdb16baea Fix "make check" compilation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6782 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-07 14:18:52 +00:00
Per Inge Mathisen 09ddf35b87 mapinfo: Parse .gam file and show scroll limits.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6730 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-26 23:17:05 +00:00
Per Inge Mathisen 58546965b7 Delete commented out references to non-existent files from gamedesc.lev
Delete two unused and broken map files that either belongs to an expand mission or is unreferenced.
Add basic unit testing framework for testing all map files in data/base.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6728 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-26 19:41:25 +00:00
Giel van Schijndel 6254f73329 Remove now useless testcase directory "tests" as its only testcase (t1000: tested level_parser.y) has no code left to test (due to r5163)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5165 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-24 12:48:26 +00:00
Giel van Schijndel 72075d2621 Fix LDADD in tests/Makefile.am so that crosscompiling (or rather crosslinking) with mingw32 is possible
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5090 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-12 19:52:35 +00:00
Giel van Schijndel 8997223371 Perform the actual function call of the parsing function (levParse) in doParseTest() in t1000.c rather than parse_test.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4894 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 21:55:24 +00:00
Giel van Schijndel efd188a632 Call debug_exit() on exit from the parser unit test so that valgrind testing becomes easier
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4887 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 20:30:45 +00:00
Giel van Schijndel 35d84d2fbf Add the beginnings of an external unit test framework (i.e. it doesn't run in Warzone itself, it just links to pieces of Warzone's code to test it):
* Add a new directory with unit tests (/tests/)
  * Run `make test` in this directory to execute all these unit tests and get reports from them if they fail
 * Add a single unit test to the directory which tests level_parser.y and the input it should & shouldn't accept


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4883 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 18:44:01 +00:00