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 from raptor_tests import SmokeTest |
|
18 |
|
19 def run(): |
|
20 t = SmokeTest() |
|
21 t.id = "88" |
|
22 t.name = "exe_checksource" |
|
23 t.description = "Build a exe with a checksource filter" |
|
24 t.usebash = True |
|
25 |
|
26 bldinf = "smoke_suite/test_resources/checksource/helloworld/bld.inf" |
|
27 cmd1 = "sbs -b %s REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf |
|
28 cmd2 = "sbs -b %s --filter=FilterCheckSource -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf |
|
29 cmd3 = "grep -i '.*checksource errors found.*' ${SBSLOGFILE}" |
|
30 t.command = cmd1 + " && " + cmd2 + " && " + cmd3 |
|
31 |
|
32 t.mustmatch = [ |
|
33 ".* 6 checksource errors found.*" |
|
34 ] |
|
35 t.returncode = 1 |
|
36 t.run("windows") |
|
37 return t |