[Commits] [wesnoth/wesnoth] 637efb: fix whitespace

GitHub noreply at github.com
Fri May 2 13:48:15 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 637efb7af5db062dfb2f86aaecb50bf2b5ab1e03
      https://github.com/wesnoth/wesnoth/commit/637efb7af5db062dfb2f86aaecb50bf2b5ab1e03
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/game.cpp

  Log Message:
  -----------
  fix whitespace


  Commit: 42d4cbe9c8e4c52f5c326f1bfa9af4ff7de6c9d3
      https://github.com/wesnoth/wesnoth/commit/42d4cbe9c8e4c52f5c326f1bfa9af4ff7de6c9d3
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/commandline_options.cpp
    M src/commandline_options.hpp
    M src/game.cpp
    M src/game_controller.cpp
    M src/game_controller.hpp

  Log Message:
  -----------
  add command line option --unit, -u, to run scenario as a unit test

This is the initial commit for --unit, -u, unit test option.
This option is a modified version of --test, -t. Scenarios will
run in the same context essentially, but will terminate on
scenario end.

The exit code of wesnoth is 0 (PASS) if the scenario ended with
LEVEL_RESULT VICTORY, or LEVEL_RESULT NONE.

The exit code of wesnoth is 1 (FAIL) otherwise.

Higher exit codes may reflect a failure for a reason other than
the scenario ending in defate.


  Commit: bbbfc023f30d363405b2f7128162e3a7aab2ade0
      https://github.com/wesnoth/wesnoth/commit/bbbfc023f30d363405b2f7128162e3a7aab2ade0
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/game_controller.cpp

  Log Message:
  -----------
  make unit tests run headlessly

specifying --unit is similar to --nogui. that is, this check is
essentially ||'d in at all places where --nogui would be checked


  Commit: a011738544ffa7f9a0ab874dda23921517aa2e49
      https://github.com/wesnoth/wesnoth/commit/a011738544ffa7f9a0ab874dda23921517aa2e49
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    A data/test/macros/wml_unit_test_macros.cfg

  Log Message:
  -----------
  add WML macros for unit test scenarios

contains "generic_unit_test", "return" and "assert" macros


  Commit: 0797abd9ea4d9a771adb7496f1590caf9048dadd
      https://github.com/wesnoth/wesnoth/commit/0797abd9ea4d9a771adb7496f1590caf9048dadd
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M data/_main.cfg
    M data/test/_main.cfg
    R data/test/scenarios/_main.cfg
    A data/test/scenarios/empty_test.cfg
    A data/test/scenarios/fail_test_1.cfg
    A data/test/scenarios/unit_test_1.cfg

  Log Message:
  -----------
  add WML unit test examples, and include the test directory

add some trivial tests, and the _main.cfg files to ensure they are included


  Commit: 634ee2d1d871b19b3c73017563663f3495446e95
      https://github.com/wesnoth/wesnoth/commit/634ee2d1d871b19b3c73017563663f3495446e95
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    A data/test/scenarios/unit_test_2.cfg
    A data/test/scenarios/unit_test_3.cfg

  Log Message:
  -----------
  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


  Commit: 25e4e71e8795cd29395eba6a5e7287bcfdc06164
      https://github.com/wesnoth/wesnoth/commit/25e4e71e8795cd29395eba6a5e7287bcfdc06164
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M .gitignore
    A wml_unit_tests

  Log Message:
  -----------
  add wml_unit_tests test aggregator script

This bash script runs a sequence of WML unit test scenarios.
If all pass the result is 0.
If any fails, the result is 1, and the std::cerr stored in "error.log".
We also add error.log to the .gitignore list.

It shows how --timeout and --validcache may be used in such a script


  Commit: e5b39510540cb3bb68cfd9ef6f3a3a1094d2d534
      https://github.com/wesnoth/wesnoth/commit/e5b39510540cb3bb68cfd9ef6f3a3a1094d2d534
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/commandline_options.cpp
    M src/commandline_options.hpp
    M src/game_controller.cpp
    M src/game_controller.hpp

  Log Message:
  -----------
  unit test timeouts: first attempt

use an SDL_Alarm to try to abort the process if it goes over time.


  Commit: 58de721dd9a0f5224bf7c85e9d16930f6f795afd
      https://github.com/wesnoth/wesnoth/commit/58de721dd9a0f5224bf7c85e9d16930f6f795afd
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/game.cpp
    M src/game_controller.cpp
    M src/game_controller.hpp

  Log Message:
  -----------
  correct thread model for unit test timeouts

it seems that child threads can't terminate the whole process,
so we need to instead use a worker thread and make the
main thread the timer / return thread.


  Commit: 5ac6e509345fc20047892cd972bb289fd65b92c0
      https://github.com/wesnoth/wesnoth/commit/5ac6e509345fc20047892cd972bb289fd65b92c0
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M wml_unit_tests

  Log Message:
  -----------
  add --timeout to wml_unit_tests script

use the timeout feature as appropriate for automatic testing


  Commit: 4fb6cf5909e2532836ed32ea26d47930c659467b
      https://github.com/wesnoth/wesnoth/commit/4fb6cf5909e2532836ed32ea26d47930c659467b
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/commandline_options.cpp
    M src/commandline_options.hpp
    M src/game.cpp
    M src/game_controller.cpp

  Log Message:
  -----------
  add replay validation to unit tests

after unit tests play, then unless --noreplaycheck flag is used,
they save a replay at the end of the scenario (using autosave
code path), without compression. then they try to load it and
play it to completion.
this is the initial attempt.


  Commit: 2da77a8ad0f07cdf5ee7c5d30bc9260c1c75176b
      https://github.com/wesnoth/wesnoth/commit/2da77a8ad0f07cdf5ee7c5d30bc9260c1c75176b
  Author: Alexander van Gessel <AI0867 at gmail.com>
  Date:   2014-05-02 (Fri, 02 May 2014)

  Changed paths:
    M .gitignore
    M data/_main.cfg
    M data/test/_main.cfg
    A data/test/macros/wml_unit_test_macros.cfg
    R data/test/scenarios/_main.cfg
    A data/test/scenarios/empty_test.cfg
    A data/test/scenarios/fail_test_1.cfg
    A data/test/scenarios/unit_test_1.cfg
    A data/test/scenarios/unit_test_2.cfg
    A data/test/scenarios/unit_test_3.cfg
    M src/commandline_options.cpp
    M src/commandline_options.hpp
    M src/game.cpp
    M src/game_controller.cpp
    M src/game_controller.hpp
    A wml_unit_tests

  Log Message:
  -----------
  Merge pull request #135 from cbeck88/wmltest

WML Unit Tests


Compare: https://github.com/wesnoth/wesnoth/compare/a6479c5b4d6e...2da77a8ad0f0


More information about the Commits mailing list