author | timothy.murphy@nokia.com |
Wed, 02 Dec 2009 00:21:12 +0000 | |
branch | wip |
changeset 29 | ee00c00df073 |
parent 3 | e1eecf4d390d |
permissions | -rw-r--r-- |
3 | 1 |
# |
2 |
# Copyright (c) 2009 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 |
# The stringtable example doesn't currently build in full, hence it's built for |
|
17 |
# EXPORT in isolation; We also test archives here - although an export, they |
|
18 |
# will be exported in response to the first configuration processed (this |
|
19 |
# example ensures it's armv5_udeb, so we can match against that config). |
|
20 |
from raptor_tests import CheckWhatSmokeTest, ReplaceEnvs |
|
21 |
import re |
|
22 |
import os |
|
23 |
||
24 |
def run(): |
|
25 |
markerfile = re.sub("(\\\\|\/|:|;| )", "_", |
|
26 |
ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip.unzipped")) |
|
27 |
||
28 |
t = CheckWhatSmokeTest() |
|
29 |
t.id = "0069a" |
|
30 |
t.name = "stringtable_zip_whatlog" |
|
31 |
t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf -b smoke_suite/test_resources/simple_zip_export/bld.inf -f - -m ${SBSMAKEFILE} -c armv5_udeb.whatlog EXPORT" |
|
32 |
componentpath1 = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_stringtable")) |
|
33 |
componentpath2 = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_zip_export")) |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
34 |
t.regexlinefilter = re.compile("^<(whatlog|archive|stringtable>|member>|zipmarker>)") |
3 | 35 |
t.hostossensitive = False |
36 |
t.usebash = True |
|
37 |
t.targets = [ |
|
38 |
"$(EPOCROOT)/epoc32/include/strconsts.h", |
|
39 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", |
|
40 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", |
|
41 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", |
|
42 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
43 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
3 | 44 |
"$(EPOCROOT)/epoc32/build/" + markerfile |
45 |
] |
|
46 |
t.addbuildtargets('smoke_suite/test_resources/simple_stringtable/bld.inf', [ |
|
47 |
"stringtabletest_/strconsts.cpp", |
|
48 |
"stringtabletest_/strconsts.h", |
|
49 |
"stringtabletest_/strconsts.st" |
|
50 |
]) |
|
51 |
t.stdout = [ |
|
52 |
"<whatlog bldinf='"+componentpath1+"/bld.inf' mmp='"+componentpath1+"/simple_stringtable.mmp' config='armv5_udeb.whatlog'>", |
|
53 |
"<stringtable>$(EPOCROOT)/epoc32/include/strconsts.h</stringtable>", |
|
54 |
"<whatlog bldinf='"+componentpath2+"/bld.inf' mmp='' config=''>", |
|
55 |
"<archive zipfile='"+componentpath2+"/archive.zip'>", |
|
56 |
"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt</member>", |
|
57 |
"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt</member>", |
|
58 |
"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt</member>", |
|
59 |
"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt</member>", |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
60 |
"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin</member>", |
3 | 61 |
"<zipmarker>$(EPOCROOT)/epoc32/build/" + markerfile + "</zipmarker>" |
62 |
] |
|
63 |
t.run() |
|
64 |
||
65 |
"Tests to check that up-to-date zip exports are reported" |
|
66 |
t.id = "0069b" |
|
67 |
t.name = "stringtable_zip_whatlog_rebuild" |
|
68 |
t.targets = [] |
|
69 |
t.run() |
|
70 |
||
71 |
t.id = "69" |
|
72 |
t.name = "stringtable_zip_whatlog" |
|
73 |
t.print_result() |
|
74 |
return t |