sbsv2/raptor/test/smoke_suite/gnumakefile_whatlog.py
author Daniel Jacobs <daniel.jacobs@nokia.com>
Thu, 01 Apr 2010 15:50:33 +0100
branchwip
changeset 450 63f3bc391c14
parent 20 d1f6767eec1a
permissions -rw-r--r--
Fix mismatches in test names vs. file names.

#
# 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 the License "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: 
#

from raptor_tests import CheckWhatSmokeTest
import re, os

def run():
	t = CheckWhatSmokeTest()
	t.id = "70"
	t.name = "gnumakefile_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf -f - " \
			"-m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/gnumakefile"))
	t.regexlinefilter = re.compile("^<(whatlog|build>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		componentpath+"/master_bld_ARMV5_UDEB.txt",
		componentpath+"/master_bld_ARMV5_UREL.txt",
		componentpath+"/master_bld_WINSCW_UDEB.txt",
		componentpath+"/master_bld_WINSCW_UREL.txt",
		componentpath+"/master_final_ARMV5_UDEB.txt",
		componentpath+"/master_final_ARMV5_UREL.txt",
		componentpath+"/master_final_WINSCW_UDEB.txt",
		componentpath+"/master_final_WINSCW_UREL.txt",
		componentpath+"/master_lib_ARMV5_UDEB.txt",
		componentpath+"/master_lib_ARMV5_UREL.txt",
		componentpath+"/master_lib_WINSCW_UDEB.txt",
		componentpath+"/master_lib_WINSCW_UREL.txt",
		componentpath+"/master_makmake_ARMV5_UDEB.txt",
		componentpath+"/master_makmake_ARMV5_UREL.txt",
		componentpath+"/master_makmake_WINSCW_UDEB.txt",
		componentpath+"/master_makmake_WINSCW_UREL.txt",
		componentpath+"/master_resource_ARMV5_UDEB.txt",
		componentpath+"/master_resource_ARMV5_UREL.txt",
		componentpath+"/master_resource_WINSCW_UDEB.txt",
		componentpath+"/master_resource_WINSCW_UREL.txt",
		componentpath+"/slave_bld_ARMV5_UDEB.txt",
		componentpath+"/slave_bld_ARMV5_UREL.txt",
		componentpath+"/slave_bld_WINSCW_UDEB.txt",
		componentpath+"/slave_bld_WINSCW_UREL.txt",
		componentpath+"/slave_final_ARMV5_UDEB.txt",
		componentpath+"/slave_final_ARMV5_UREL.txt",
		componentpath+"/slave_final_WINSCW_UDEB.txt",
		componentpath+"/slave_final_WINSCW_UREL.txt",
		componentpath+"/slave_lib_ARMV5_UDEB.txt",
		componentpath+"/slave_lib_ARMV5_UREL.txt",
		componentpath+"/slave_lib_WINSCW_UDEB.txt",
		componentpath+"/slave_lib_WINSCW_UREL.txt",
		componentpath+"/slave_makmake_ARMV5_UDEB.txt",
		componentpath+"/slave_makmake_ARMV5_UREL.txt",
		componentpath+"/slave_makmake_WINSCW_UDEB.txt",
		componentpath+"/slave_makmake_WINSCW_UREL.txt",
		componentpath+"/slave_resource_ARMV5_UDEB.txt",
		componentpath+"/slave_resource_ARMV5_UREL.txt",
		componentpath+"/slave_resource_WINSCW_UDEB.txt",
		componentpath+"/slave_resource_WINSCW_UREL.txt"
		]
	t.stdout = [
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_udeb.whatlog'>",
		"<build>"+componentpath+"/master_bld_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_final_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_lib_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_makmake_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_resource_ARMV5_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_urel.whatlog'>",
		"<build>"+componentpath+"/master_bld_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_final_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_lib_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_makmake_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_resource_ARMV5_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_urel.whatlog'>",
		"<build>"+componentpath+"/master_bld_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_final_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_lib_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_makmake_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_resource_WINSCW_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_udeb.whatlog'>",
		"<build>"+componentpath+"/master_bld_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_final_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_lib_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_makmake_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_resource_WINSCW_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_udeb.whatlog'>",
		"<build>"+componentpath+"/slave_bld_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_final_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_lib_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_makmake_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_resource_ARMV5_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_urel.whatlog'>",
		"<build>"+componentpath+"/slave_bld_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_final_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_lib_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_makmake_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_resource_ARMV5_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_urel.whatlog'>",
		"<build>"+componentpath+"/slave_bld_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_final_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_lib_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_makmake_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_resource_WINSCW_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_udeb.whatlog'>",
		"<build>"+componentpath+"/slave_bld_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_final_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_lib_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_makmake_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_resource_WINSCW_UDEB.txt</build>"
	]
	t.run("windows") # we don't have make 3.79 on Linux
	return t