NAME
Test::Sysconfig - System configuration related unit tests
VERSION
Version 0.01
SYNOPSIS
Test::Sysconfig is used to help test system configuration, ie, cfengine unit tests.
use Test::Sysconfig tests => 3;
check_package('less', 'package less');
check_package('emacs21', 'emacs uninstalled', 1);
file_contains('Test/Sysconfig.pm', qr/do {local \$\//);
EXPORT
check_package file_contains
FUNCTIONS
check_package
Takes four arguments: - package name - test name (optional, defaults to package name) - invert test (optional, defaults to no) - package manager (optional and currently ignored, defaults to dpkg)
file_contains
Takes four arguments: - filename - regex to search for - test name (optional, defaults to filename - invert test (optional, defaults to no)
AUTHOR
Ian Kilgore, <iank at cpan.org>
BUGS
Please report any bugs or feature requests to bug-test-cfengine at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Sysconfig. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Sysconfig
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2007 Ian Kilgore, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.