sbsv2/raptor/test/smoke_suite/paging.py
branchfix
changeset 414 fdf44dc5eff3
parent 388 3f46b91ff7d1
equal deleted inserted replaced
404:d420eba6f3a0 414:fdf44dc5eff3
    26 
    26 
    27 	t.id = "0093a"
    27 	t.id = "0093a"
    28 	t.name = "paging_default"
    28 	t.name = "paging_default"
    29 	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
    29 	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
    30 	t.mustmatch_singleline = [
    30 	t.mustmatch_singleline = [
    31 			".*--codepaging=default.*", 
    31 			"--codepaging=default", 
    32 			".*--datapaging=default.*"
    32 			"--datapaging=default"
    33 			]
    33 			]
    34 	t.run("windows") # Windows-only until we've updated the Linux version of elf2e32.
    34 	t.run()
    35 	if t.result == "skip":
       
    36 		return t
       
    37 
    35 
    38 	t.id = "0093b"
    36 	t.id = "0093b"
    39 	t.name = "paging_unpaged"
    37 	t.name = "paging_unpaged"
    40 	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
    38 	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
    41 	t.mustmatch_singleline = [
    39 	t.mustmatch_singleline = [
    42 			".*--codepaging=unpaged.*", 
    40 			"--codepaging=unpaged", 
    43 			".*--datapaging=unpaged.*"
    41 			"--datapaging=unpaged"
    44 			]
    42 			]
    45 	t.run()
    43 	t.run()
    46 
    44 
    47 	t.id = "0093c"
    45 	t.id = "0093c"
    48 	t.name = "paging_paged"
    46 	t.name = "paging_paged"
    49 	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
    47 	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
    50 	# Either pagedcode or pageddata can imply bytepaircompresstarget 
    48 	# Either pagedcode or pageddata can imply bytepaircompresstarget 
    51 	t.mustmatch_singleline = [
    49 	t.mustmatch_singleline = [
    52 			".*--codepaging=paged.*", 
    50 			"--codepaging=paged", 
    53 			".*--datapaging=paged.*",
    51 			"--datapaging=default",
    54 			".*--compressionmethod=bytepair.*"
    52 			"--compressionmethod=bytepair"
    55 			]
    53 			]
    56 	t.run()
    54 	t.run()
    57 
    55 
    58 	t.id = "0093d"
    56 	t.id = "0093d"
    59 	t.name = "paging_unpagedcode_pageddata"
    57 	t.name = "paging_unpagedcode_pageddata"
    60 	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
    58 	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
    61 	t.mustmatch_singleline = [
    59 	t.mustmatch_singleline = [
    62 			".*--codepaging=unpaged.*", 
    60 			"--codepaging=unpaged", 
    63 			".*--datapaging=paged.*",
    61 			"--datapaging=paged",
    64 			".*--compressionmethod=bytepair.*"
    62 			"--compressionmethod=bytepair"
    65 			]
    63 			]
    66 	t.run()
    64 	t.run()
    67 
    65 
    68 	t.id = "0093e"
    66 	t.id = "0093e"
    69 	t.name = "paging_pagedcode_unpageddata"
    67 	t.name = "paging_pagedcode_unpageddata"
    70 	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
    68 	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
    71 	t.mustmatch_singleline = [
    69 	t.mustmatch_singleline = [
    72 			".*--codepaging=paged.*", 
    70 			"--codepaging=paged", 
    73 			".*--datapaging=unpaged.*",
    71 			"--datapaging=unpaged",
    74 			".*--compressionmethod=bytepair.*"
    72 			"--compressionmethod=bytepair"
    75 			]
    73 			]
    76 	t.run()
    74 	t.run()
    77 
    75 
    78 	t.id = "0093f"
    76 	t.id = "0093f"
    79 	t.name = "paging_pagedcode_defaultdata"
    77 	t.name = "paging_pagedcode_defaultdata"
    80 	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
    78 	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
    81 	t.mustmatch_singleline = [
    79 	t.mustmatch_singleline = [
    82 			".*--codepaging=paged.*", 
    80 			"--codepaging=paged", 
    83 			".*--datapaging=default.*",
    81 			"--datapaging=default",
    84 			".*--compressionmethod=bytepair.*"
    82 			"--compressionmethod=bytepair"
    85 			]
    83 			]
    86 	t.run()
    84 	t.run()
    87 
    85 
    88 	t.id = "0093g"
    86 	t.id = "0093g"
    89 	t.name = "paging_paged_unpaged_no_bytepair"
    87 	t.name = "paging_paged_unpaged_no_bytepair"
    90 	t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
    88 	t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
    91 	t.mustmatch_singleline = [
    89 	t.mustmatch_singleline = [
    92 			".*--codepaging=unpaged.*", 
    90 			"--codepaging=unpaged", 
    93 			".*--datapaging=unpaged.*"
    91 			"--datapaging=unpaged"
    94 			]
    92 			]
    95 	t.mustnotmatch = [
    93 	t.mustnotmatch = [
    96 			".*--compressionmethod=bytepair.*"	
    94 			"--compressionmethod=bytepair"	
    97 			]
    95 			]
    98 	t.warnings = 4 # 2 in log 2 on screen
    96 	t.warnings = 2 # 1 in the log and 1 on screen
    99 	t.run()
    97 	t.run()
   100 
    98 
       
    99 	# test the pre-WDP paging options --paged and --unpaged
       
   100 	# there is an os_properties.xml file in test/config that
       
   101 	# turns POSTLINKER_SUPPORTS_WDP off
       
   102 	
       
   103 	t.id = "0093g"
       
   104 	t.name = "paging_paged_no_wdp"
       
   105 	t.command = cmd_prefix + "-p paged.mmp --configpath=test/config" + cmd_suffix
       
   106 	t.mustmatch_singleline = [
       
   107 			"--paged", 
       
   108 			"--compressionmethod=bytepair"
       
   109 			]
       
   110 	t.mustnotmatch = []
       
   111 	t.warnings = 0
       
   112 	t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/paged.dll" ]
       
   113 	t.run()
       
   114 	
       
   115 	t.id = "0093h"
       
   116 	t.name = "paging_unpaged_no_wdp"
       
   117 	t.command = cmd_prefix + "-p unpaged.mmp --configpath=test/config" + cmd_suffix
       
   118 	t.mustmatch_singleline = [
       
   119 			"--unpaged", 
       
   120 			]
       
   121 	t.mustnotmatch = [
       
   122 			"--compressionmethod=bytepair"	
       
   123 			]
       
   124 	t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/unpaged.dll" ]
       
   125 	t.run()
   101 
   126 
   102 	t.id = "0093"
   127 	t.id = "0093"
   103 	t.name = "paging"
   128 	t.name = "paging"
   104 	t.print_result()
   129 	t.print_result()
   105 	return t
   130 	return t