591
|
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 = "113"
|
|
22 |
t.name = "make_engine_errors"
|
|
23 |
t.description = "Errors reported by gmake and emake should be escaped to ensure that the logs are valid XML"
|
|
24 |
|
|
25 |
t.mustmatch_singleline = ["Circular b <- a dependency",
|
|
26 |
"non_existent_&_needs_escaping.txt"]
|
|
27 |
|
|
28 |
t.mustnotmatch_singleline = ["Circular b <- a dependency",
|
|
29 |
"non_existent_&_needs_escaping.txt"]
|
|
30 |
|
|
31 |
t.usebash = True
|
|
32 |
t.errors = 1
|
|
33 |
t.returncode = 1
|
|
34 |
base_command = "sbs --no-depend-generate -b smoke_suite/test_resources/make_engine_errors/bld.inf -f-"
|
|
35 |
|
|
36 |
t.id = "113a"
|
|
37 |
t.name = "gmake_engine_errors"
|
|
38 |
t.command = base_command + " -e make"
|
|
39 |
t.run()
|
|
40 |
|
|
41 |
t.id = "113b"
|
|
42 |
t.name = "emake_engine_errors"
|
|
43 |
t.command = base_command + " -e emake"
|
|
44 |
t.run()
|
|
45 |
|
|
46 |
t.id = "113c"
|
|
47 |
t.name = "emake_engine_errors_with_merged_streams"
|
|
48 |
t.command = base_command + " -e emake --mo=--emake-mergestreams=1"
|
|
49 |
t.run()
|
|
50 |
|
|
51 |
t.id = "113"
|
|
52 |
t.name = "make_engine_errors"
|
|
53 |
t.print_result()
|
|
54 |
return t
|