The Battle for Wesnoth  1.19.6+dev
Macros | Functions
test_commandline_options.cpp File Reference
#include "commandline_options.hpp"
#include <boost/test/unit_test.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)
 
 BOOST_AUTO_TEST_CASE (test_log_domain_severity_override_order)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file test_commandline_options.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( test_default_options  )

Definition at line 87 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::campaign_skip_story, 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::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::nogui, commandline_options::nomusic, commandline_options::nosound, 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::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.

◆ BOOST_AUTO_TEST_CASE() [2/5]

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::campaign_skip_story, 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::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::nogui, commandline_options::nomusic, commandline_options::nosound, 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::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( test_full_options  )

Definition at line 157 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::campaign_skip_story, 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::help, lg::LG_DEBUG, lg::LG_ERROR, lg::LG_INFO, lg::LG_WARN, 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::nogui, commandline_options::nomusic, commandline_options::nosound, 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::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( test_log_domain_severity_override_order  )

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( test_positional_options  )

Definition at line 304 of file test_commandline_options.cpp.

References commandline_options::campaign, commandline_options::campaign_difficulty, commandline_options::campaign_scenario, commandline_options::campaign_skip_story, 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::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::nogui, commandline_options::nomusic, commandline_options::nosound, 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::userdata_dir, commandline_options::userdata_path, commandline_options::validcache, commandline_options::version, commandline_options::windowed, and commandline_options::with_replay.