author | Jon Chatten |
Mon, 13 Sep 2010 14:04:04 +0100 | |
changeset 641 | 8dd670a9f34f |
parent 616 | 24e4ef208cca |
permissions | -rw-r--r-- |
591 | 1 |
# |
641 | 2 |
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
591 | 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 CheckWhatSmokeTest, ReplaceEnvs |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
18 |
from raptor_meta import MetaReader |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
19 |
from raptor_utilities import sanitise |
591 | 20 |
import re |
21 |
||
22 |
def run(): |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
23 |
premarkerfile = sanitise(ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip")) |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
24 |
markerfile = MetaReader.unzippedPathFragment(premarkerfile) + ".unzipped" |
591 | 25 |
|
26 |
t = CheckWhatSmokeTest() |
|
27 |
t.id = "25" |
|
28 |
t.name = "zip_export_what" |
|
641 | 29 |
t.command = "sbs --what -b smoke_suite/test_resources/simple_zip_export/bld.inf" |
591 | 30 |
t.stdout = [ |
31 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt', |
|
32 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt', |
|
33 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt', |
|
34 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt', |
|
641 | 35 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
36 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt" |
|
591 | 37 |
] |
38 |
||
39 |
t.targets = [ |
|
40 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt', |
|
41 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt', |
|
42 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt', |
|
43 |
'$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt', |
|
44 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
|
641 | 45 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt", |
591 | 46 |
"$(EPOCROOT)/epoc32/build/" + markerfile |
47 |
] |
|
48 |
t.run() |
|
49 |
return t |