X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=inline;f=dev%2Farm%2Flibio-socket-ssl-perl%2Flibio-socket-ssl-perl-1.16%2Ft%2F01loadmodule.t;fp=dev%2Farm%2Flibio-socket-ssl-perl%2Flibio-socket-ssl-perl-1.16%2Ft%2F01loadmodule.t;h=55fdc8ac64a322b0139bc4caf131cee043fc6f69;hb=f477fa73365d491991707e7ed9217b48d6994551;hp=0000000000000000000000000000000000000000;hpb=da95c414033799c3a62606f299c3c00b5c77ca11;p=dh-make-perl diff --git a/dev/arm/libio-socket-ssl-perl/libio-socket-ssl-perl-1.16/t/01loadmodule.t b/dev/arm/libio-socket-ssl-perl/libio-socket-ssl-perl-1.16/t/01loadmodule.t new file mode 100644 index 0000000..55fdc8a --- /dev/null +++ b/dev/arm/libio-socket-ssl-perl/libio-socket-ssl-perl-1.16/t/01loadmodule.t @@ -0,0 +1,28 @@ +# Before `make install' is performed this script should be runnable with +# `make test'. After `make install' it should work as `perl t/01loadmodule.t' + +######################### We start with some black magic to print on failure. + +BEGIN { $| = 1; print "1..4\n"; } +END {print "Load failed ... not ok 1\n" unless $loaded;} + +use Carp; +BEGIN { $foo = 0; $SIG{__DIE__} = sub { $foo++ if !$^S } unless ($] < 5.006); } +use IO::Socket::SSL qw(:debug1); +$loaded = 1; +$test=1; +print "ok $test\n"; + +$test++; +if ($foo) { print "not ";} +print "ok $test\n"; +delete $SIG{__DIE__}; + +$test++; +if ($IO::Socket::SSL::DEBUG == 1) { print "ok $test\n"; } +else { print "not ok $test\n"; } + +$test++; +if ($Net::SSLeay::trace == 1) { print "ok $test\n"; } +else { print "not ok $test\n"; } +