mirror of
https://github.com/pennmush/pennmush
synced 2026-08-12 22:23:05 -04:00
| .. | ||
| alltests.sh.in | ||
| fuzz_flags.py | ||
| MUSHConnection.pm | ||
| PennMUSH.pm | ||
| README | ||
| runtest.pl | ||
| testalias.pl | ||
| testatree.pl | ||
| testdecompose.pl | ||
| testdigest.pl | ||
| testdistxd.pl | ||
| testfirstof.pl | ||
| testflags.pl | ||
| testgrep.pl | ||
| TestHarness.pm | ||
| testhastype.pl | ||
| testinsert.pl | ||
| testjson.pl | ||
| testjust.pl | ||
| testletq.pl | ||
| testlnum.pl | ||
| testmath.pl | ||
| testnull.pl | ||
| testpage.pl | ||
| testrand.pl | ||
| testreswitch.pl | ||
| testsetfuns.pl | ||
| testsidefx.pl | ||
| testsort.pl | ||
| testsoundex.pl | ||
| teststringsecs.pl | ||
| teststrreplace.pl | ||
| testtr.pl | ||
| testtrim.pl | ||
Regression tests for Penn functions and commands.
Usage:
perl runtest.pl [--valgrind] testFOO.pl ...
or
./alltests.sh [--valgrind]
The test*.pl files are frameworks for tests, not actual perl
scripts. The choice of extension was unfortunate.
The --valgrind option runs the test game under valgrind to help detect
memory issues.
Their format:
login mortal
expect N failures!
run tests:
perl code
All the lines above the 'run tests:' one are optional.
Look at existing files for how to write tests. Some hints: $god is
always available as a test connection. If 'login mortal' was given,
$mortal is too.