mirror of
https://github.com/pennmush/pennmush
synced 2026-08-12 22:23:05 -04:00
git-svn-id: https://pennmush.googlecode.com/svn/trunk@2 ba372814-4f39-11de-9ad6-1127a62b9fcd
22 lines
481 B
Text
22 lines
481 B
Text
Regression tests for Penn functions and commands.
|
|
|
|
Usage:
|
|
perl runtest.pl testFOO.pl ...
|
|
|
|
or
|
|
./alltests.sh
|
|
|
|
The test*.pl files are frameworks for tests, not actual perl scripts.
|
|
|
|
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.
|