| 1 |
# $Id: autosearch.t,v 1.9 2008-07-16 00:41:37 Martin Exp $ |
| 2 |
|
| 3 |
use ExtUtils::testlib; |
| 4 |
use File::Spec::Functions; |
| 5 |
use Test::File; |
| 6 |
use Test::More qw(no_plan); |
| 7 |
|
| 8 |
use strict; |
| 9 |
|
| •10 |
my $sProg = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin/AutoSearch' : catfile('blib', 'script', 'AutoSearch'); |
| 11 |
my $iWIN32 = ($^O =~ m!win32!i); |
| 12 |
|
| 13 |
file_exists_ok($sProg, "$sProg exists"); |
| 14 |
SKIP: |
| 15 |
{ |
| 16 |
skip 'Can not check "executable" file flag on Win32', 1 if $iWIN32; |
| 17 |
file_executable_ok($sProg, "$sProg is executable"); |
| 18 |
} # end of SKIP block |
| 19 |
pass(); |
| 20 |
# print STDERR "\n"; |
| 21 |
diag(`$sProg -V`); |
| 22 |
pass(); |
| 23 |
exit 0; |
| 24 |
|
| 25 |
__END__ |
| 26 |
|