mirror of
https://github.com/pennmush/pennmush
synced 2026-08-12 22:23:05 -04:00
26 lines
635 B
Text
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.
|