Commit Graph

62 Commits

Author SHA1 Message Date
Enno Rehling 9e901b47b6 I'm getting reports of leaks for umlaut.c based structures and configuration?
This is not actually solving those, though.
clean up report directory, fix .bat file.
2016-08-18 20:07:16 +02:00
Enno Rehling 39a284b423 quick and dirty .bat file to run drmemory on the server. 2016-08-18 19:46:29 +02:00
Enno Rehling e6f3dc8b85 Merge branch 'master' into develop
Conflicts:
	scripts/run-turn.lua
	src/buildno.h
	src/kernel/group.c
	src/kernel/save.c
	src/kernel/save.test.c
	src/kernel/version.h
	src/util/password.c
	src/util/password.test.c
	tests/run-turn.sh
2016-02-23 10:47:33 +01:00
Enno Rehling 7807e9e710 fix integration test data file 2016-02-22 21:35:37 +01:00
Enno Rehling 77ed6f3722 add missing file 2016-02-22 20:48:24 +01:00
Enno Rehling 4f7e1cb80f integration test update.
- have a faction that quits,
- try to reload the datafile we just wrote.
2016-02-22 20:47:06 +01:00
Enno Rehling 7fe07439f5 fix write_faction_reference, check for f->alive in other places
TODO:
1. I added some new TODOs
2. What happens to morale when region owners die?
3. Needs tests
2016-02-22 20:47:06 +01:00
Enno Rehling 88f3a46142 generate htpasswd files, understand apr1 hashes in confirmation script 2016-02-10 14:12:38 +01:00
Enno Rehling 91ca77bc48 passwd is no longer written 2016-02-09 18:34:36 +01:00
Enno Rehling 50f22d7c2f debug output 2016-02-09 18:20:01 +01:00
Enno Rehling ca6448ec23 re-enable failing valgrind check with more flags 2016-02-09 17:18:09 +01:00
Enno Rehling 7b4b879cc1 quick addition to a_removeall
additional testing for attributes
2016-02-06 10:56:08 +01:00
Enno Rehling 8a3bb35987 eliminate global log_flags, revert the mode arguments for fopen.
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling c16beeef08 TODO: find out which test left those files behind. 2015-12-05 18:47:11 +01:00
Enno Rehling d780988862 valgrind the unit tests for good measure 2015-11-07 18:04:11 +01: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 a3c843f90d clean up after tests
update runtests.bat script for windows development in VS2015
2015-10-11 14:57:35 +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 dd9420fc38 move at_guard into guard module as well 2015-09-12 23:38:31 +02:00
Enno Rehling 8fa3234159 Merge branch 'master' into develop
Conflicts:
	tests/runtests.bat
2015-09-12 21:00:28 +02:00
Enno Rehling a027139057 remove global variable `verbosity` in favor of static in main.c (use log_* functions everywhere) 2015-09-12 20:58:09 +02:00
Enno Rehling 42f1030251 separate test script for E4:
even though it has mostly the same rules, it does not have xmastrees, and loads a different config
remove dead `inactivefaction` function, we have no use for the file it creates.
2015-09-12 14:10:08 +02:00
Enno Rehling c731edbfed remove prefixes.xml from E4, too 2015-09-12 13:38:31 +02:00
Enno Rehling 3003b7fc61 remove prefixes from E3
move prefix test to common.lua
2015-09-12 13:37:43 +02:00
Enno Rehling 1a9dd531c5 use boolean values in E2 config.
add a runtests.bat file for windows developers.
make some tests clean up after themselves (os.remove on files they create).
2015-09-11 09:34:38 +02:00
Enno Rehling 84aa0beee5 create a more complex integration test for a unit that sails with a
ship (and sees more regions along the way).
2015-09-07 16:11:58 +02:00
Enno Rehling aa394feb80 make test data humans, not vampunicorn (what happened there?) 2015-09-07 15:57:08 +02:00
Enno Rehling 2e11994155 hard-code the expected number of entries in the CR for a tighter test. 2015-09-07 15:40:12 +02:00
Enno Rehling bf86b1d66a add missing .sh files to git (previously blocked by .gitignore)
add an integration test for run-turn.lua
2015-09-07 15:27:30 +02:00
Enno Rehling 47ff4ca9dd use suppression file for old ubuntu 2015-08-05 18:19:17 +02:00
Enno Rehling 487aaede16 install valgrind (can we?) and check for it when runnign tests 2015-08-05 18:14:57 +02:00
Enno Rehling 75235a11fc update test data to include ships and buildings 2015-08-05 18:03:59 +02:00
Enno Rehling 76740192f8 check that the CR contains reasonable entries 2015-08-05 17:42:36 +02:00
Enno Rehling ff3fdb62cd enable valgrind suppressions for QA previews 2015-06-17 07:30:06 +02:00
Enno Rehling 8080adcd2b travis build now runs a full turn for acceptance.
* new cmake module (lus/tolua changes).
* valgrind suppression for glibc strtod problems.
2015-06-09 08:39:22 +02:00
Enno Rehling b7f6bea569 suppress zlib bugs on Travix boxen 2015-05-21 18:03:24 +02:00
Enno Rehling f69d46404c remove cruft from ini file 2015-05-21 13:23:07 +02:00
Enno Rehling 88f454e1f7 failed tests abort runtests and return an error code
small test world for (future) valgrind tests.
2015-05-21 08:29:22 +02:00
Enno Rehling 1af9a9aeda delete old tests folder (moved to scripts/) 2014-08-07 13:24:46 +02:00
Enno Rehling b2b35fd9d0 add a test for the E3 reduced give quota.
foreign units receive only 50% of silver given to them.

Conflicts:
	tests/pool.lua
2014-07-07 03:41:33 +02:00
Enno Rehling 9e2e7bfe97 test giving silver from the pool 2014-07-06 01:13:09 -07:00
Enno Rehling 4a8707b06d fix a fall-through in jsonconf causing an error message.
add tests for pool, not working because of missing GIVEITEM on
JSON-configured races (TBD).
2014-07-05 18:21:20 -07:00
Enno Rehling 8fc137d780 Expose the "working" flag for buildings to Lua.
Test working vs. unpaid harbour landigns with a ship.
2014-07-04 22:12:12 -07:00
Enno Rehling b5439a1279 fix line/column calculation for JSON Errors.
+ start building a test for http://bugs.eressea.de/view.php?id=1692
2014-07-02 21:17:31 -07:00
Enno Rehling 927ada92b6 improve construction data in JSON.
test castle naming function
2014-06-30 19:21:42 -07:00
Enno Rehling 28d2984bc8 disable castle tests, they aren't good yet 2014-06-29 13:29:12 -07:00
Enno Rehling 0187567010 disable castle tests 2014-06-28 16:58:56 -07:00
Enno Rehling a48cca5db8 building naming function configured from JSON (this needs work).
started writing tests for castles.
2014-06-28 16:55:28 -07:00
Enno Rehling 9b01b71a19 config returns a value, so we can assert corrrect JSON syntax 2014-06-27 07:36:18 -07:00
Enno Rehling 7012740172 testing rules for riding 2014-06-26 23:41:07 -07:00