summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ctest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-0/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Add end.ccNicholas Feinberg2014-07-281-1/+1
|
* Chance function(void) to function()reaverb2014-05-241-1/+1
|
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Use equality rather than a prefix match for enabling tests.Adam Borowski2013-11-151-1/+1
| | | | So you can run "unique" without "uniquegen".
* Regression tests for radius_iterator (w/o LOS checks).Adam Borowski2013-11-051-0/+2
|
* Simplify a #define logic.Adam Borowski2013-11-051-2/+2
|
* Move some boring test settings aside.Adam Borowski2013-10-281-6/+3
| | | | | There's no reason to change them whatsoever; a particular test will set them explicitely if it matters.
* "./crawl -test list" to enumerate available internal tests.Adam Borowski2013-10-281-0/+13
| | | | | | | | | | (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.
* Make -test NORETURN and easier to valgrind.Adam Borowski2013-10-281-28/+26
|
* Add a few checks for mon-data to --test.Adam Borowski2013-05-261-0/+2
| | | | | | | | | | | It currently does not validate, as I'm introducing a new requirement: any monster that drops a corpse must work with Simulacrum. It's debatable which ones should allow zombies as well, but at least there's now support for having spectrals/simulacra/skeletons but no zombies. The word "zombifiable" is quite ambiguous, too.
* Fix a --test -DDEBUG_FATAL crash.Adam Borowski2013-04-071-0/+1
| | | | | There's a (normally non-fatal) error message caused by uninitialized item descriptions.
* Correct missing #include "foo.h" from foo.ccSamuel Bronson2013-04-061-0/+2
| | | | (Also had to fix a prototype in ctest.h)
* Allow --test scripts that are disabled by default.Adam Borowski2012-09-221-2/+2
| | | | | Place them in test/big/, they need to be included on the command line to be run.
* Use std namespace.Raphael Langella2012-08-261-16/+15
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-5/+5
|
* Drop the namespace from ctest.ccAdam Borowski2012-04-091-148/+144
| | | | | | Namespaces private to a file are strictly worse than merely making everything static. They'd be somewhat handy if you want to heavily use identifiers taken globally (not a good idea), and if not, they just muddle things.
* Compare *_level() to *_rarity() on -test.Adam Borowski2012-04-091-0/+2
|
* Allow non-lua tests to gracefully report failure instead of asserting out.Adam Borowski2012-04-091-4/+18
|
* Fix a mangled displayed int on big-endian 64 bit architectures.Adam Borowski2011-09-151-1/+1
| | | | Thanks to SamB for enabling these warnings!
* Rename dat/clua to dat/dlua to avoid the clua/dlua confusion.Adam Borowski2011-06-181-1/+1
| | | | | There might be places where dlua is referred to as clua internally, and in many places "clua" means "lua in general".
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-11/+10
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Fix Ziggurat save/load failure.Darshan Shaligram2011-01-101-1/+2
| | | | | | | | | | | | We used to call run_map_preludes after loading the game, in case maps wanted to change their depths, etc. based on character type. With the new Lua function marshalling, however, we rely on .des file global preludes being loaded before loading the save file (since any Lua functions referenced in a save file must be locatable by name when loading the save). The fix is to split run_map_preludes in two: run_map_global_preludes which runs .des file global preludes and is called before loading saves, and run_map_local_preludes which is called after game start.
* Run zotdef's debug as part of the test suite.Adam Borowski2010-12-071-6/+13
|
* code cleanup: fix #ifdef/#if usage inconsistenciesSteven Noonan2010-02-251-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add -script option to Crawl to run a Lua script. Scripts are similar to ↵Darshan Shaligram2010-01-091-13/+44
| | | | | | tests, but can be parameterised. Add a script to generate 150 level at a named place and report on all the monsters generated there.
* Fix Shoal:$ generation bugs: stairs could be surrounded by deep water, hut ↵Darshan Shaligram2010-01-051-0/+8
| | | | | | entrances could be blocked by rock. shoal-hut.lua test generates 1k Shoal:$ levels and verifies that the levels pass sanity tests.
* ctest.cc: give msg on test being runMatthew Cline2009-11-071-0/+7
|
* Allow running tests with DEBUG_TESTSMatthew Cline2009-11-021-1/+1
| | | | | | Automatic/unit tests can now be run if you define the macro DEBUG_TESTS, rather than only having the option of having to define DEBUG_DIAGNOSTICS.
* ctest.cc: kill memory access violationSteven Noonan2009-10-241-1/+0
| | | | | | The line removed caused a crash occasionally. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Convert player::your_name to std::string.Robert Vollmert2009-10-241-2/+1
| | | | Doesn't seem to break anything...
* Set job and species in test.Robert Vollmert2009-10-221-0/+4
|
* Split dgn_lib out of luadgn.cc; rename luadgn to dlua.Robert Vollmert2009-10-191-1/+1
|
* Add test for monster placement.Darshan Shaligram2009-10-181-0/+18
| | | | | | 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".
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Set up a basic testing framework for LOS. ./crawl -test with a full debug ↵Darshan Shaligram2009-09-241-0/+121
build will run the test.