sbsv2/raptor/test/smoke_suite/annofile2log.py
changeset 13 c327db0664bb
child 18 de5b887c98f7
equal deleted inserted replaced
12:5e7562f67577 13:c327db0664bb
       
     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_canned"
       
    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 && ( diff -wB <(python testanno2log.py <(bzip2 -dc scrubbed_ncp_dfs_resource.anno.bz2)) <(bzip2 -dc scrubbed_ncp_dfs_resource.stdout.bz2))"
       
    30 	
       
    31 	t.mustmatch_multiline = [ 
       
    32 		"^ *.?"
       
    33                 ]
       
    34 
       
    35 
       
    36 	t.run()
       
    37 
       
    38 	t.print_result()
       
    39 	return t