summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/startup.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-28 08:54:57 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-10-28 09:33:19 +0100
commitf9337f212a3e5565d158dc0446e1bd74f1d84ba1 (patch)
treeac16d90c21199e7c5c90a8d4f8de1b4f4fa7c0b0 /crawl-ref/source/startup.cc
parent2cbfb5cbfec5a95ad9b94ebaf692b18325ef961c (diff)
downloadcrawl-ref-f9337f212a3e5565d158dc0446e1bd74f1d84ba1.tar.gz
crawl-ref-f9337f212a3e5565d158dc0446e1bd74f1d84ba1.zip
"./crawl -test list" to enumerate available internal tests.
(We also got "canned" tests which are scripted using regular arena or game.) Our Makefile deserves a good heap of profanity, as you can't recurse nor run targets whose list of dependencies depends on something itself. This is because you can't just "make foo", you need to "make debug foo" or it will f*** up your build, and the list of such required extra arguments is hard to copy -- it can include compiler flags, EXTERNAL_DEFINES, etc.
Diffstat (limited to 'crawl-ref/source/startup.cc')
-rw-r--r--crawl-ref/source/startup.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/startup.cc b/crawl-ref/source/startup.cc
index a405a3749a..8a1c2c0507 100644
--- a/crawl-ref/source/startup.cc
+++ b/crawl-ref/source/startup.cc
@@ -161,10 +161,12 @@ static void _initialize()
}
#endif
- if (!crawl_state.io_inited)
- cio_init();
-
- clrscr();
+ if (!crawl_state.test_list)
+ {
+ if (!crawl_state.io_inited)
+ cio_init();
+ clrscr();
+ }
if (crawl_state.test)
{