author | Richard Taylor <richard.i.taylor@nokia.com> |
Wed, 14 Jul 2010 14:50:01 +0100 | |
changeset 616 | 24e4ef208cca |
parent 591 | 22486c9c7b15 |
child 641 | 8dd670a9f34f |
permissions | -rw-r--r-- |
591 | 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 |
||
17 |
from raptor_tests import SmokeTest, AntiTargetSmokeTest, 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 = SmokeTest() |
|
27 |
||
28 |
t.id = "0024a" |
|
29 |
t.name = "zip_export" |
|
30 |
t.command = "sbs -b smoke_suite/test_resources/simple_zip_export/bld.inf" |
|
31 |
t.targets = [ |
|
32 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", |
|
33 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", |
|
34 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", |
|
35 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", |
|
36 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
|
37 |
"$(EPOCROOT)/epoc32/build/" + markerfile |
|
38 |
] |
|
39 |
t.run() |
|
40 |
||
41 |
t.id = "0024aa" |
|
42 |
t.name = "zip_export_execute_permissions" |
|
43 |
t.usebash = True |
|
44 |
t.targets = [] |
|
45 |
t.command = "ls -l $(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin" |
|
46 |
t.mustmatch = ["-[rw-]{2}x[rw-]{2}x[rw-]{2}x"] |
|
47 |
t.run("linux") |
|
48 |
||
49 |
t = AntiTargetSmokeTest() |
|
50 |
t.id = "0024b" |
|
51 |
t.name = "zip_export_reallyclean" |
|
52 |
t.command = "sbs -b smoke_suite/test_resources/simple_zip_export/bld.inf REALLYCLEAN" |
|
53 |
t.antitargets = [ |
|
54 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", |
|
55 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", |
|
56 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", |
|
57 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", |
|
58 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
|
59 |
"$(EPOCROOT)/epoc32/build/" + markerfile |
|
60 |
] |
|
61 |
t.run() |
|
62 |
||
63 |
t.id = "24" |
|
64 |
t.name = "zip_export_plus_clean" |
|
65 |
t.print_result() |
|
66 |
return t |