[Commits] [wesnoth/wesnoth] aba8b3: add victory check to replay test in unit tests
GitHub
noreply at github.com
Thu May 8 22:26:44 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: aba8b3679f725254c781bfd41922a4f0df144fa6
https://github.com/wesnoth/wesnoth/commit/aba8b3679f725254c781bfd41922a4f0df144fa6
Author: Chris Beck <render787 at gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
M src/game_controller.cpp
Log Message:
-----------
add victory check to replay test in unit tests
Commit: 9df86d54204b5944b4caaf3b066530ca88de6adf
https://github.com/wesnoth/wesnoth/commit/9df86d54204b5944b4caaf3b066530ca88de6adf
Author: Chris Beck <render787 at gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
A data/test/scenarios/unit_test_4.cfg
Log Message:
-----------
add unit test 4, which AI wrote in github comments
Commit: 40a1e7d3fa74d59e7bba2d23fc535d9aa0a7f499
https://github.com/wesnoth/wesnoth/commit/40a1e7d3fa74d59e7bba2d23fc535d9aa0a7f499
Author: Chris Beck <render787 at gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
M src/ai/testing/ca_testing_recruitment.cpp
M src/play_controller.cpp
M src/playsingle_controller.cpp
Log Message:
-----------
redirect noninteractive ai test info from std::cout to log channel
I named the log channel "aitesting" and in three files,
playcontroller.cpp,
play_singlecontroller.cpp,
ca_testing_recruitment.cpp,
bound this to "LOG_AIT" and substituted where I saw std::cout.
This macro could be redefined to std::cout to restore previous
behavior.
Feel free to rename the channel if you don't like this name.
The reason I made this change is so that this info does not
appear when we are running noninteractive unit tests.
Commit: d1dd5083fb28e6b358199d741efdf8e1375365e8
https://github.com/wesnoth/wesnoth/commit/d1dd5083fb28e6b358199d741efdf8e1375365e8
Author: Chris Beck <render787 at gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
M src/game_events/action_wml.cpp
Log Message:
-----------
add wml commands 'issue_attack_command', 'issue_move_command'
This is the initial commit for these WML handlers.
The purpose of these is to provide more or less raw interfaces
to the (synchronized) implementations of attacks, moves, used
when a user clicks to make such an order, or when an ai issues
such an order.
This is useful for creating noninteractive tests, as it allows
to test the outcomes of these kinds of things without having
to figure out how to coerce an ai to do them. Sure, you can
make the same effects other ways in WML, but the point is
to test the code path that is actually used in a game.
Commit: 82317ac45246459c14ea61e3c36dded1680fefc4
https://github.com/wesnoth/wesnoth/commit/82317ac45246459c14ea61e3c36dded1680fefc4
Author: Chris Beck <render787 at gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
M wml_unit_tests
Log Message:
-----------
add unit test 4 to the script
Commit: 636d9b30eff05cf3a66a549e1bad8cfd78450734
https://github.com/wesnoth/wesnoth/commit/636d9b30eff05cf3a66a549e1bad8cfd78450734
Author: Chris Beck <render787 at gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
M changelog
Log Message:
-----------
update changelog
Compare: https://github.com/wesnoth/wesnoth/compare/bea126317bc3...636d9b30eff0
More information about the Commits
mailing list