forked from github/server
change the way the market tests are included.
This commit is contained in:
parent
3493c651f7
commit
8d497e4b50
5 changed files with 19 additions and 11 deletions
|
@ -99,10 +99,7 @@
|
|||
<ClCompile Include="gamecode\laws.c" />
|
||||
<ClCompile Include="gamecode\laws_test.c" />
|
||||
<ClCompile Include="gamecode\market.c" />
|
||||
<ClCompile Include="gamecode\market_test.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="gamecode\market_test.c" />
|
||||
<ClCompile Include="gamecode\monster.c" />
|
||||
<ClCompile Include="gamecode\randenc.c" />
|
||||
<ClCompile Include="gamecode\report.c" />
|
||||
|
|
|
@ -177,7 +177,3 @@ void do_markets(void)
|
|||
ql_free(traders);
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef DISABLE_TESTS
|
||||
#include "market_test.c"
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
#include <cutest/CuTest.h>
|
||||
|
||||
#include <util/language.h>
|
||||
#include "platform.h"
|
||||
#include "market.h"
|
||||
#include "tests.h"
|
||||
|
||||
#include <kernel/building.h>
|
||||
#include <kernel/config.h>
|
||||
#include <kernel/faction.h>
|
||||
#include <kernel/item.h>
|
||||
#include <kernel/race.h>
|
||||
#include <kernel/region.h>
|
||||
#include <kernel/terrain.h>
|
||||
#include <kernel/unit.h>
|
||||
|
||||
#include <util/language.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
static void market_curse(CuTest * tc)
|
||||
{
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include <kernel/curse_test.c>
|
||||
#include <kernel/battle_test.c>
|
||||
#include <gamecode/laws_test.c>
|
||||
|
||||
CuSuite *get_market_suite(void);
|
||||
#include <gamecode/market_test.c>
|
||||
|
||||
#include <kernel/region.h>
|
||||
#include <kernel/terrain.h>
|
||||
|
|
|
@ -3,6 +3,8 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifndef DISABLE_TESTS
|
||||
struct building_type;
|
||||
struct building;
|
||||
void test_cleanup(void);
|
||||
|
||||
struct terrain_type * test_create_terrain(const char * name, unsigned int flags);
|
||||
|
|
Loading…
Reference in a new issue