equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 # All rights reserved. |
3 # All rights reserved. |
4 # This component and the accompanying materials are made available |
4 # This component and the accompanying materials are made available |
5 # under the terms of the License "Eclipse Public License v1.0" |
5 # under the terms of the License "Eclipse Public License v1.0" |
6 # which accompanies this distribution, and is available |
6 # which accompanies this distribution, and is available |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 t = SmokeTest() |
20 t = SmokeTest() |
21 t.usebash = True |
21 t.usebash = True |
22 |
22 |
23 t.description = "Test that a timing log is created and contains total parse and build durations" |
23 t.description = "Test that a timing log is created and contains total parse and build durations" |
24 |
24 |
25 t.id = "0103a" |
|
26 t.name = "timing_off" |
|
27 t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f-" |
|
28 t.mustnotmatch = [ |
|
29 ".*progress:discovery.*", |
|
30 ".*progress:start.*", |
|
31 ".*progress:end.*" |
|
32 ] |
|
33 t.run() |
|
34 |
|
35 |
|
36 t.id = "0103b" |
25 t.id = "0103b" |
37 t.name = "timing_on" |
26 t.name = "timing_on" |
38 t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf --timing " + \ |
27 t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf" + \ |
39 "--filters=FilterLogfile,FilterTiming -f ${SBSLOGFILE} && " + \ |
28 " --filters=FilterLogfile,FilterTiming -f ${SBSLOGFILE} && " + \ |
40 "grep progress:duration ${SBSLOGFILE}.timings" |
29 "grep progress:duration ${SBSLOGFILE}.timings" |
41 t.mustmatch = [ |
30 t.mustmatch = [ |
42 "^<progress:duration object_type='layer' task='parse' key='.*' duration='\d+.\d+' />$", |
31 "^<progress:duration object_type='layer' task='parse' key='.*' duration='\d+.\d+' />$", |
43 "^<progress:duration object_type='layer' task='build' key='.*' duration='\d+.\d+' />$", |
32 "^<progress:duration object_type='layer' task='build' key='.*' duration='\d+.\d+' />$", |
44 "^<progress:duration object_type='all' task='all' key='all' duration='\d+.\d+' />$" |
33 "^<progress:duration object_type='all' task='all' key='all' duration='\d+.\d+' />$" |