diff options
author | chromatic <chromatic@wgz.org> | 2001-10-06 15:42:03 -0600 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2001-10-07 05:33:40 +0000 |
commit | 149e698571d538389632b17001d47e502cc5be50 (patch) | |
tree | 3915c66cb18d6bffe85269d4118acf091ecabb13 /lib/CPAN | |
parent | d1b7517499e3d0b728e5d962307954b425a8d95f (diff) | |
download | perl-149e698571d538389632b17001d47e502cc5be50.tar.gz |
Add Tests for CPAN::Nox
Message-Id: <20011007034754.21057.qmail@onion.perl.org>
p4raw-id: //depot/perl@12348
Diffstat (limited to 'lib/CPAN')
-rw-r--r-- | lib/CPAN/t/Nox.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/CPAN/t/Nox.t b/lib/CPAN/t/Nox.t new file mode 100644 index 0000000000..3d5565b157 --- /dev/null +++ b/lib/CPAN/t/Nox.t @@ -0,0 +1,27 @@ +#!./perl + +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; +} + +use Test::More tests => 8; + +# use this first to $CPAN::term can be undefined +use_ok( 'CPAN' ); +undef $CPAN::term; + +# this kicks off all the magic +use_ok( 'CPAN::Nox' ); + +# this will be set if $CPAN::term is undefined +is( $CPAN::Suppress_readline, 1, 'should set suppress readline flag' ); + +# all of these modules have XS components, should be marked unavailable +for my $mod (qw( Digest::MD5 LWP Compress::Zlib )) { + is( $CPAN::META->has_inst($mod), 0, "$mod should be marked unavailable" ); +} + +# and these will be set to those in CPAN +is( @CPAN::Nox::EXPORT, @CPAN::EXPORT, 'should export just what CPAN does' ); +is( \&CPAN::Nox::AUTOLOAD, \&CPAN::AUTOLOAD, 'AUTOLOAD should be aliased' ); |