The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
test_commandline_options.cpp File Reference
#include "commandline_options.hpp"
#include <boost/test/unit_test.hpp>
#include <boost/assign.hpp>
Include dependency graph for test_commandline_options.cpp:

Go to the source code of this file.

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 

Functions

 BOOST_AUTO_TEST_CASE (test_empty_options)
 
 BOOST_AUTO_TEST_CASE (test_default_options)
 
 BOOST_AUTO_TEST_CASE (test_full_options)
 
 BOOST_AUTO_TEST_CASE (test_positional_options)
 

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 14 of file test_commandline_options.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( test_empty_options  )

Definition at line 23 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::clock, commandline_options::data_dir, commandline_options::data_path, commandline_options::debug, commandline_options::editor, commandline_options::fps, commandline_options::fullscreen, commandline_options::gunzip, commandline_options::gzip, commandline_options::help, commandline_options::load, commandline_options::log, commandline_options::logdomains, commandline_options::max_fps, commandline_options::multiplayer, commandline_options::multiplayer_ai_config, commandline_options::multiplayer_algorithm, commandline_options::multiplayer_controller, commandline_options::multiplayer_era, commandline_options::multiplayer_exit_at_end, commandline_options::multiplayer_ignore_map_settings, commandline_options::multiplayer_label, commandline_options::multiplayer_parm, commandline_options::multiplayer_scenario, commandline_options::multiplayer_side, commandline_options::multiplayer_turns, commandline_options::new_widgets, commandline_options::nocache, commandline_options::nodelay, commandline_options::nogui, commandline_options::nomusic, commandline_options::nosound, commandline_options::path, commandline_options::preprocess, commandline_options::preprocess_defines, commandline_options::preprocess_input_macros, commandline_options::preprocess_output_macros, commandline_options::preprocess_path, commandline_options::preprocess_target, commandline_options::resolution, commandline_options::rng_seed, commandline_options::screenshot, commandline_options::screenshot_map_file, commandline_options::screenshot_output_file, commandline_options::server, commandline_options::test, commandline_options::userconfig_dir, commandline_options::userconfig_path, commandline_options::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.

BOOST_AUTO_TEST_CASE ( test_default_options  )

Definition at line 92 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::clock, commandline_options::data_dir, commandline_options::data_path, commandline_options::debug, commandline_options::editor, commandline_options::fps, commandline_options::fullscreen, commandline_options::gunzip, commandline_options::gzip, commandline_options::help, commandline_options::load, commandline_options::log, commandline_options::logdomains, commandline_options::max_fps, commandline_options::multiplayer, commandline_options::multiplayer_ai_config, commandline_options::multiplayer_algorithm, commandline_options::multiplayer_controller, commandline_options::multiplayer_era, commandline_options::multiplayer_exit_at_end, commandline_options::multiplayer_ignore_map_settings, commandline_options::multiplayer_label, commandline_options::multiplayer_parm, commandline_options::multiplayer_scenario, commandline_options::multiplayer_side, commandline_options::multiplayer_turns, commandline_options::new_widgets, commandline_options::nocache, commandline_options::nodelay, commandline_options::nogui, commandline_options::nomusic, commandline_options::nosound, commandline_options::path, commandline_options::preprocess, commandline_options::preprocess_defines, commandline_options::preprocess_input_macros, commandline_options::preprocess_output_macros, commandline_options::preprocess_path, commandline_options::preprocess_target, commandline_options::resolution, commandline_options::rng_seed, commandline_options::screenshot, commandline_options::screenshot_map_file, commandline_options::screenshot_output_file, commandline_options::server, commandline_options::test, commandline_options::userconfig_dir, commandline_options::userconfig_path, commandline_options::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.

BOOST_AUTO_TEST_CASE ( test_full_options  )

Definition at line 167 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::clock, commandline_options::data_dir, commandline_options::data_path, commandline_options::debug, commandline_options::editor, commandline_options::fps, commandline_options::fullscreen, commandline_options::gunzip, commandline_options::gzip, commandline_options::help, commandline_options::load, commandline_options::log, commandline_options::logdomains, commandline_options::max_fps, commandline_options::multiplayer, commandline_options::multiplayer_ai_config, commandline_options::multiplayer_algorithm, commandline_options::multiplayer_controller, commandline_options::multiplayer_era, commandline_options::multiplayer_exit_at_end, commandline_options::multiplayer_ignore_map_settings, commandline_options::multiplayer_label, commandline_options::multiplayer_parm, commandline_options::multiplayer_scenario, commandline_options::multiplayer_side, commandline_options::multiplayer_turns, commandline_options::new_widgets, commandline_options::nocache, commandline_options::nodelay, commandline_options::nogui, commandline_options::nomusic, commandline_options::nosound, commandline_options::path, commandline_options::preprocess, commandline_options::preprocess_defines, commandline_options::preprocess_input_macros, commandline_options::preprocess_output_macros, commandline_options::preprocess_path, commandline_options::preprocess_target, commandline_options::resolution, commandline_options::rng_seed, commandline_options::screenshot, commandline_options::screenshot_map_file, commandline_options::screenshot_output_file, commandline_options::server, commandline_options::test, commandline_options::userconfig_dir, commandline_options::userconfig_path, commandline_options::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.

BOOST_AUTO_TEST_CASE ( test_positional_options  )

Definition at line 323 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::clock, commandline_options::data_dir, commandline_options::data_path, commandline_options::debug, commandline_options::editor, commandline_options::fps, commandline_options::fullscreen, commandline_options::gunzip, commandline_options::gzip, commandline_options::help, commandline_options::load, commandline_options::log, commandline_options::logdomains, commandline_options::max_fps, commandline_options::multiplayer, commandline_options::multiplayer_ai_config, commandline_options::multiplayer_algorithm, commandline_options::multiplayer_controller, commandline_options::multiplayer_era, commandline_options::multiplayer_exit_at_end, commandline_options::multiplayer_ignore_map_settings, commandline_options::multiplayer_label, commandline_options::multiplayer_parm, commandline_options::multiplayer_scenario, commandline_options::multiplayer_side, commandline_options::multiplayer_turns, commandline_options::new_widgets, commandline_options::nocache, commandline_options::nodelay, commandline_options::nogui, commandline_options::nomusic, commandline_options::nosound, commandline_options::path, commandline_options::preprocess, commandline_options::preprocess_defines, commandline_options::preprocess_input_macros, commandline_options::preprocess_output_macros, commandline_options::preprocess_path, commandline_options::preprocess_target, commandline_options::resolution, commandline_options::rng_seed, commandline_options::screenshot, commandline_options::screenshot_map_file, commandline_options::screenshot_output_file, commandline_options::server, commandline_options::test, commandline_options::userconfig_dir, commandline_options::userconfig_path, commandline_options::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.