root/1.8.3/tags/p6/test/runtest.pl
| Revision 1117, 378 bytes (checked in by shawnw, 15 months ago) |
|---|
| Line | |
|---|---|
| 1 | #!/usr/bin/perl -w |
| 2 | use strict; |
| 3 | use PennMUSH; |
| 4 | use TestHarness; |
| 5 | |
| 6 | |
| 7 | |
| 8 | my $mush = PennMUSH->new; |
| 9 | |
| 10 | my @tests = map { TestHarness->new($_); } @ARGV; |
| 11 | |
| 12 | my $god = $mush->loginGod; |
| 13 | my $mortal = undef; |
| 14 | if ($TestHarness::use_mortal) { |
| 15 | $god->command('@pcreate Mortal=mortal'); |
| 16 | $mortal = $mush->login("Mortal", "mortal"); |
| 17 | } |
| 18 | |
| 19 | foreach my $test (@tests) { |
| 20 | $test->run($god, $mortal); |
| 21 | } |
Note: See TracBrowser
for help on using the browser.
