sbsv2/raptor/test/smoke_suite/commandline.py
branchwip
changeset 323 a186d9720073
parent 171 083d88a8550e
equal deleted inserted replaced
320:49da1e705345 323:a186d9720073
       
     1 #
       
     2 # Copyright (c) 2009-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: 
     1 # General commandline option handling tests which aren't appropriate as unit tests.
    15 # General commandline option handling tests which aren't appropriate as unit tests.
     2 
    16 
     3 from raptor_tests import SmokeTest
    17 from raptor_tests import SmokeTest
     4 
    18 
     5 def run():
    19 def run():
     6 	t = SmokeTest()
    20 	t = SmokeTest()
     7 	t.id = "91a"
    21 	t.id = "85a"
     8 	t.name = "commandline_nodefaults"
    22 	t.name = "commandline_nodefaults"
     9 	t.description = """Test that raptor complains if you run it without specifying any components and there is no default bld.inf or system definition in the current directory."""
    23 	t.description = """Test that raptor complains if you run it without specifying any components and there is no default bld.inf or system definition in the current directory."""
    10 	t.usebash = True
    24 	t.usebash = True
    11 			
    25 			
    12 	t.command = """
    26 	t.command = """
    13 		TMPDIR="build/commandline_testdefaults";
    27 		TMPDIR="build/commandline_testdefaults";
    14 		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
    28 		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
    15 		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
    29 		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
    16 m	""" 
    30 	""" 
    17 		
    31 		
    18 	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
    32 	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
    19 	t.warnings = 1
    33 	t.warnings = 1
    20 	t.result = t.run()
    34 	t.run()
       
    35 
       
    36 	t.id = "0085"
       
    37 	t.name = "commandline"
    21 	return t
    38 	return t