11 $SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
16 getter => 'filegetter',
22 push(@INC, dirname(realpath($0)));
25 unless(libvideosite::register_api({
26 _debug => sub { return $debug },
28 die("Error registering API: $libvideosite::error");
31 unless(libvideosite::init()) {
32 die("Could not init libvideosite: $libvideosite::error");
37 printf("Doing self tests:\n");
38 foreach my $g (libvideosite::_grabbers()) {
44 # If there are grabber names given on the command line check
45 # the current name against that list and skip if not present
46 $found = grep { $_ eq $g->{'NAME'} } @ARGV;
53 printf(" %s...", $g->{'NAME'});
60 printf(" no self test\n");
68 printf("\n\n%d succeeded\n%d failed\n%d not testable\n", $success, $fail, $notest);