server/src/tests.h

22 lines
479 B
C
Raw Normal View History

2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
extern "C" {
#endif
#ifndef DISABLE_TESTS
void test_cleanup(void);
struct race * test_create_race(const char * name);
struct region * test_create_region(int x, int y, const struct terrain_type * terrain);
struct faction * test_create_faction(const struct race * rc);
struct unit * test_create_unit(struct faction * f, struct region * r);
void test_create_world(void);
int RunAllTests(void);
#else
#define RunAllTests() 0
#endif
#ifdef __cplusplus
}
#endif