|
1 # |
|
2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of the License "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 from raptor_tests import SmokeTest |
|
18 |
|
19 def run(): |
|
20 t = SmokeTest() |
|
21 t.name = "resource_once" |
|
22 t.description = "Ensure we only generate the resource header once even when there are many languages. Make sure that the right language (96) is used for the headerfile." |
|
23 t.command = "sbs -b smoke_suite/test_resources/resource/group/simple.inf -c winscw_udeb -m ${SBSMAKEFILE} -f ${SBSLOGFILE}; XX=$?; cat ${SBSLOGFILE}; exit $XX" |
|
24 t.usebash = True |
|
25 t.targets = [ |
|
26 "$(EPOCROOT)/epoc32/include/testresource.hrh", |
|
27 "$(EPOCROOT)/epoc32/include/testresource_badef.rh", |
|
28 "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc", |
|
29 "$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.rsc", |
|
30 "$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.rsc", |
|
31 "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r37", |
|
32 "$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r37", |
|
33 "$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r37", |
|
34 "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r94", |
|
35 "$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r94", |
|
36 "$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r94", |
|
37 "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r96", |
|
38 "$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r96", |
|
39 "$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r96", |
|
40 "$(EPOCROOT)/epoc32/include/testresource.rsg", |
|
41 "$(EPOCROOT)/epoc32/release/winscw/udeb/testresource.exe" |
|
42 ] |
|
43 t.countmatch = [["rcomp.*-h.*rsg.*r96",1], # must see r96 once |
|
44 ["rcomp.*-h.*rsg",1]] # must not see any other language |
|
45 t.run() |
|
46 |
|
47 t.print_result() |
|
48 return t |