ACSErrorChecker.ErrorChecker
index
/diska/alma_tmp/ACS/LGPL/CommonSoftware/acserr/ws/src/ACSErrorChecker/ErrorChecker.py

# @(#) $Id: ErrorChecker.py,v 1.12 2006/02/03 15:22:48 acaproni Exp $
#
# Copyright (C) 2001
# Associated Universities, Inc. Washington DC, USA.
#
# Produced for the ALMA project
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Library General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option) any
# later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
# details.
#
# You should have received a copy of the GNU Library General Public License
# adouble with this library; if not, write to the Free Software Foundation, Inc.,
# 675 Massachusetts Ave, Cambridge, MA 02139, USA.  Correspondence concerning
# ALMA should be addressed as follows:
#
# Internet email: alma-sw-admin@nrao.edu
# "@(#) $Id: ErrorChecker.py,v 1.12 2006/02/03 15:22:48 acaproni Exp $"
#
# who       when        what
# --------  ----------  ----------------------------------------------
# acaproni  2005/02/08  Created.
#------------------------------------------------------------------------------

 
Modules
       
fpformat
glob
os
re
string
sys
time
_xmlplus

 
Functions
       
check()
Read the configuration file to scan the subsystem and create the reports
into the given directory with the given format
It checks for the configuration file and call the checkWithConfigFile function
 
Return values
    0: ok
    -1: error in the config file
    n: number of errors ecountered while scanning the subsystems
checkWithConfigFile(configFile)
Read the configuration file from the parameter and create the reports
into the given directory with the given format
 
Return values
    0: ok
    -1: error in the config file
    n: number of errors ecountered while scanning the subsystems
parseConfigFile(fileName, repDir, incDirs, excDirs, testRng, systems)
Parse the command file filling the variables
return 0 if the parsing was ok
 
fileName: the config file to scan
repDir: the directory to write the reports on
incDirs: the include directories
excDirs: the folders to exclude form search
testRng: the range of test and example errors
systems: the subsystems
printUsage()
Print the usage string in the stdout
writeErrorOnHTML(fileName, subsystemName, errorMsg, theException)

 
Data
        theCodes = None
theErrors = None
theName = None
theNumber = None
theTag = None