Test::Debian - some tests for debian system
use Test::More; use Test::Debian; ok($value, 'test name'); system_is_debian; package_is_installed 'dpkg'; package_is_installed 'dpkg', 'dpkg is installed'; package_isnt_installed 'kde-base';
The module provides some perl tests for debian system:
Passes if current OS is debian
Passes if package is installed
package_is_installed understands the following syntax:
package1 | package2 package1 (< 1.23) | package2 (> 1.3)
Passes if package isn't installed
Dmitry E. Oboukhov, <unera@debian.org<gt>
Copyright (C) 2012 by Dmitry E. Oboukhov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Test::Debian, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Debian
CPAN shell
perl -MCPAN -e shell install Test::Debian
For more information on module installation, please visit the detailed CPAN module installation guide.