summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ctest.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-09-21 13:52:28 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-09-22 00:19:58 +0200
commitc05688fa6a7ee87041cde1f1e7c10d3bfd01d308 (patch)
tree815be3b2932f2ea0d8301e6c23b9d5af6bcd9a9d /crawl-ref/source/ctest.cc
parentcb359bb5f2446cc7f1cce9b74ce87cdfac09e9b0 (diff)
downloadcrawl-ref-c05688fa6a7ee87041cde1f1e7c10d3bfd01d308.tar.gz
crawl-ref-c05688fa6a7ee87041cde1f1e7c10d3bfd01d308.zip
Allow --test scripts that are disabled by default.
Place them in test/big/, they need to be included on the command line to be run.
Diffstat (limited to 'crawl-ref/source/ctest.cc')
-rw-r--r--crawl-ref/source/ctest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ctest.cc b/crawl-ref/source/ctest.cc
index a3f7dc98f7..cac4e827c9 100644
--- a/crawl-ref/source/ctest.cc
+++ b/crawl-ref/source/ctest.cc
@@ -95,7 +95,7 @@ static void _init_test_bindings()
static bool _is_test_selected(const string &testname)
{
- if (crawl_state.tests_selected.empty())
+ if (crawl_state.tests_selected.empty() && !starts_with(testname, "big/"))
return true;
for (int i = 0, size = crawl_state.tests_selected.size();
i < size; ++i)
@@ -170,7 +170,7 @@ bool run_tests(bool exit_on_complete)
// Get a list of Lua files in test. Order of execution of
// tests should be irrelevant.
const vector<string> tests(
- get_dir_files_ext(crawl_state.script? script_dir : test_dir,
+ get_dir_files_recursive(crawl_state.script? script_dir : test_dir,
".lua"));
for_each(tests.begin(), tests.end(), run_test);