Files
grenzland-mud/src/test/testrunner.h
2024-05-20 00:53:40 +02:00

43 lines
1007 B
C

#ifndef TESTRUNNER_H
#define TESTRUNNER_H
#include "../conf.h"
#include "../sysdep.h"
#include "../structs.h"
#include "../utils.h"
#include "../comm.h"
#include "../db.h"
#include "../handler.h"
#include "../screen.h"
#include "../interpreter.h"
#include "../spells.h"
#include "../dg_scripts.h"
#include "../act.h"
#include "../class.h"
#include "../fight.h"
#include "../quest.h"
#include "../mud_event.h"
#include "../munit/munit.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
/**
* Utility macro for defining tests.
*/
#define UNIT_TEST(test_name) MunitResult (test_name)(const MunitParameter params[], void* data)
/*
* A "standard test" needs no setup or teardown and doesn't take any parameters.
* This is a utility macro for the test suite listing.
*/
#define STD_TEST(test_name, test_fun) { (char *)(test_name), (test_fun), NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
/*
* test fixtures
*/
char_data *get_test_char();
char *get_last_messages();
#endif