11 $SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
18 push(@INC, dirname(realpath($0)));
21 unless(libvideosite::register_api({
22 _debug => sub { return $debug },
24 die("Error registering API: $libvideosite::error");
27 unless(libvideosite::init()) {
28 die("Could not init libvideosite: $libvideosite::error");
33 printf("Doing self tests:\n");
34 foreach my $g (libvideosite::_grabbers()) {
40 # If there are grabber names given on the command line check
41 # the current name against that list and skip if not present
42 $found = grep { $_ eq $g->{'NAME'} } @ARGV;
49 printf(" %s...", $g->{'NAME'});
56 printf(" no self test\n");
64 printf("\n\n%d succeeded\n%d failed\n%d not testable\n", $success, $fail, $notest);