Dmitry E. Oboukhov > Test-Debian-0.03 > Test::Debian

Download:
Test-Debian-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Test::Debian - some tests for debian system

SYNOPSIS ^

  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';

DESCRIPTION ^

The module provides some perl tests for debian system:

system_is_debian([ $test_name ])

Passes if current OS is debian

package_is_installed($pkg_name [, $test_name ])

Passes if package is installed

package_isnt_installed($pkg_name [, $test_name ])

Passes if package isn't installed

AUTHOR ^

Dmitry E. Oboukhov, <unera@debian.org<gt>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: