AIX-Perfstat

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.02  Thu Jul 20 18:22:52 2006
	- Added an example Perl script, updated the documentation,
	and updated the copyright in all the files.

0.03  Fri Jul 28 11:58:53 MDT 2006
	- Fixed network interface tests. Commented out some tests
	not working on all AIX. Will look into this later.

0.04  Wed Sep 24 16:55:50 MDT 2008
	- Added restrictions for OS and perfstat library, so that
	CPAN Testers don't report failures on unsupported platforms.

0.04.1 Tue Sep 30 09:09:36 MDT 2008
	- Fix the version number and the changelog.

inc/Devel/CheckLib.pm  view on Meta::CPAN

=head1 FUNCTIONS

All of these take the same named parameters and are exported by default.
To avoid exporting them, C<use Devel::CheckLib ()>.

=head2 assert_lib

This takes several named parameters, all of which are optional, and dies
with an error message if any of the libraries listed can
not be found.  B<Note>: dying in a Makefile.PL or Build.PL may provoke
a 'FAIL' report from CPAN Testers' automated smoke testers.  Use 
C<check_lib_or_exit> instead.

The named parameters are:

=over

=item lib

Must be either a string with the name of a single 
library or a reference to an array of strings of library names.  Depending

inc/Devel/CheckLib.pm  view on Meta::CPAN


=head2 check_lib_or_exit

This behaves exactly the same as C<assert_lib()> except that instead of
dieing, it warns (with exactly the same error message) and exits.
This is intended for use in Makefile.PL / Build.PL
when you might want to prompt the user for various paths and
things before checking that what they've told you is sane.

If any library or header is missing, it exits with an exit value of 0 to avoid
causing a CPAN Testers 'FAIL' report.  CPAN Testers should ignore this
result -- which is what you want if an external library dependency is not
available.

=cut

sub check_lib_or_exit {
    eval 'assert_lib(@_)';
    if($@) {
        warn $@;
        exit;

t/AIX-Perfstat.t  view on Meta::CPAN

# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
#######################################################################

# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl AIX-Perfstat.t'

#########################

use Test::More;
BEGIN { use_ok('AIX::Perfstat') };

#########################


use AIX::Perfstat;

########################
#Compute number of tests to run.

t/cpu.t  view on Meta::CPAN

#######################################################################

# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl cpu.t'

#########################

use warnings;
use strict;

use Test::More;
BEGIN { use_ok('AIX::Perfstat') };

#########################


use AIX::Perfstat;

########################
#Compute number of tests to run.

t/disk.t  view on Meta::CPAN

# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
#######################################################################

# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl disk.t'

#########################

use Test::More;
BEGIN { use_ok('AIX::Perfstat') };

#########################


use AIX::Perfstat;

########################
#Compute number of tests to run.

t/memory.t  view on Meta::CPAN

# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
#######################################################################

# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl memory.t'

#########################

use Test::More;
BEGIN { use_ok('AIX::Perfstat') };

#########################

use AIX::Perfstat;

########################
#Compute number of tests to run.

plan tests => 2;

t/netinterface.t  view on Meta::CPAN

# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
#######################################################################

# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl netinterface.t'

#########################

use Test::More;
BEGIN { use_ok('AIX::Perfstat') };

#########################

use AIX::Perfstat;

########################
#Compute number of tests to run.

plan tests => 18;



( run in 0.303 second using v1.01-cache-2.11-cpan-4d50c553e7e )