author | Dean Draper <dean.draper@nokia.com> |
Fri, 30 Apr 2010 10:19:33 +0100 | |
branch | fix |
changeset 491 | f60c4282816c |
parent 490 | b60bdff41580 |
child 553 | 7d4971eaf863 |
permissions | -rw-r--r-- |
362
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
1 |
# |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
2 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
3 |
# All rights reserved. |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
4 |
# This component and the accompanying materials are made available |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
6 |
# which accompanies this distribution, and is available |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
8 |
# |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
9 |
# Initial Contributors: |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
10 |
# Nokia Corporation - initial contribution. |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
11 |
# |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
12 |
# Contributors: |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
13 |
# |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
14 |
# Description: |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
15 |
# |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
16 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
17 |
from raptor_tests import SmokeTest |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
18 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
19 |
def run(): |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
20 |
t = SmokeTest() |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
21 |
t.id = "43563" |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
22 |
t.name = "annofile2log_canned" |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
23 |
t.description = "test workaround for log corruption from a make engine whose name begins with 'e'" |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
24 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
25 |
t.usebash = True |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
26 |
t.errors = 0 |
408
a819f9223567
fix: stop using "magic" numbers in string operations for the copyannofile2log feature
timothy.murphy@nokia.com
parents:
363
diff
changeset
|
27 |
t.returncode = 0 |
362
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
28 |
t.exceptions = 0 |
490
b60bdff41580
Make copyfromannofile test work on windows.
timothy.murphy@nokia.com
parents:
408
diff
changeset
|
29 |
t.command = 'cd smoke_suite/test_resources/annofile2log && ( FROMANNO="`mktemp`" ; bzip2 -dc scrubbed_ncp_dfs_resource.anno.bz2 | python testanno2log.py >"${FROMANNO}" && FROMSTDOUT="`mktemp`"; bzip2 -dc scrubbed_ncp_dfs_resource.stdout.bz2 > "${FROMSTDOUT}" && diff -wB "${FROMANNO}" "${FROMSTDOUT}"; RET=$? ; rm "${FROMANNO}" "${FROMSTDOUT}"; exit $RET )' |
362
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
30 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
31 |
t.mustmatch_multiline = [ |
408
a819f9223567
fix: stop using "magic" numbers in string operations for the copyannofile2log feature
timothy.murphy@nokia.com
parents:
363
diff
changeset
|
32 |
"^ *.?" |
362
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
33 |
] |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
34 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
35 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
36 |
t.run() |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
37 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
38 |
t.print_result() |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
39 |
return t |