Commit | Line | Data |
---|---|---|
7200bc44 | 1 | #!./perl |
2 | ||
3 | BEGIN { | |
dc459aad | 4 | chdir 't'; |
5 | @INC = '../lib'; | |
7200bc44 | 6 | } |
7 | ||
8 | my $module = shift; | |
9 | ||
10 | # 'require open' confuses Perl, so we use instead. | |
11 | eval "use $module ();"; | |
12 | if( $@ ) { | |
13 | print "not "; | |
b328b501 | 14 | $@ =~ s/\n/\n# /g; |
15 | warn "# require failed with '$@'\n"; | |
7200bc44 | 16 | } |
17 | print "ok - $module\n"; | |
18 | ||
19 |