Test::System::Helper - Helper for the Test::System
The purpose of this module is to provide the easiness of getting the list of nodes you want to test (if that is the case) and as well to let you fetch the value of the params you set via Test::System for your tests.
Test::System
Pablo Fischer, pablo@pablo.com.mx.
Copyright (C) 2009 by Pablo Fischer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Returns as an array the nodes you specified via Test::System. It basically joins splits by CSV the TEST_SYSTEM_NODES environment variable value and returns it.
Returns the parameter value of the given key.
The key name is the same key passed to the Test::System, not the environment variable that is set by Test::System.
It returns the parameter by checking the for the environment variable that stores its value. The name of the environments variables can be explained in the Test::System module, however a quick example will be:
use Test::System::Helper; my $value = get_param('foo'). # It will returns the value of: TEST_SYSTEM_FOO
Please note that since the values come from the environment the only type of data that will be returned will be scalar unless the key is not found then undef will be returned.
To install Test::System, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::System
CPAN shell
perl -MCPAN -e shell install Test::System
For more information on module installation, please visit the detailed CPAN module installation guide.