- SEE ALSO
- COPYRIGHT AND LICENSE
Siebel::AssertOS - verifies if the OS is supported by Siebel applications
package Your::Package; use Siebel::AssertOS;
This modules will help identifying if the current OS that is running is supported by Siebel applications. If not, the module will
die, forcing the code to stop being executed.
This is particulary useful for automated tests.
The list of supported OS is as defined by Oracle documentation regarding Siebel 8.2 and the list of OS from Devel::CheckOS distribution. Actually, Siebel::AssertOS is based on Devel::CheckOS, borrowing code from it, but does not depend on it.
Regarding supported Linux distributions, this module will also validate if the code is running on a supported by Siebel distribution.
None, but the functions below can be used by calling them with the complete package name (
Expects an optional string parameter with the operational system name. If not given, it will assume
$^O as default.
It will execute
os_is with the operational system name, calling
die_unsuported if the return value from
os_is is false.
Beware that the given parameter must follow the same provided by
$^O, including case and format.
die_if_os_isnt is called by default when the module is imported to another package.
Expects a string as parameter.
die with a message telling that the parameter is not supported.
Expects a string as parameter, being the string the OS name.
Returns true or false depending on the give value. The string is restricted by those return by
$^O special variable.
Oracle documentation about supported OS: http://docs.oracle.com/cd/E11886_01/V8/CORE/SRSP_81/SRSP_81_ServerEnv4.html#wp1009117
Devel::AssertOS::OSFeatures::SupportsSiebel does almost the same thing, but implementation is different and it doesn't care about Linux distribution.
Project website: https://github.com/glasswalk3r/siebel-gnu-tools.
Alceu Rodrigues de Freitas Junior, <firstname.lastname@example.org>
This software is copyright (c) 2015 of Alceu Rodrigues de Freitas Junior, <email@example.com>
This file is part of Siebel GNU Tools project.
Siebel GNU Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel GNU Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel GNU Tools. If not, see <http://www.gnu.org/licenses/>.