33 Commits

Author SHA1 Message Date
Chris Beck
a273be5520 add a wml unit test for {CLEAR_VARIABLE} macro 2014-12-29 00:39:14 -05:00
Chris Beck
2239ab3f65 add a unit test for lua get_sides return object 2014-12-26 01:07:57 -05:00
Chris Beck
d1d0990235 add a unit test for wesnoth.require 2014-12-06 23:32:29 -05:00
Chris Beck
69d7924df5 add a wml unit test for lua dofile 2014-12-05 15:30:12 -05:00
Chris Beck
01fa3ff298 register the tests of {MOVE_UNIT} macro with the test schedule 2014-10-18 16:02:14 -04:00
Chris Beck
acc534d86b disable a wml unit test that occasionally takes too long
"characterize_pathfinding_one"
2014-10-10 18:14:33 -04:00
Chris Beck
6cb9c518c7 Merge branch 'has_ally_master'
Conflicts:
	wml_test_schedule
2014-07-12 11:05:18 -04:00
Chris Beck
5a64d43fae add [has_ally],[has_enemy] tags for standard side filter
Unlike [allied_with] and [enemy_of], these will match if only if
there is *any* ally or enemy matching the filter. The other versions
of the tag match only if all sides matching the filter are
allied / opposed.

This commit also adds a unit test that checks that it works as
expected.
2014-07-12 10:33:56 -04:00
Chris Beck
72d91daed0 fixup [filter_vision] tags
This is the master version of PR #237, with unit tests.
2014-07-12 09:59:24 -04:00
Chris Beck
14808e186b add unit test for an object-based "feeding" ability
based on tekelili's forum post here:
http://forums.wesnoth.org/viewtopic.php?f=8&t=40449#p572206
2014-06-21 22:08:32 -04:00
Chris Beck
5e9d356c9f unit tests for defining custom event handlers in events and firing 2014-06-21 16:58:40 -04:00
Chris Beck
f43cb8edc2 add tests for scenario ending by killing enemy leader
Tests killing, killing on retal, and levelling up on killing,
in various configurations.
2014-06-07 17:21:00 -04:00
Chris Beck
3a102774b5 fixup pathfind tests, add reachability tests 2014-05-28 01:31:09 -04:00
Chris Beck
6cb367594b test [store_locations], and try to characterize [find_path] 2014-05-27 20:30:30 -04:00
Alexander van Gessel
4d7de12e47 Unit tests for deterministic unit facings 2014-05-27 17:30:13 +02:00
Chris Beck
f664b4e5af add test of [modify_unit] facing= attribute 2014-05-26 23:34:48 -04:00
Chris Beck
b272239ea9 add replace_schedule in prestart test 2014-05-26 20:14:16 -04:00
Chris Beck
ec5ec4fb38 add tests of modify_turns tag 2014-05-26 20:02:05 -04:00
Chris Beck
7cc62266e9 unit tests for giving gold in prestart 2014-05-26 19:06:00 -04:00
Chris Beck
d129d80ebe Add unit tests for check victory function
Mainly focused on defeat_condition field right now... woudl be good
to add some that test victory_when_enemies_defeated.
2014-05-22 17:21:53 -04:00
Chris Beck
86fea3c551 add unit test for berzerk + firststrike interaction 2014-05-16 23:53:28 -04:00
Chris Beck
af4b671266 add unit test for basic unit map functionality 2014-05-16 22:23:48 -04:00
Chris Beck
d7374f4080 add test_move unit tests 2014-05-16 21:25:23 -04:00
Chris Beck
2c486ed699 add tests of the [move] skip_sighted_option
This is partially a follow up of previous commit
403af25e9da77dbf7aa295ccd901af3bdcd6f889
2014-05-16 19:35:06 -04:00
Chris Beck
94fdab4389 add sighted events unit tests 2014-05-16 18:09:52 -04:00
Chris Beck
89f67d1a5d add fixed_lua_random_replay test 2014-05-13 21:27:17 -04:00
Chris Beck
07241761f8 fixup wml_test_schedule
the break_replay test now successfully fails.
2014-05-13 21:04:19 -04:00
Chris Beck
92bbf8c02c add "break replay with lua random" test 2014-05-13 20:58:42 -04:00
Chris Beck
c52e5ed410 add sanity checks for unit test mechanism
also, reorganize the test schedule file
2014-05-11 01:57:49 -04:00
Chris Beck
e3d47b5f02 rename wml unit tests
tests should have helpful names and not numbers
2014-05-11 01:38:09 -04:00
Chris Beck
5b87baf1e4 cleanup wml test script
Only start using --validcache with wesnoth after at least one test
has passed.

Use --kill-after flag of unix timeout, so that if TERM fails to
stop wesnoth, a KILL will be issued.

Fixup comments.
2014-05-10 16:30:02 -04:00
Chris Beck
07a1654227 add unix timeout option to wml test script, enable empty_test
Adds an option to the new wml test script, to use the unix
timeout command instead of wesnoth's built-in one. This is because
the built-in one is very slightly unreliable... there's a reason
killthread was deprecated in SDL unfortunately. Will leave it for
UMC but on travis will replace with unix timeout.

The unix timeout one seems consistent enough that I will enable
the empty_test timeout check for travis.

Also, adds a help listing to the wml test script.
2014-05-10 16:06:07 -04:00
Chris Beck
b56b34d2a1 add new wml tests script
Also, redirect some output from cout to cerr in the game...
this somewhat breaks the old script.

The old script is renamed .old

Travis points to the new script.
2014-05-10 14:34:02 -04:00