diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-10-18 18:09:22 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-10-18 18:17:47 +0530 |
commit | 20499e4d29a0af3143ca2aaa163390d97c04c258 (patch) | |
tree | 4506fe40fa455e02bc8ba0dbcf1175e675e5a374 /crawl-ref/source/initfile.cc | |
parent | ebf9ea59c9613529a05e9e8a1b74a5d2d388195b (diff) | |
download | crawl-ref-20499e4d29a0af3143ca2aaa163390d97c04c258.tar.gz crawl-ref-20499e4d29a0af3143ca2aaa163390d97c04c258.zip |
Add test for monster placement.
Adds test/monplace.lua to test placing monsters using the Lua direct monster creation binding (does not exercise all the map code).
Allow choosing what tests to run with "crawl -test test1,test2".
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 710f8e8321..7ad2e809a6 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -3703,6 +3703,11 @@ bool parse_args( int argc, char **argv, bool rc_only ) case CLO_TEST: crawl_state.test = true; + if (next_is_param) + { + crawl_state.tests_selected = split_string(",", next_arg); + nextUsed = true; + } break; case CLO_MACRO: |