13
|
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 |
# Checks that functionality for overriding makefile varaibles at the command no longer works
|
|
18 |
# The mechanism for dealing with this was removed as the fix for SF bug 2134
|
|
19 |
# On the CLI, "something=something" is now treated as a target rather than a variable assignment
|
|
20 |
|
|
21 |
from raptor_tests import SmokeTest
|
|
22 |
|
|
23 |
def run():
|
|
24 |
t = SmokeTest()
|
|
25 |
t.name = "cli_makevar_overide"
|
|
26 |
t.id = "0117"
|
|
27 |
t.description = "Attempt to override a makefile var at the command line."
|
|
28 |
t.usebash = True
|
|
29 |
|
|
30 |
t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE} HOSTPLATFORM_DIR=unlikelydir"
|
|
31 |
|
|
32 |
t.mustmatch = ["sbs: warning: CLEAN, CLEANEXPORT and a REALLYCLEAN should not be combined with other targets as the result is unpredictable"]
|
|
33 |
|
|
34 |
t.warnings = 1
|
|
35 |
t.run()
|
|
36 |
|
|
37 |
return t
|
|
38 |
|