3 # $Id: irspy.pl,v 1.11 2006-10-09 07:29:43 mike Exp $
6 # YAZ_LOG=irspy,irspy_test,irspy_debug,irspy_event perl -I ../lib irspy.pl -t Main localhost:3313/IR-Explain---1 bagel.indexdata.dk/gils z3950.loc.gov:7090/Voyager bagel.indexdata.dk:210/marc
14 if (!getopts('t:', \%opts) || @ARGV < 1) {
16 Usage $0: [options] <IRSpy-database> [<target> ...]
17 If no targets are specified, all targets in DB are tested.
18 -t <test> Run the specified <test> [default: all tests]
23 my($dbname, @targets) = @ARGV;
24 my $spy = new ZOOM::IRSpy($dbname, "admin", "fruitbat");
25 $spy->targets(@targets) if @targets;
27 my $res = $spy->check($opts{t});
29 print "All tests were run\n";
31 print "Some tests were skipped\n";