author | Jon Chatten |
Mon, 22 Mar 2010 09:19:45 +0000 | |
branch | fix |
changeset 387 | 1e062eefe47f |
parent 363 | 4549b6c6c3d8 |
child 408 | a819f9223567 |
child 450 | 63f3bc391c14 |
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 |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
27 |
t.returncode = 1 |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
28 |
t.exceptions = 0 |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
29 |
t.command = "cd smoke_suite/test_resources/annofile2log && ( diff -wB <(python testanno2log.py <(bzip2 -dc scrubbed_ncp_dfs_resource.anno.bz2)) <(bzip2 -dc scrubbed_ncp_dfs_resource.stdout.bz2))" |
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 = [ |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
32 |
".*1a2.*" + |
363
4549b6c6c3d8
annofile2log: make sure that we get no more than the output we want in the test
timothy.murphy@nokia.com
parents:
362
diff
changeset
|
33 |
"Starting build: 488235.{1,3}" + |
4549b6c6c3d8
annofile2log: make sure that we get no more than the output we want in the test
timothy.murphy@nokia.com
parents:
362
diff
changeset
|
34 |
"14009c12884.{1,4}" + |
4549b6c6c3d8
annofile2log: make sure that we get no more than the output we want in the test
timothy.murphy@nokia.com
parents:
362
diff
changeset
|
35 |
"---.{1,4}" + |
362
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
36 |
"Finished build: 488235 Duration: 1:15 \(m:s\) Cluster availability: 100%.*" |
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 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
39 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
40 |
t.run() |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
41 |
|
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
42 |
t.print_result() |
0ff20a0b1aa9
add a test for annofile2log workaround for log corruption
timothy.murphy@nokia.com
parents:
diff
changeset
|
43 |
return t |