diff -r 1801340c26a2 -r e5af45d51884 uiaccelerator_plat/alf_extended_visual_api/tsrc/group/sis/client.py --- a/uiaccelerator_plat/alf_extended_visual_api/tsrc/group/sis/client.py Thu Aug 19 10:48:02 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,130 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# -#client for coverage testing - -import getopt -import time,os,sys,re -from socket import * -from StringIO import * -host = "localhost" -port = 3555 -build_command = "bldmake bldfiles & abld build winscw udeb" -unittest_build_command = "bldmake bldfiles & abld build winscw udeb & ..\\..\\Group\\bldmake bldfiles & ..\\..\\Group\\abld test build winscw udeb" -clean_command = "abld reallyclean" -copy_command = "copy Z:\\epoc32\\release\\winscw\\udeb\\UT_*.dll Z:\\epoc32\\release\\winscw\\udeb\\Z\\sys\\bin\\ & copy Z:\\epoc32\\release\\winscw\\udeb\\MT_*.dll Z:\\epoc32\\release\\winscw\\udeb\\Z\\sys\\bin\\" - -def buildProfiledBinaries(aPath,aBuildCommand,aIdbName): - os.chdir(aPath) - os.putenv("CODETEST_LIB","NTmvc_TargetLibMD.lib ctsymbiannativemem.lib") - os.putenv("CTDRIVER_ARGS","-CTsize_t=unsigned -CTtag-allocator -CTv -CTno-tag-includes -CTtag-level=SC -CTidb=" + aIdbName) - os.system(clean_command) - os.system(aBuildCommand) - os.putenv("CODETEST_LIB","") # put env vars back - os.putenv("CTDRIVER_ARGS","") - -def buildModuleTests(aPath,aBuildCommand): - os.chdir(aPath) - os.system(aBuildCommand) - os.system(copy_command) - -def startProfiling(aFullIdbName, aExecutable): - s = socket(AF_INET, SOCK_STREAM) - s.connect((host,port)) - s.send(aFullIdbName + "," + aExecutable) - data = s.recv(8192) - s.close() - return data - -def parseAndWriteReport(aData, aReportLocation): - filename = None - date = None - covered = None - not_covered = None - s = StringIO(aData) - - for line in s: - idb_match = re.match(r"^\s+(?P.*\.idb$)", line) - time_match = re.match(r"^\s+\w+-\w+\s+(?P\w+)\s+(?P\w+)\s+(?P\d+)\s+(?P