Enno Rehling
df5ab02689
Merge branch 'peasantgrowth_acceleration' of https://github.com/stm2/server into stm2-peasantgrowth_acceleration
2015-01-30 22:11:10 +01:00
Enno Rehling
490782e750
add some simple tests for messages, prior to any refactorings.
2015-01-15 16:40:19 +01:00
Steffen Mecke
51d52aaf7f
implementing a much faster version of peasant growth calculation
2015-01-15 02:53:15 +01:00
Enno Rehling
798b3d6ad6
Implement tests for magicpath. They are failing (Bug 2066).
...
Also move spell and race initialization code from being server-only into game_init, where tests can use it.
2015-01-12 08:18:41 +01:00
Enno Rehling
c39be8d599
more casual leak removal.
2014-12-31 01:00:10 +01:00
Enno Rehling
5cdc85f6bf
start to get rid of getstrtoken(), which uses an internal static buffer and causes horrible bugs when called multiple times.
2014-12-22 14:21:24 +01:00
Enno Rehling
78f4dfac1d
Rewrite the test framwework to report individual suites.
...
Stop leaking CuTestSuite objects.
2014-12-12 12:19:21 +01:00
Enno Rehling
188e003f7c
retrofit tests for alliances.
2014-12-09 14:43:11 +01:00
Enno Rehling
38a0a02565
refactor tests for giving, add test for GIVE HERBS.
2014-11-03 08:33:07 +01:00
Enno Rehling
483a2ba3de
add missing tests for groups.
2014-10-31 19:15:26 +01:00
Enno Rehling
eb1d73e2c2
basic test for tolower function.
2014-10-19 06:42:40 +02:00
Enno Rehling
74a6bd72c2
additional testing.
2014-10-18 14:16:26 +02:00
Enno Rehling
4527ffdda2
refactoring and tests for wormhole module.
2014-09-29 23:19:59 +02:00
Enno Rehling
cf1f3972b6
cleaning out config.c, there is too much code in there.
...
rules should be in their own modules. here:
upkeep is a concept all by itself, should have its own tests, etc.
movement code should be in move.c.
cleaning up some superfluous include directives.
2014-08-31 16:50:37 +02:00
Enno Rehling
932a615837
refactoring: special directions into their own file (vortex.c).
...
moving spells.c out of spells.
figured that movewhere should be in move.c
2014-08-27 21:30:24 +02:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
d435c13bfc
adding more tests.
...
test for build()
test for scale_number()
update submodules
2014-08-26 20:06:49 +02:00
Enno Rehling
2211111b29
Remove a German-only piece of text, to reduce the footprint of fleets in the report a little.
...
Fix English score message in NR.
Small fixes to meet Visual Studio warning level 4.
2014-08-25 00:45:32 +02:00
Enno Rehling
a3037950ff
fix a bug in the escape_string function.
...
remove static return variable from escape_string.
add test coverage.
2014-08-24 23:58:31 +02:00
Enno Rehling
4c00777553
make race::_name a string, not an array of strings. add a test for rc_name.
2014-08-24 23:58:29 +02:00
Enno Rehling
acfe72f24e
add a test for get_monsters().
...
I want to make sure I don't break this in the future.
2014-08-20 07:00:58 +02:00
Enno Rehling
cef068fe9b
cut the number of allocations for order-data in half.
...
started writing a test file for orders.
2014-08-16 23:26:31 +02:00
Enno Rehling
38352ef3bf
add the build number to saves.
...
this should make future debugging sessions easier, telling us what bugs were or were not fixed at the time of an incident.
added a test to make sure data file can be read/written, and at a minimum, sets global data-version.
also clean up test framework a bit, and introduce a helpful macro.
2014-08-14 05:06:36 +02:00
Enno Rehling
f14264e3bb
test coverage for can_steal.
...
add a default message for when no messages are loaded, so that msg_feedback/msg_message doesn't return NULL when XML has not been laoded.
initialize some core stuff before running tests (there probably needs to be more).
2014-07-05 20:14:11 -07:00
Enno Rehling
162375842b
introducing new callback system
2014-07-03 05:10:53 -07:00
Enno Rehling
89e7a7826f
added some tests for building buildings.
2014-06-28 16:19:46 -07:00
Enno Rehling
07d10d9ab0
add tests for get_param functions
2014-06-25 07:22:39 -07:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
125fd519a8
rename test files.
...
add tests for keyword.c, incomplete.
2014-06-16 08:01:59 -07:00
Enno Rehling
a9f0538d8e
keyword_t and direction_t are moving into their own module.
...
direction parser gets new initialization function, for use in jsonconf later.
add unit tests for directions.
2014-06-15 18:34:39 -07:00
Enno Rehling
d503937999
working on making json config understand ships and buildings.
...
new tests in progress.
remove giveitem.c attribute, the name clashed with a trigger,
and it was only part of an arena that is gone from the game, I think.
2014-06-12 22:14:07 -07:00
Enno Rehling
dceff481d7
json config files, beginning with races
2014-06-07 22:17:48 -07:00
Enno Rehling
fc1a56d46a
rename export to json.
...
this may or may not have been a good idea, but for now, that is what I
choose.
2014-03-14 22:30:07 -07:00
Enno Rehling
dd3de9a1d7
bindings for the json export.
...
+ unit test (incomplete).
2014-03-13 15:33:44 +01:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00