Use new ZOOM::IRSpy::Web
[irspy-moved-to-github.git] / web / htdocs / details / check.mc
1 %# $Id: check.mc,v 1.5 2006-09-26 09:30:20 mike Exp $
2 <%args>
3 @id
4 </%args>
5 <%perl>
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"
9     if !$allTargets;
10
11 my $spy = new ZOOM::IRSpy::Web("localhost:3313/IR-Explain---1",
12                                admin => "fruitbat");
13 $spy->targets(@id) if !$allTargets;
14 $spy->initialise();
15 my $res = $spy->check();
16 if ($res == 0) {
17     print "All tests were run\n";
18 } else {
19     print "Some tests were skipped\n";
20 }
21 </%perl>