Commit graph

147 commits

Author SHA1 Message Date
aquileia
8136065f75 Fix readme files about unit test scenarios 2014-05-19 17:13:27 -04:00
Chris Beck
ab29ba7e43 add map location rotate wml interface 2014-05-19 16:29:07 -04:00
Chris Beck
3f5350a5ef add wml relative dir query tag, and interactive test scenario 2014-05-19 14:35:07 -04:00
Chris Beck
86fea3c551 add unit test for berzerk + firststrike interaction 2014-05-16 23:53:28 -04:00
Chris Beck
4e16a998a2 refactor break_replay tests into one file 2014-05-16 22:54:03 -04:00
Chris Beck
8d161347bc refactor assert, return, two_plus_two, to each be one file 2014-05-16 22:45:54 -04:00
Chris Beck
bf2dda129c refactor sighted events test to be one file 2014-05-16 22:37:13 -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
9964be2849 fixup move_skip_sighted tests 2014-05-16 20:29:26 -04:00
Chris Beck
2c486ed699 add tests of the [move] skip_sighted_option
This is partially a follow up of previous commit
403af25e9d
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
9df026f8e8 move test_grunt_tod_damage map to a map file 2014-05-16 17:11:27 -04:00
Chris Beck
0201fe3247 put generic unit test map in its own file 2014-05-16 17:05:31 -04:00
Chris Beck
7b6a1ec74d fixup messed up whitespace and similar 2014-05-15 22:12:59 -04:00
Chris Beck
89f67d1a5d add fixed_lua_random_replay test 2014-05-13 21:27:17 -04:00
Chris Beck
92bbf8c02c add "break replay with lua random" test 2014-05-13 20:58:42 -04:00
Chris Beck
91d545c7d7 fixup test directory
C++ tests load from /data/test/ again, and the _main includes in
data/ and data/test/ are fixed up to accomodate this.

This fixes up cc138a4ed9
2014-05-12 11:43:55 -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
a37ec8bbdb make [command] [attack] handler a bit friendlier
Now, it won't warn about mismatch with gamestate when you don't
specify attacker_type or defender_type.

Simplify unit test 6 accordingly.
2014-05-10 22:41:54 -04:00
Chris Beck
654c066550 refactor test #6 to use [do_command] 2014-05-10 22:26:39 -04:00
Chris Beck
c611481e26 fixup readme.txt
fixed a typo, added a clarifying sentence about C++ / WML tests
2014-05-09 23:37:03 -04:00
Chris Beck
851519cd07 enable linger mode to unit test macros ASSERT, RETURN
I initially had linger mode off in the endlevel tags of these
macros, to make sure they didn't block the end of noninteractive
scenarios.

But it turns out its better to have it on. It doesn't block the
tests when they run noninteractively, and it means that if a test
fails, you can boot it up with --showgui, and then run :inspect
from linger mode to see what happened. If you don't have linger
mode, then even with --showgui the failed test closes out too
quickly.
2014-05-09 23:04:03 -04:00
Chris Beck
8f10e6e84c fixup whitespace in unit_test_5.cfg 2014-05-09 01:47:13 -04:00
Chris Beck
e96f6e3ef2 add unit tests 5 and 6
Unit test 5 checks that units placed at off-map coordinates end up
in the recall list of their side.

Unit test 6 checks that grunts (without traits) are doing the
right amount of damage at day, dusk, and night.

Also add these to the script.
2014-05-09 00:00:17 -04:00
Chris Beck
9df86d5420 add unit test 4, which AI wrote in github comments 2014-05-08 17:51:21 -04:00
Chris Beck
634ee2d1d8 add wml unit tests two and three
- test two tests a basic property of events
- test three tests unit placement on the map in
  case of a collision
2014-04-08 18:09:50 -04:00
Chris Beck
0797abd9ea add WML unit test examples, and include the test directory
add some trivial tests, and the _main.cfg files to ensure they are included
2014-04-08 18:09:32 -04:00
Chris Beck
a011738544 add WML macros for unit test scenarios
contains "generic_unit_test", "return" and "assert" macros
2014-04-08 18:09:18 -04:00
Nils Kneuper
89cfa516de applied utils/wesnoth-optipng:
Overall statistics (only for files with a smaller recompressed size):
  Original size: 9070 KiB on 449 files
 Optimized size: 8184 KiB
   Total saving: 885 KiB = 9% decrease
2012-08-25 08:18:19 +00:00
Mark de Wever
b5240e1bf9 Rewrite the blending algorithm.
The rewrite only has minor visual differences, ImageMagick's

`composite -compose difference'

shows no visual differences.

The change makes it possible to optimise the code on the ARM Cortex A8
using NEON instructions.
2012-03-31 14:45:23 +00:00
Mark de Wever
aa29be755d Added unit tests for blending images.
This test is added to test modifications of the algorithm. It also adds a
programme to create the test images. And the test images to test whether
the output of the algorithm remains the same after changing the algorithm.

loonycyborg can you add this new programme to scons.
2012-03-25 10:06:24 +00:00
Alexander van Gessel
54f98f5d9e s/{@/{/g on mainline WML. 2009-03-24 23:05:19 +01:00
Eric S. Raymond
4861e50155 Reindent mainline in preparation for 1.6. 2008-12-08 17:45:47 +00:00
Nils Kneuper
01c575209c add a textdomain declaration to every .cfg file...
...(via utils/change-textdomain -t)
2008-10-07 10:35:42 +00:00
Pauli Nieminen
5d756ba985 Hacked play_scenario test code to work for formula ai testing 2008-09-05 09:59:17 +00:00
Pauli Nieminen
e9fd73193a WIP test/play_scenario 2008-09-05 09:59:00 +00:00
Pauli Nieminen
69cb72e61c Leading space loading test case 2008-09-03 10:04:46 +00:00
Pauli Nieminen
ed2a9491b8 Added some empty lines to make reading easier 2008-08-29 16:16:05 +00:00
Pauli Nieminen
30a7dadec5 Fixed UMC loading with new caching code 2008-08-29 08:14:36 +00:00
Eric S. Raymond
318486ce4b Reindent most of the data tree in preparation for making wmlindent smarter. 2008-08-28 17:57:00 +00:00
Pauli Nieminen
b28f8077a4 Fixed test/_main.cfg to include correct paths for test data 2008-08-27 21:58:06 +00:00
Pauli Nieminen
43ca9ef2cc Created wesnoth-test domain for unit tests 2008-08-27 09:12:52 +00:00
Pauli Nieminen
0402b42f78 Fixed config test translation reset test to work 2008-08-25 17:52:58 +00:00
Pauli Nieminen
c934825607 Excluded data/test/ from tarball 2008-08-23 16:08:37 +00:00
Pauli Nieminen
ccc03df4b4 Moved test data to data/test/ 2008-08-19 08:34:38 +00:00