Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
ddc7707cde
add a failing test for bug 2266
2016-12-16 17:16:10 +01:00
Enno Rehling
95954fb386
start writing a test (WIP).
2016-12-16 07:29:43 +01:00
Enno Rehling
19a0c2ddb3
quelling some static analysis complaints.
2016-11-19 20:57:10 +01:00
Enno Rehling
8597e8b16a
move guard test to guard.test.c
2016-10-30 05:39:25 +01:00
Enno Rehling
a42bd9c3bf
remove the BLD_WORKING flag.
...
it's all about BLD_MAINTAINED now.
fix region.blocked (Lua property).
2016-08-21 20:12:28 +02:00
Enno Rehling
78fa6d3a47
remove the SAIL_INTO flag
2016-06-10 20:55:27 +02:00
Enno Rehling
f08957b513
test target selection rules for drifting ships.
2016-06-10 18:24:18 +02:00
Enno Rehling
87b09cd3c6
refactor tests to use test locale where possible
2016-03-24 13:01:47 +01:00
Enno Rehling
267dafcee5
very basic tests for teach and study
2016-03-24 13:01:43 +01:00
Enno Rehling
be6a7a5e39
refactor test_create_locale
...
- create a mostly functional locale for testing
- use it for test factions
refactor learn_skill injection
- use days, not chance
- fix or mutilate broken tests
2016-03-24 13:01:42 +01:00
Enno Rehling
349a67ece3
memory leak: test_create_shiptype and coasts, again
2016-03-11 09:50:18 +01:00
Enno Rehling
5fed36903c
some drmemory fixes
...
some tests leaked.
current test_eressea reports:
41 unique, 41 total, 3778 byte(s) of leak(s)
120 unique, 270 total, 5615 byte(s) of possible leak(s)
2016-02-25 10:16:50 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Steffen Mecke
eae87bc7f1
fix null pointer access, bug2169
2015-11-29 21:06:35 +01:00
Enno Rehling
4b7cb824bd
Merge branch 'massive_overload' of https://github.com/stm2/server into stm2-massive_overload
...
Conflicts:
src/move.c
src/tests.c
2015-11-27 12:40:17 +01:00
Enno Rehling
0410581907
Merge branch 'market_tests' of https://github.com/stm2/server into stm2-market_tests
...
Conflicts:
src/move.test.c
src/study.c
2015-11-26 18:42:23 +01:00
Enno Rehling
dcfc1d1f15
Merge pull request #406 from ennorehling/critbit-params
...
config_get/config_set refactoring, kill cache logic
2015-11-23 12:25:16 +01:00
Enno Rehling
b05fe9316a
introducing config_set and config_get so we don't have to refer to globals.parameters everywhere
2015-11-22 10:33:31 +01:00
Steffen Mecke
afd44fc50a
fix test interdependence; set silver weight to 1
2015-11-19 15:29:04 +01:00
Steffen Mecke
a6757ecf9d
Merge branch 'develop' into massive_overload
...
Conflicts:
src/move.test.c
2015-11-19 14:54:14 +01:00
Steffen Mecke
92ee0f24a4
tweaked parameters for massive overload
...
so ... many ... configuration parameters
scrubbed lua test
2015-11-19 12:36:15 +01:00
Steffen Mecke
acb45e079d
test commit for travis
2015-11-17 17:34:03 +01:00
Steffen Mecke
a7a82662b7
reduce maximum overload damage to 38%
2015-11-17 15:47:43 +01:00
Steffen Mecke
b34fca4633
hopefully fixing travis build (thanks, valgrind)
2015-11-16 14:40:18 +01:00
Steffen Mecke
4fdb9e86e7
test for follow ship error msg
2015-11-16 12:51:34 +01:00
Steffen Mecke
5326bbd9e4
refactored inside_building/building_is_active/active_building
2015-11-16 02:13:48 +01:00
Steffen Mecke
3a18384ddb
overfull ships do not drift but take damage
...
http://bugs.eressea.de/view.php?id=2157
removed exploit:
ships more than 2 times over their ship type's capacity do not drift but take 30% to 100% damage
2015-11-15 12:43:05 +01:00
Enno Rehling
acda22ae1b
leak: free route at the end of the test
2015-10-14 12:03:19 +02:00
Enno Rehling
d153846769
test: ageing ship trails works as expected. cannot find a bug here.
...
Conflicts:
src/move.test.c
2015-09-25 14:10:25 +02:00
Enno Rehling
f07802bab5
add a test to check that move_ship creates a trail when given a route
...
Conflicts:
src/move.test.c
2015-09-25 14:09:22 +02:00
Enno Rehling
71c4cb53c0
add missing guard.h include everywhere, remove duplicate prototypes from config.h
2015-09-12 23:41:37 +02:00
Enno Rehling
d08959f9a8
fix German spelling in a message,
...
add a test for is_guarded.
2015-08-30 14:52:42 +02:00
Enno Rehling
ae9fb399f3
unit tests walkingcapacity, configurable trollbelt effect
2015-04-14 02:32:01 +02:00
Enno Rehling
c39be8d599
more casual leak removal.
2014-12-31 01:00:10 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +01:00
Enno Rehling
595dc1334e
fix new harbor code, add tests.
...
- alliances were checked in the opposite direction
- code crashed when harbor has no owner
2014-10-03 21:26:11 +02:00
Enno Rehling
ae9ed99cd9
fixing linux build
2014-08-29 07:47:47 +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