sbsv2/raptor/test/smoke_suite/paging.py
branchfix
changeset 388 3f46b91ff7d1
parent 3 e1eecf4d390d
child 414 fdf44dc5eff3
equal deleted inserted replaced
364:f4ccb4c573da 388:3f46b91ff7d1
     1 #
     1 #
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of the License "Eclipse Public License v1.0"
     5 # under the terms of the License "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    22 	t.usebash = True
    22 	t.usebash = True
    23 
    23 
    24 	cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel "
    24 	cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel "
    25 	cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} "
    25 	cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} "
    26 
    26 
    27 	result = SmokeTest.PASS
       
    28 
       
    29 	t.id = "0093a"
    27 	t.id = "0093a"
    30 	t.name = "paging_default"
    28 	t.name = "paging_default"
    31 	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
    29 	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
    32 	t.mustmatch = [".*--codepaging=default.*", ".*--datapaging=default.*"]
    30 	t.mustmatch_singleline = [
    33 	t.run("windows")	# Windows-only until we've updated the Linux version of elf2e32.
    31 			".*--codepaging=default.*", 
       
    32 			".*--datapaging=default.*"
       
    33 			]
       
    34 	t.run("windows") # Windows-only until we've updated the Linux version of elf2e32.
    34 	if t.result == "skip":
    35 	if t.result == "skip":
    35 		return t
    36 		return t
    36 	if t.result == SmokeTest.FAIL:
       
    37 		result = SmokeTest.FAIL
       
    38 
    37 
    39 	t.id = "0093b"
    38 	t.id = "0093b"
    40 	t.name = "paging_unpaged"
    39 	t.name = "paging_unpaged"
    41 	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
    40 	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
    42 	t.mustmatch = [".*--codepaging=unpaged.*", ".*--datapaging=unpaged.*"]
    41 	t.mustmatch_singleline = [
       
    42 			".*--codepaging=unpaged.*", 
       
    43 			".*--datapaging=unpaged.*"
       
    44 			]
    43 	t.run()
    45 	t.run()
    44 	if t.result == SmokeTest.FAIL:
       
    45 		result = SmokeTest.FAIL
       
    46 
    46 
    47 	t.id = "0093c"
    47 	t.id = "0093c"
    48 	t.name = "paging_paged"
    48 	t.name = "paging_paged"
    49 	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
    49 	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
    50 	t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=paged.*"]
    50 	# Either pagedcode or pageddata can imply bytepaircompresstarget 
       
    51 	t.mustmatch_singleline = [
       
    52 			".*--codepaging=paged.*", 
       
    53 			".*--datapaging=paged.*",
       
    54 			".*--compressionmethod=bytepair.*"
       
    55 			]
    51 	t.run()
    56 	t.run()
    52 	if t.result == SmokeTest.FAIL:
       
    53 		result = SmokeTest.FAIL
       
    54 
    57 
    55 	t.id = "0093d"
    58 	t.id = "0093d"
    56 	t.name = "paging_unpagedcode_pageddata"
    59 	t.name = "paging_unpagedcode_pageddata"
    57 	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
    60 	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
    58 	t.mustmatch = [".*--codepaging=unpaged.*", ".*--datapaging=paged.*"]
    61 	t.mustmatch_singleline = [
       
    62 			".*--codepaging=unpaged.*", 
       
    63 			".*--datapaging=paged.*",
       
    64 			".*--compressionmethod=bytepair.*"
       
    65 			]
    59 	t.run()
    66 	t.run()
    60 	if t.result == SmokeTest.FAIL:
       
    61 		result = SmokeTest.FAIL
       
    62 
    67 
    63 	t.id = "0093e"
    68 	t.id = "0093e"
    64 	t.name = "paging_pagedcode_unpageddata"
    69 	t.name = "paging_pagedcode_unpageddata"
    65 	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
    70 	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
    66 	t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=unpaged.*"]
    71 	t.mustmatch_singleline = [
       
    72 			".*--codepaging=paged.*", 
       
    73 			".*--datapaging=unpaged.*",
       
    74 			".*--compressionmethod=bytepair.*"
       
    75 			]
    67 	t.run()
    76 	t.run()
    68 	if t.result == SmokeTest.FAIL:
       
    69 		result = SmokeTest.FAIL
       
    70 
    77 
    71 	t.id = "0093f"
    78 	t.id = "0093f"
    72 	t.name = "paging_pagedcode_defaultdata"
    79 	t.name = "paging_pagedcode_defaultdata"
    73 	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
    80 	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
    74 	t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=default.*"]
    81 	t.mustmatch_singleline = [
       
    82 			".*--codepaging=paged.*", 
       
    83 			".*--datapaging=default.*",
       
    84 			".*--compressionmethod=bytepair.*"
       
    85 			]
    75 	t.run()
    86 	t.run()
    76 	if t.result == SmokeTest.FAIL:
    87 
    77 		result = SmokeTest.FAIL
    88 	t.id = "0093g"
       
    89 	t.name = "paging_paged_unpaged_no_bytepair"
       
    90 	t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
       
    91 	t.mustmatch_singleline = [
       
    92 			".*--codepaging=unpaged.*", 
       
    93 			".*--datapaging=unpaged.*"
       
    94 			]
       
    95 	t.mustnotmatch = [
       
    96 			".*--compressionmethod=bytepair.*"	
       
    97 			]
       
    98 	t.warnings = 4 # 2 in log 2 on screen
       
    99 	t.run()
       
   100 
    78 
   101 
    79 	t.id = "0093"
   102 	t.id = "0093"
    80 	t.name = "paging"
   103 	t.name = "paging"
    81 	t.result = result
       
    82 	t.print_result()
   104 	t.print_result()
    83 	return t
   105 	return t
    84 
   106