diff options
author | Andreas König <a.koenig@mind.de> | 2000-12-09 18:14:25 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-12-10 04:39:19 +0000 |
commit | d667a7e6cc929099334c86c1f8ba43c1add38609 (patch) | |
tree | cb2200563c1df675e088590a64a63daea84d92f2 /t/base | |
parent | cbc5248d01a71061a57c964b98f44bd4cb3a75c0 (diff) | |
download | perl-d667a7e6cc929099334c86c1f8ba43c1add38609.tar.gz |
Re: PATCH: Let Test::Harness bail out early (Was: Testing module dependencies)
Message-ID: <m3wvd9o9lq.fsf@ak-71.mind.de>
p4raw-id: //depot/perl@8069
Diffstat (limited to 't/base')
-rw-r--r-- | t/base/commonsense.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/base/commonsense.t b/t/base/commonsense.t new file mode 100644 index 0000000000..155c5345b6 --- /dev/null +++ b/t/base/commonsense.t @@ -0,0 +1,24 @@ +#!./perl + +chdir 't' if -d 't'; +@INC = '../lib'; +require Config; import Config; +if (($Config{'extensions'} !~ /\b(DB|[A-Z]DBM)_File\b/) ){ + print "Bail out! Perl configured without DB_File or [A-Z]DBM_File\n"; + exit 0; +} +if (($Config{'extensions'} !~ /\bFcntl\b/) ){ + print "Bail out! Perl configured without Fcntl module\n"; + exit 0; +} +if (($Config{'extensions'} !~ /\bIO\b/) ){ + print "Bail out! Perl configured without IO module\n"; + exit 0; +} +if (($Config{'extensions'} !~ /\bFile\/Glob\b/) ){ + print "Bail out! Perl configured without File::Glob module\n"; + exit 0; +} + +print "1..1\nok 1\n"; + |