author | timothy.murphy@nokia.com |
Tue, 02 Mar 2010 09:17:29 +0000 | |
changeset 297 | 7029b5be2b15 |
parent 140 | 5e708570518b |
permissions | -rw-r--r-- |
3 | 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 |
||
20
d1f6767eec1a
Tests working with separate test-epocroot.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
17 |
# NB - the checksource filter can find the same problem twice |
d1f6767eec1a
Tests working with separate test-epocroot.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
18 |
# So the count of 5 errors here is not actually accurate (AFAIK there are only 4) |
d1f6767eec1a
Tests working with separate test-epocroot.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
19 |
|
d1f6767eec1a
Tests working with separate test-epocroot.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
20 |
|
3 | 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 |
||
140
5e708570518b
variant platform test
Richard Taylor <richard.i.taylor@nokia.com>
parents:
20
diff
changeset
|
36 |
t.mustmatch_singleline = ["[1-9] checksource errors found"] |
5e708570518b
variant platform test
Richard Taylor <richard.i.taylor@nokia.com>
parents:
20
diff
changeset
|
37 |
|
3 | 38 |
t.returncode = 1 |
39 |
t.run("windows") |
|
40 |
return t |