sbsv2/raptor/test/smoke_suite/commandline.py
branchfix
changeset 170 d1af983e283d
parent 5 593a8820b912
child 171 083d88a8550e
equal deleted inserted replaced
159:9758784ab2d3 170:d1af983e283d
     2 
     2 
     3 from raptor_tests import SmokeTest
     3 from raptor_tests import SmokeTest
     4 
     4 
     5 def run():
     5 def run():
     6 	t = SmokeTest()
     6 	t = SmokeTest()
     7 	t.id = "91a"
     7 	t.id = "85a"
     8 	t.name = "commandline_nodefaults"
     8 	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."""
     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."""
    10 	t.usebash = True
    10 	t.usebash = True
    11 			
    11 			
    12 	t.command = """
    12 	t.command = """
    13 		TMPDIR="build/commandline_testdefaults";
    13 		TMPDIR="build/commandline_testdefaults";
    14 		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
    14 		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
    15 		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
    15 		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
    16 m	""" 
    16 	""" 
    17 		
    17 		
    18 	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
    18 	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
    19 	t.warnings = 1
    19 	t.warnings = 1
    20 	t.result = t.run()
    20 	t.run()
       
    21 
       
    22 	t.id = "0085"
       
    23 	t.name = "commandline"
    21 	return t
    24 	return t