1 %# $Id: check.mc,v 1.12 2006-11-16 12:15:29 mike Exp $
8 my $allTargets = (@id == 1 && $id[0] eq "");
9 if ($allTargets && !$really) {
13 Testing all the targets is a very slow process.
14 Are you sure you want to do this?
17 <a href="?really=1">Yes</a>
23 print "<h2>Testing ...</h2>\n";
24 print " <ul>\n", join("", map { " <li>$_</li>\n" } @id), "</ul>\n"
28 # Turning on autoflush with $m->autoflush() doesn't seem to work if
29 # even if the "MasonEnableAutoflush" configuration parameter is turned
30 # on in the HTTP configuration, so we donb't even try -- instead,
31 # having ZOOM::IRSpy::Web::log() explicitly calling $m->flush_buffer()
33 my $spy = new ZOOM::IRSpy::Web("localhost:3313/IR-Explain---1",
35 $spy->log_init_level("irspy,irspy_test");
36 $spy->targets(@id) if !$allTargets;
38 my $res = $spy->check($test);
41 print "<b>All tests were run</b>\n";
43 print "<b>$res tests were skipped</b>\n";