NAME

Test::BDD::Infrastructure::Process - cucumber step definitions for checking processes

VERSION

version 1.005

Synopis

Scenario: mtpolicyd must be running
  Given a parent process like ^/usr/bin/mtpolicyd is running
  Then the uid of the process must be mtpolicyd
  Then the gid of the process must be mtpolicyd
  Then the priority of the process must be 20
  Then the RSS size of the process must be smaller than 67108864 byte
  When there are at least 3 child processes
  Then the uid of the child processes must be mtpolicyd
  Then the gid of the child processes must be mtpolicyd
  Then the priority of the child processes must be 20
  Then the RSS size of the child processes must be smaller than 64 MB

Step definitions

First one or more processes must be selected with the following step definitions:

Given a parent process like <regex> is running
...test parent...
When there is/are <compare> <count> child process(es)
...test childs...

or

When there is/are <compare> <count> child process(es) like <regex>
...test childs...

To test just a flat process structure:

Given there is/are <compare> <count> process(es) like <regex>

Test process attributes

Then the uid of the (child )process(es) must be <uid|username>
Then the gid of the (child )process(es) must be <gid|groupname>
Then the priority of the (child )process(es) must be <prio>
Then the virtual size of the (child )process(es) must be <compare> <count> <byteunit>
Then the RSS size of the (child )process(es) must be <compare> <count> <byteunit>

AUTHOR

Markus Benning <ich@markusbenning.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Markus Benning.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.