sbsv2/raptor/test/smoke_suite/exe_armv5_winscw_check.py
author Iain Williamson <iain.williamson@nokia.com>
Wed, 20 Jan 2010 11:10:34 +0000
branchfix
changeset 167 e400eed89539
parent 9 b211d87c390a
permissions -rw-r--r--
Removing references to local file system in tc_whatlog test

#
# 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

def run():
	t = CheckWhatSmokeTest()
	t.id = "6"
	t.name = "exe_armv5_winscw_check"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 -c winscw --check"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
		]
	t.missing = 7
	t.returncode = 1
	t.stdout = [
	# armv5 artefacts
		"MISSING: $(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
		"MISSING: $(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
		"MISSING: $(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
		"MISSING: $(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
	# winscw artefacts
		"MISSING: $(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
		"MISSING: $(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
		"MISSING: $(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
	]
	t.run()

	t.id = "6a"
	t.name = "exe_armv5_winscw_check_error"
	t.command = "sbs -b no/such/bld.inf --check"
	t.targets = []
	t.missing = 0
	t.errors = 2
	t.returncode = 1
	t.regexlinefilter = re.compile("^NEVER") # no literal stdout matching
	t.stdout = []
	t.mustmatch = [
		"sbs: error:.*build info file does not exist",
		"sbs: error: no CHECK information found",
	]
	t.run()

	t.id = "6b"
	t.name = "exe_armv5_winscw_what_error"
	t.command = "sbs -b no/such/bld.inf --what"
	t.mustmatch = [
		"sbs: error:.*build info file does not exist",
		"sbs: error: no WHAT information found",
	]
	t.run()

	t.id = "6"
	t.name = "exe_armv5_winscw_check"
	t.print_result()
	return t