author | yiluzhu |
Tue, 22 Dec 2009 15:37:16 +0000 | |
branch | wip |
changeset 103 | ea6129a5c67c |
parent 29 | ee00c00df073 |
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 |
||
17 |
from raptor_tests import SmokeTest, AntiTargetSmokeTest, ReplaceEnvs |
|
18 |
import re |
|
19 |
||
20 |
def run(): |
|
21 |
markerfile = re.sub("(\\\\|\/|:|;| )", "_", |
|
22 |
ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip.unzipped")) |
|
23 |
||
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
24 |
t = SmokeTest() |
3 | 25 |
|
26 |
t.id = "0024a" |
|
27 |
t.name = "zip_export" |
|
28 |
t.command = "sbs -b smoke_suite/test_resources/simple_zip_export/bld.inf" |
|
29 |
t.targets = [ |
|
30 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", |
|
31 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", |
|
32 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", |
|
33 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
34 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
3 | 35 |
"$(EPOCROOT)/epoc32/build/" + markerfile |
36 |
] |
|
37 |
t.run() |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
38 |
|
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
39 |
t.id = "0024aa" |
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
40 |
t.name = "zip_export_execute_permissions" |
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
41 |
t.usebash = True |
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
42 |
t.targets = [] |
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
43 |
t.command = "ls -l $(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin" |
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
44 |
t.mustmatch = ["-[rw-]{2}x[rw-]{2}x[rw-]{2}x"] |
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
45 |
t.run("linux") |
3 | 46 |
|
47 |
t = AntiTargetSmokeTest() |
|
48 |
t.id = "0024b" |
|
49 |
t.name = "zip_export_reallyclean" |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
50 |
t.command = "sbs -b smoke_suite/test_resources/simple_zip_export/bld.inf REALLYCLEAN" |
3 | 51 |
t.antitargets = [ |
52 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", |
|
53 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", |
|
54 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", |
|
55 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", |
|
29
ee00c00df073
Catchup to Perforce WIP with timing, python24
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
56 |
"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin", |
3 | 57 |
"$(EPOCROOT)/epoc32/build/" + markerfile |
58 |
] |
|
59 |
t.run() |
|
60 |
||
61 |
t.id = "24" |
|
62 |
t.name = "zip_export_plus_clean" |
|
63 |
t.print_result() |
|
64 |
return t |