equal
deleted
inserted
replaced
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". |
18 from raptor_tests import SmokeTest |
18 from raptor_tests import SmokeTest |
19 import os |
19 import os |
20 |
20 |
21 def run(): |
21 def run(): |
22 t = SmokeTest() |
22 t = SmokeTest() |
23 t.id = "55" |
|
24 t.name = "romfile" |
|
25 t.description = """ |
23 t.description = """ |
26 Tests the creation and content of an .iby romfile for the armv5.test |
24 Tests the creation and content of an .iby romfile for the armv5.test |
27 configuration. Also tests for creation of relevant test batch files. |
25 configuration. Also tests for creation of relevant test batch files. |
28 """ |
26 """ |
|
27 t.id = "55a" |
|
28 t.name = "romfile_general" |
29 t.usebash = True |
29 t.usebash = True |
30 t.command = "sbs -b $(EPOCROOT)/src/ongoing/group/romfile/other_name.inf " \ |
30 t.command = "sbs -b $(EPOCROOT)/src/ongoing/group/romfile/other_name.inf " \ |
31 + "-c armv5.test ROMFILE -f - " \ |
31 + "-c armv5.test ROMFILE -f - " \ |
32 + "&& cat $(EPOCROOT)/epoc32/rom/src/ongoing/group/romfile/armv5test.iby" |
32 + "&& cat $(EPOCROOT)/epoc32/rom/src/ongoing/group/romfile/armv5test.iby" |
33 |
33 |
87 # These two warnings are because gnumakefiles are not supported on |
87 # These two warnings are because gnumakefiles are not supported on |
88 # Linux: |
88 # Linux: |
89 t.warnings = 2 |
89 t.warnings = 2 |
90 t.run("linux") |
90 t.run("linux") |
91 |
91 |
|
92 |
|
93 t.id = "55b" |
|
94 t.name = "romfile_mmp_include_twice" |
|
95 t.command = "sbs -b $(EPOCROOT)/src/e32test/group/bld.inf " \ |
|
96 + "-b $(EPOCROOT)/src/falcon/test/bld.inf " \ |
|
97 + "-c armv5.test ROMFILE -m ${SBSMAKEFILE} -f ${SBSLOGFILE} " \ |
|
98 + "&& cat $(EPOCROOT)/epoc32/rom/src/e32test/group/armv5test.iby" |
|
99 |
|
100 t.targets = [ |
|
101 "$(EPOCROOT)/epoc32/rom/src/e32test/group/armv5test.iby" |
|
102 ] |
|
103 |
|
104 # Check the content of the generated .iby file |
|
105 t.mustmatch = [ |
|
106 r".*\ndevice\[MAGIC\]=/epoc32/release/##KMAIN##/##BUILD##/d_nanowait\.ldd\s+sys/bin/d_nanowait\.ldd\n.*", |
|
107 r".*\ndevice\[MAGIC\]=/epoc32/release/##KMAIN##/##BUILD##/d_pagingexample_2_post.ldd\s+sys/bin/d_pagingexample_2_post.ldd\n.*", |
|
108 ] |
|
109 t.mustnotmatch = [ |
|
110 # These two files are from two mmp files that included in both bld.inf |
|
111 # They shouldn't be in the ROM |
|
112 r".*/d_medch.ldd\s.*" |
|
113 r".*/d_dma.ldd\s.*" |
|
114 ] |
|
115 t.warnings = 0 |
|
116 t.run() |
|
117 |
|
118 t.id = "55" |
|
119 t.name = "romfile" |
|
120 t.print_result() |
92 return t |
121 return t |