sbsv2/raptor/test/smoke_suite/cli_makevar_override.py
author Dean Draper <dean.draper@nokia.com>
Tue, 30 Mar 2010 20:25:06 +0100
branchfix
changeset 423 48d025ecec3c
parent 420 220fb389a872
permissions -rw-r--r--
Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
418
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     1
#
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     2
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     3
# All rights reserved.
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     4
# This component and the accompanying materials are made available
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     6
# which accompanies this distribution, and is available
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     8
#
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
     9
# Initial Contributors:
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    11
#
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    12
# Contributors:
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    13
#
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    14
# Description: 
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    15
#
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    16
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    17
# Checks that functionality for overriding makefile varaibles at the command no longer works
423
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    18
# The mechanism for dealing with this was removed as the fix for SF bug 2134
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    19
# On the CLI, "something=something" is now treated as a target rather than a variable assignment
418
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    20
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    21
from raptor_tests import SmokeTest
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    22
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    23
def run():
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    24
	t = SmokeTest()
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    25
	t.name = "cli_makevar_overide"
423
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    26
	t.id = "0117"
418
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    27
	t.description = "Attempt to override a makefile var at the command line."
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    28
	t.usebash = True
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    29
	
423
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    30
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE} HOSTPLATFORM_DIR=unlikelydir"  
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    31
	
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    32
	t.mustmatch = ["sbs: warning: CLEAN, CLEANEXPORT and a REALLYCLEAN should not be combined with other targets as the result is unpredictable"]
418
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    33
	
419
398b104e713e Small tweek to let the test framework know about an expected raptor warning.
Dean Draper <dean.draper@nokia.com>
parents: 418
diff changeset
    34
	t.warnings = 1
418
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    35
	t.run()
423
48d025ecec3c Mods to cli_makevar_override.py test (removal makefile grep and change to pass on correct expected raptor warning)
Dean Draper <dean.draper@nokia.com>
parents: 420
diff changeset
    36
	
418
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    37
	return t
453ba60b5b89 Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
Dean Draper <dean.draper@nokia.com>
parents:
diff changeset
    38