Enno Rehling
da9d3d3573
Merge branch 'master' into develop
2018-10-29 20:10:51 +01:00
Enno Rehling
be84c13a72
remove test_inject_messagetypes(), make that the default behavior in tests.
2018-10-28 21:28:05 +01:00
Enno Rehling
b22d838a57
move gamedata.c to kernel
2018-09-29 13:21:46 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
42e7e98ccf
Default to reporting missing message types during tests as an error, grandfather in some tests with test_inject_messagetypes();
2018-01-14 17:08:46 +01:00
Enno Rehling
75f41a7169
fix crashes on 64-bit systems (not all 0s are created equal).
2018-01-14 09:38:26 +01:00
Enno Rehling
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
c99e92db20
kill curse cache logic, it was a bad idea.
...
ct_find is almost never what we want to do.
2017-08-21 19:43:35 +02:00
Enno Rehling
293cb78de8
BUG 2356: add a failing test.
2017-08-18 19:36:17 +02:00
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
2fbc7a44d5
add missing tests for recent failures.
2016-10-23 13:02:53 +02:00
Enno Rehling
eb8376ef70
allow caching of ct_find results
2016-09-19 03:52:10 +02:00
Enno Rehling
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
3c272fd53f
fix reading and writing curses from test (crash)
...
fix read_game/write_game incomaptibility.
2016-02-26 17:54:25 +01:00
Enno Rehling
8a9d617aa3
read_referernce takes a gamedata object.
...
with all the trimmings that requires,
this is for github issue $479
2016-02-24 11:53:22 +01:00
Enno Rehling
3e584245c0
attrib.read gets a gamedata object
...
stop using global.data_version
for github issue #479
2016-02-24 11:44:19 +01:00
Enno Rehling
7f6ced99b9
attrib.read gets a gamedata object (remove dependency on global.data_version)
2016-02-24 11:44:18 +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
4fc5ac7740
there is a memory leak in test_long_order_hungry, but the root cause lies deeper
2015-10-14 12:51:45 +02:00
Enno Rehling
f7c1efc287
memory error seems to be in test_write_flag (curse-hashing?), not in the new ones.
2015-09-09 11:22:35 +02:00
Enno Rehling
13a358005f
fix memstream-based tests, new storage submodule.
2015-05-31 11:03:44 +02:00
Steffen Mecke
ab1376d212
trying to test curse_write/read
2015-05-13 12:05:45 +02:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
e8650b5b4a
test good and bad dreams, fix magicstreet test.
2015-01-12 18:22:59 +01:00
Enno Rehling
0bd1a8d6f4
add a utility function to test for message types.
2015-01-12 17:50:10 +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
125fd519a8
rename test files.
...
add tests for keyword.c, incomplete.
2014-06-16 08:01:59 -07:00