pennmush/test/README
2018-05-02 00:06:42 -07:00

26 lines
635 B
Text

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.