apicompatanamdw/compatanalysercmd/checkbc/scripts/cds/cds.py
changeset 0 638b9c697799
equal deleted inserted replaced
-1:000000000000 0:638b9c697799
       
     1 #
       
     2 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:  Execution entry point of CDS script
       
    15 #
       
    16 
       
    17 import config, lib
       
    18 
       
    19 lib.empty_warns()
       
    20 lib.empty_log()
       
    21 
       
    22 processorModules = []
       
    23 for processorName in config.ACTIVE_PROCESSORS:
       
    24     processorModules.append(lib.dynamic_import(processorName))
       
    25     
       
    26 if __name__ == '__main__':
       
    27     timer = lib.ExecTimer()
       
    28     timer.start_timing()
       
    29     lib.log_progress('CDS --- Processing started')
       
    30         
       
    31     for module in processorModules:
       
    32         module._RUNFN_()
       
    33 
       
    34     lib.log_progress('\n\nTotal processing time = ' + timer.get_processing_time())
       
    35     lib.log_progress('CDS --- Processing ended successfully')
       
    36