From ed85466e0202b396bb8d5469d2babd2a24664afc Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Tue, 5 Jan 2010 01:31:26 +0530 Subject: Fix Shoal:$ generation bugs: stairs could be surrounded by deep water, hut entrances could be blocked by rock. shoal-hut.lua test generates 1k Shoal:$ levels and verifies that the levels pass sanity tests. --- crawl-ref/source/ctest.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/ctest.cc') diff --git a/crawl-ref/source/ctest.cc b/crawl-ref/source/ctest.cc index f8a3f74001..cfff5edecb 100644 --- a/crawl-ref/source/ctest.cc +++ b/crawl-ref/source/ctest.cc @@ -75,6 +75,7 @@ namespace crawl_tests { lua_stack_cleaner clean(dlua); luaL_openlib(dlua, "crawl", crawl_test_lib, 0); + dlua.execfile("clua/test.lua", true, true); } bool is_test_selected(const std::string &testname) @@ -119,6 +120,13 @@ namespace crawl_tests init_test_bindings(); + if (crawl_state.tests_selected.empty() + || (crawl_state.tests_selected[0].find("makeitem") != + std::string::npos)) + { + makeitem_tests(); + } + // Get a list of Lua files in test. Order of execution of // tests should be irrelevant. const std::vector tests( -- cgit v1.2.3-54-g00ecf