--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sbsv2/raptor/test/smoke_suite/input_validation.py Sat Feb 06 10:53:21 2010 +0000
@@ -0,0 +1,46 @@
+#
+# 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:
+#
+
+from raptor_tests import SmokeTest
+
+def run():
+ t = SmokeTest()
+ t.description = "Set of tests for commandline option validation e.g. checking that the specified make engine exists"
+
+ t.mustmatch = ["Unable to use make engine: 'amakeenginethatdoesnotexist' does not appear to be a make engine - no settings found for it"]
+
+ t.usebash = True
+ t.errors = 1
+ t.returncode = 1
+ t.exceptions = 0
+ base_command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE}"
+
+ t.id = "114a"
+ t.name = "validate_makeengine_nonexist"
+ t.command = base_command + " -e amakeenginethatdoesnotexist"
+
+ t.run()
+
+ t.id = "114b"
+ t.mustmatch = ["Unable to use make engine: 'arm' is not a build engine \(it's a variant but it does not extend 'make_engine'"]
+ t.name = "validate_makeengine_is_a_non_makenegine_variant"
+ t.command = base_command + " -e arm"
+ t.run()
+
+ t.id = "114"
+ t.name = "input_validation"
+ t.print_result()
+ return t