sbsv2/raptor/test/smoke_suite/paging.py
author jchatten
Mon, 07 Dec 2009 14:39:13 +0000
branchfix
changeset 40 afaf81347e0a
parent 3 e1eecf4d390d
child 388 3f46b91ff7d1
permissions -rw-r--r--
DPDEF143176 raptor does not respect STDCPP mmp file keyword

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

def run():

	t = SmokeTest()
	t.usebash = True

	cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel "
	cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} "

	result = SmokeTest.PASS

	t.id = "0093a"
	t.name = "paging_default"
	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
	t.mustmatch = [".*--codepaging=default.*", ".*--datapaging=default.*"]
	t.run("windows")	# Windows-only until we've updated the Linux version of elf2e32.
	if t.result == "skip":
		return t
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0093b"
	t.name = "paging_unpaged"
	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
	t.mustmatch = [".*--codepaging=unpaged.*", ".*--datapaging=unpaged.*"]
	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0093c"
	t.name = "paging_paged"
	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
	t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=paged.*"]
	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0093d"
	t.name = "paging_unpagedcode_pageddata"
	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
	t.mustmatch = [".*--codepaging=unpaged.*", ".*--datapaging=paged.*"]
	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0093e"
	t.name = "paging_pagedcode_unpageddata"
	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
	t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=unpaged.*"]
	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0093f"
	t.name = "paging_pagedcode_defaultdata"
	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
	t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=default.*"]
	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0093"
	t.name = "paging"
	t.result = result
	t.print_result()
	return t