Enno Rehling
238a0e22f2
Merge branch 'test-alliance' of https://github.com/ennorehling/eressea into ennorehling-test-alliance
...
Conflicts:
src/util/CMakeLists.txt
2016-08-08 08:46:09 +02:00
Enno Rehling
61acd40424
Merge pull request #512 from stm2/dragon_growl
...
Dragon growl
2016-06-11 23:16:23 +02:00
Steffen Mecke
c5014fd766
integrated Ennos suggestions for dragon growls
...
Dragons now growl 20% more elegantly!
2016-06-11 13:47:38 +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
Steffen Mecke
cafa29426f
simplified message_test
2016-05-31 10:37:01 +02:00
Enno Rehling
11ae7dd55e
add a test for default_order, so I can change it.
2016-04-09 18:49:25 +02:00
Enno Rehling
80b14048be
remove some unused code from alliances
...
start writing test coverage
2016-04-08 19:45:27 +02:00
Enno Rehling
87b09cd3c6
refactor tests to use test locale where possible
2016-03-24 13:01:47 +01:00
Enno Rehling
aba0be505e
refactor many tests to use the test locale instead of building their own
2016-03-24 13:01:47 +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
e75843e5c1
learn_skill tests were unstable because of random progress (disable it)
2016-03-24 13:01:40 +01:00
Enno Rehling
c91da12883
refactor demon_skillchange to use learn_skill
...
Also extracting it into the study module. No idea yet how I am going to sense this for a test, so the test currently does nothing.
2016-03-24 12:59:50 +01:00
Enno Rehling
1920dde717
memory leak: at_keys had no dtor
2016-03-10 21:54:53 +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
57085ea47b
gcc fix, disable test properly
...
TBD:plane.watchers
2016-02-18 08:11:39 +01:00
Enno Rehling
23e57c6bff
fix missing translation error messages during tests.
2016-02-01 14:06:56 +01:00
Enno Rehling
9bf1059d8a
trying to make tests not throw out so many ERROR log mesages, commenting on some of them.
2016-01-29 17:49:27 +01:00
Enno Rehling
729c4ceea1
increase error-logging from unit tests.
...
suppress some unrelated errors.
2016-01-28 16:00:36 +01:00
Enno Rehling
b6d44410b7
make the password pseudo-private to faction.c
2016-01-12 06:46:51 +01:00
Enno Rehling
20063e0e0e
fix errors in the order of cleanup
2016-01-11 18:03:53 +01:00
Steffen Mecke
703edb676c
facility to inject a non-random random generator
...
This should be handy for writing tests that make use of randomization.
2015-12-08 17:57:23 +01:00
Enno Rehling
1d57bf527d
Merge branch 'master' into develop
...
Conflicts:
src/battle.test.c
src/buildno.h
2015-12-05 17:27:04 +01:00
Enno Rehling
62ee1468b8
https://bugs.eressea.de/view.php?id=2166
...
* fix magic resistance calculation in calculate_armor.
* add related tests.
* refactor BF_CANATTACK -> BF_NO_ATTACK because it is easier.
2015-12-05 17:17:21 +01:00
Enno Rehling
b3e7fa63e0
Merge pull request #396 from stm2/spell_parameters
...
fixed treatment of spell parameters (bug 1867)
2015-12-03 11:04:57 +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
c85e489f4f
Merge branch 'monster_leftovers' of https://github.com/stm2/server into stm2-monster_leftovers
...
Conflicts:
src/kernel/unit.c
src/laws.test.c
src/monsters.c
2015-11-25 14:25:42 +01:00
Enno Rehling
fe173e9551
refactor: make sure global.paramteres is used only inside config.c
2015-11-22 12:24:27 +01:00
Steffen Mecke
afd44fc50a
fix test interdependence; set silver weight to 1
2015-11-19 15:29:04 +01:00
Steffen Mecke
a366cd4b17
tests for plan_monster
2015-11-17 12:12:06 +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
Steffen Mecke
f9c2994de1
fixing memory bug
2015-11-13 15:52:32 +01:00
Steffen Mecke
f3972a2390
prepared test for nr_spell
2015-11-13 00:57:14 +01:00
Enno Rehling
ea8721367a
test and fix shock trigger.
...
https://bugs.eressea.de/view.php?id=2154
2015-11-09 19:43:51 +01:00
Enno Rehling
318820fb00
eliminate use of test_create_world
2015-11-07 23:49:45 +01:00
Philipp Dreher
29173887b6
test_create_castorder can take spelllparameters now too
2015-11-02 17:09:16 +01:00
Philipp Dreher
0e8365c802
moved convenience function for convenience
...
the formerly static function test_create_castorder is now available for
general usage via tests.h/.c
2015-11-02 16:12:56 +01:00
Enno Rehling
d4655ee88a
leak: do not create new message_type objects in test_cleanup
2015-10-15 08:29:20 +02:00
Enno Rehling
e6f2864327
leak: duplicate assignment to building_type.name in tests
2015-10-14 14:10:35 +02:00
Enno Rehling
2abdba9e8a
refactor free_messagelist, fix leak in test_merge_split
2015-10-14 14:08:50 +02:00
Enno Rehling
8e9e9c9c0f
eliminate leak from duplicate call to test_create_buildingtype
2015-10-14 12:21:13 +02:00
Enno Rehling
a3210aaed7
leak: free per-locale cached order data (has additional refcount)
2015-10-13 23:25:44 +02:00
Enno Rehling
6de604701d
add some test coverage for name_cmd (not covering all error cases yet)
2015-10-13 13:56:58 +02:00
Enno Rehling
7e2364c296
test for actual piracy ship movement
...
refactor storm check, run less code when disabled
fix ship creation in tests
2015-10-12 19:40:20 +02:00
Enno Rehling
dcf6c28b0e
testing all the error cases for PIRACY
2015-10-12 13:27:39 +02:00
Enno Rehling
936c201d0b
Merge pull request #312 from eressea/master
...
pull latest changes from master into develop
2015-10-11 16:47:29 +02:00
Enno Rehling
403b8a2e7e
add mail_cmd tests for REGION
2015-10-11 12:44:22 +02:00
Enno Rehling
1e75255d51
allow disabling skills through json
2015-09-12 17:43:31 +02:00
Enno Rehling
44eb3a4f58
disable keywords through JSON configuration
2015-09-12 17:06:55 +02:00
Enno Rehling
f0e255924f
add a unit test for add/free prefixes. fix bad free_prefixes call site.
2015-09-12 12:41:04 +02:00