591
|
1 |
#
|
|
2 |
# Copyright (c) 2010 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
|
|
18 |
|
|
19 |
def run():
|
|
20 |
t = SmokeTest()
|
|
21 |
t.id = "43563"
|
|
22 |
t.name = "annofile2log"
|
|
23 |
t.description = "test workaround for log corruption from a make engine whose name begins with 'e'"
|
|
24 |
|
|
25 |
t.usebash = True
|
|
26 |
t.errors = 0
|
|
27 |
t.returncode = 0
|
|
28 |
t.exceptions = 0
|
|
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 )'
|
|
30 |
|
|
31 |
t.mustmatch_multiline = [
|
|
32 |
"^ *.?"
|
|
33 |
]
|
|
34 |
|
|
35 |
|
|
36 |
t.run()
|
|
37 |
|
|
38 |
t.print_result()
|
|
39 |
return t
|