Commit graph

329 commits

Author SHA1 Message Date
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