The Battle for Wesnoth  1.19.0-dev
Classes | Macros | Functions | Variables
main.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test_monitor.hpp>
#include <boost/test/unit_test_parameters.hpp>
#include <boost/test/results_reporter.hpp>
#include <boost/filesystem/path.hpp>
#include <fstream>
#include <SDL2/SDL.h>
#include "filesystem.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "gui/core/event/handler.hpp"
#include "gui/gui.hpp"
#include "config.hpp"
#include "log.hpp"
#include "tests/utils/fake_display.hpp"
#include "game_display.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  wesnoth_global_fixture
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 
#define BOOST_TEST_MODULE   wesnoth unit tests master suite
 

Functions

static void exception_translator_config (const config::error &e)
 
static void exception_translator_game (const game::error &e)
 
 BOOST_GLOBAL_FIXTURE (wesnoth_global_fixture)
 

Variables

std::ofstream reporter
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   wesnoth unit tests master suite

Definition at line 19 of file main.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 16 of file main.cpp.

Function Documentation

◆ BOOST_GLOBAL_FIXTURE()

BOOST_GLOBAL_FIXTURE ( wesnoth_global_fixture  )

◆ exception_translator_config()

static void exception_translator_config ( const config::error e)
static
Todo:
add all others exception handlers too

Definition at line 49 of file main.cpp.

References e.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().

◆ exception_translator_game()

static void exception_translator_game ( const game::error e)
static

Definition at line 54 of file main.cpp.

References e.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().

Variable Documentation

◆ reporter

std::ofstream reporter

Definition at line 59 of file main.cpp.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().