1 %# $Id: check.mc,v 1.16 2007-01-31 16:50:38 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&test=Quick">Yes: Quick Test</a><br/>
18 <a href="?really=1&test=Main">Yes: Full Test</a><br/>
19 <a href="/">No</a><br/>
24 print "<h2>Testing ...</h2>\n";
25 print " <ul>\n", join("", map { " <li>$_</li>\n" } @id), "</ul>\n"
29 # Turning on autoflush with $m->autoflush() doesn't seem to work if
30 # even if the "MasonEnableAutoflush" configuration parameter is turned
31 # on in the HTTP configuration, so we don't even try -- instead,
32 # having ZOOM::IRSpy::Web::log() explicitly calling $m->flush_buffer()
34 my $spy = new ZOOM::IRSpy::Web("localhost:8018/IR-Explain---1",
36 $spy->log_init_level("irspy,irspy_test");
37 $spy->targets(@id) if !$allTargets;
39 my $res = $spy->check($test);
42 print "<b>All tests were attempted</b>\n";
44 print "<b>$res tests were skipped</b>\n";