There is some WML in data/test/scenarios/ that causes wmlindent to
misbehave (bug #22264 and possibly others awaiting a more thorough
diagnosis), so that subdir is not part of this commit.
wmlindent chokes on these
commit made with the following command:
find data/test/scenarios/ -type f -print0 | xargs -0 sed -i
"s|^\([[:space:]]*\[\/.*\]\)[[:space:]]*)\}[[:space:]]*$|\1\n)}|"
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 cc138a4ed96f3ac1f8c5130aa6842d1429013da4
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.
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.
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
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.
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.