Update formatting.
Refactor the ttexture image loading constructor.

The image to surface conversion part has been moved to its own helper
function. This will be used for a constructor using a SDL_Surface as
base.
Add a texture constructor taking a SDL_Surface.
Add a texture constructor taking a surface.
Add a draw function for the window.
Add a clear function to the window.

Also clear the window in the constructor.
Adds a basic version of the SDL2 test tool.

The tool is used to test parts of the new SDL2 code, without the need
to directly modify the main Wesnoth code.
Implement the window command.
Merge branch 'SDL2_test_tool'

The branch contains several improvements for the SDL2 code and adds a
small tool to test the code outside of the main code.
Fix bug #22030: correct index of weapon special disable in attack GUI
Remove "controller" attribute if it is now longer needed.

In case "controller" was set to some number, we now remove it after it is no
longer needed to avoid locking side to non-existing controller type.

This fixes bug #21964.
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.
Merge branch 'master' of https://github.com/wesnoth/wesnoth
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.
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.
fixup cleanup wml test script

Also only use --validcache conservatively in the -u mode.

Further fixup some comments.

This fixes up commit 5b87baf1e46939205454b803ef7b2525d494432d
wml test script can recieve list of tests as an argument

Also, fixup documentation.
better handling of error logs for wml unit test script

error logs get pooled in errors.log
This is necessary because we don't stop testing when we get an
error anymore.