Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles fix
authorDean Draper <dean.draper@nokia.com>
Mon, 29 Mar 2010 21:47:54 +0100
branchfix
changeset 418 453ba60b5b89
parent 417 ea9157619e03
child 419 398b104e713e
Addition of test for SF Bug 2134 fix: Raptor does not pass overridden make variables into its makefiles
sbsv2/raptor/test/smoke_suite/cli_makevar_override.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbsv2/raptor/test/smoke_suite/cli_makevar_override.py	Mon Mar 29 21:47:54 2010 +0100
@@ -0,0 +1,38 @@
+#
+# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+# All rights reserved.
+# This component and the accompanying materials are made available
+# under the terms of the License "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+#
+# Initial Contributors:
+# Nokia Corporation - initial contribution.
+#
+# Contributors:
+#
+# Description: 
+#
+
+# Checks that functionality for overriding makefile varaibles at the command no longer works
+
+
+from raptor_tests import SmokeTest
+
+def run():
+	t = SmokeTest()
+	t.name = "cli_makevar_overide"
+	t.description = "Attempt to override a makefile var at the command line."
+	t.usebash = True
+	
+	bldinf = "smoke_suite/test_resources/basics/helloworld/bld.inf"
+	cmd1 = "sbs -b %s REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE} HOSTPLATFORM_DIR=unlikelydir" % bldinf
+	cmd2 = "grep -i 'unlikelydir' ${SBSMAKEFILE}"
+	t.command = cmd1 + " && " + cmd2
+
+	t.mustmatch_singleline = ["2"]
+	
+	t.returncode = 2
+	t.run()
+	return t
+	
\ No newline at end of file