13 getter => 'filegetter',
19 push(@INC, dirname(realpath($0)));
22 unless(libvideosite::register_api({
23 _debug => sub { return $debug },
25 die("Error registering API: $libvideosite::error");
28 unless(libvideosite::init()) {
29 die("Could not init libvideosite: $libvideosite::error");
34 printf("Doing self tests:\n");
35 foreach my $g (libvideosite::_grabbers()) {
41 # If there are grabber names given on the command line check
42 # the current name against that list and skip if not present
43 $found = grep { $_ eq $g->{'NAME'} } @ARGV;
50 printf(" %s...", $g->{'NAME'});
57 printf(" no self test\n");
65 printf("\n\n%d succeeded\n%d failed\n%d not testable\n", $success, $fail, $notest);