logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::Debian - some tests for debian system

Author

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

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_variant[,$test_name])
       Passes if package is installed

       package_is_installed understands the following syntax:

           package1 | package2
           package1 (< 1.23) | package2 (> 1.3)

   package_isnt_installed($pkg_name[,$test_name])
       Passes if package isn't installed

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

See Also