equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2009 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 # NB - the checksource filter can find the same problem twice |
|
18 # So the count of 5 errors here is not actually accurate (AFAIK there are only 4) |
|
19 |
|
20 |
|
21 from raptor_tests import SmokeTest |
|
22 |
|
23 def run(): |
|
24 t = SmokeTest() |
|
25 t.id = "88" |
|
26 t.name = "exe_checksource" |
|
27 t.description = "Build a exe with a checksource filter" |
|
28 t.usebash = True |
|
29 |
|
30 bldinf = "smoke_suite/test_resources/checksource/helloworld/bld.inf" |
|
31 cmd1 = "sbs -b %s REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf |
|
32 cmd2 = "sbs -b %s --filter=FilterCheckSource -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf |
|
33 cmd3 = "grep -i '.*checksource errors found.*' ${SBSLOGFILE}" |
|
34 t.command = cmd1 + " && " + cmd2 + " && " + cmd3 |
|
35 |
|
36 t.mustmatch_singleline = ["[1-9] checksource errors found"] |
|
37 |
|
38 t.returncode = 1 |
|
39 t.run("windows") |
|
40 return t |