194
|
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.description = "Set of tests for commandline option validation e.g. checking that the specified make engine exists"
|
|
22 |
|
|
23 |
|
|
24 |
t.usebash = True
|
|
25 |
t.errors = 1
|
|
26 |
t.returncode = 1
|
|
27 |
t.exceptions = 0
|
|
28 |
base_command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE}"
|
|
29 |
|
196
|
30 |
t.id = "42562a"
|
194
|
31 |
t.name = "validate_makeengine_nonexist"
|
|
32 |
t.command = base_command + " -e amakeenginethatdoesnotexist"
|
196
|
33 |
t.mustmatch = ["Unable to use make engine: 'amakeenginethatdoesnotexist' does not appear to be a make engine - no settings found for it"]
|
194
|
34 |
|
|
35 |
t.run()
|
|
36 |
|
196
|
37 |
t.id = "43562b"
|
194
|
38 |
t.mustmatch = ["Unable to use make engine: 'arm' is not a build engine \(it's a variant but it does not extend 'make_engine'"]
|
|
39 |
t.name = "validate_makeengine_is_a_non_makenegine_variant"
|
|
40 |
t.command = base_command + " -e arm"
|
|
41 |
t.run()
|
|
42 |
|
196
|
43 |
t.id = "43562"
|
194
|
44 |
t.name = "input_validation"
|
|
45 |
t.print_result()
|
|
46 |
return t
|