# TSThcve.def: Executes HCVE Tests # $Id: TSThcve.def,v 1.14 2008/02/25 17:32:56 mschenke Exp $ # ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/modules/TSThcve.def,v 1.14 2008/02/25 17:32:56 mschenke Exp $ # # Change History # 20080225 MSC Change the copyright notice. =head1 NAME TSThcve - Executes Health Check/Validation Engine Tests. =head1 DESCRIPTION -T hcve Presents all possible rule sets for the current platform and executes the selected one. It removes all previous reports for that rule set. If the I<-d> option is specified, it displays step execution progress. -T hcve: Executes the specified rule set. -T M:hcve: Produces the documentation of the specified rules set as a report. =cut echo tput('bold'),'Processing HCVE tests ...',tput('off') # Initialisation var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' var @set = () var $cnt = 0 call setAbbr('HCVE') # Load the HCVE macros run HCVEinfo() # Select the rule set if getSetting('TST_ARGS') {var $set[1] = replace(last,'\.xml$','',true) if !getHcveName($set[1]) die 'Rule set ',$set[1],' not found' var $num = 1 } else {# List available rule sets var %ttl = ('A','Available Pre-Installation Rule Sets:',\ 'P','Available Post-Installation Rule Sets:') loop $typ ('A','P') {var @tbl = getHcveSets($typ) if @tbl {echo $ttl{$typ} loop $set (@tbl) {incr $cnt var $set[$cnt] = $set echo sprintf(' %2d. %s',$cnt,getHcveName($set)) } } } if !$cnt die 'No rule set found for this platform' # Get the HCVE rule set offset call setTempSetting('HCVE_ENTRIES',$cnt) call requestSetting('TSThcve') var $num = getSetting('HCVE_RULE_SET') } # Treat the HCVE rule set if and($num,$set[$num]) {var $set = $set[$num] call setAbbr(concat('HCVE_',$set)) if getSetting('TST_MAN') {# Generate a complete rule set description report man call wrt_hcve_man($set) if hasOutput(true) echo 'Rule set description file: ',renderFile() } else {# Load and perform the HCVE tests call get_hcve_rules(getHcveFile($set)) call exe_hcve_rules() call dsp_hcve_results() # Purge old reports call purge('O',concat('HCVE_(res|err)_',$set),0) call purge('O',concat('HCVE_',$set,'_(res|err)'),0) # Produce a complete report report res call wrt_hcve_results(concat('---+!! Health Check/Validation for "',\ getHcveName($set),'"'),true) if hasOutput(true) echo 'Result file: ',renderFile() report err call wrt_hcve_errors(concat('---+!! Health Check/Validation Errors for "',\ getHcveName($set),'"')) if hasOutput(true) echo 'Error file: ',renderFile() } } =head1 SEE ALSO See also L. =begin credits =over 10 =item RDA 4.3: Joerg Doerris, Bill Loi, John Peeken, Wes Root. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002-2008, Oracle. All rights reserved. =head1 TRADEMARK NOTICE Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. =cut