1 %# $Id: check.mc,v 1.8 2006-10-11 16:42:50 mike Exp $
6 my $allTargets = (@id == 1 && $id[0] eq "");
7 print "<h2>Testing ...</h2>\n";
8 print " <ul>\n", join("", map { " <li>$_\n" } @id), "</ul>\n"
12 # Turning on autoflush with $m->autoflush() doesn't seem to work if
13 # even if the "MasonEnableAutoflush" configuration parameter is turned
14 # on in the HTTP configuration, so we donb't even try -- instead,
15 # having ZOOM::IRSpy::Web::log() explicitly calling $m->flush_buffer()
17 my $spy = new ZOOM::IRSpy::Web("localhost:3313/IR-Explain---1",
19 $spy->log_init_level("irspy,irspy_test");
20 $spy->targets(@id) if !$allTargets;
22 my $res = $spy->check();
25 print "<b>All tests were run</b>\n";
27 print "<b>$res tests were skipped</b>\n";