sbsv2/raptor/test/smoke_suite/commandline.py
author Iain Williamson <iain.williamson@nokia.com>
Mon, 25 Jan 2010 17:17:52 +0000
branchfix
changeset 170 d1af983e283d
parent 5 593a8820b912
child 171 083d88a8550e
permissions -rw-r--r--
Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates. Renaming qt_helloworld, commandline and whatcomp to match the test and file names. Allocating ids to qt_helloworld and apply_usecases. Fixing typo in commandline test and enabling it so it actually runs.

# General commandline option handling tests which aren't appropriate as unit tests.

from raptor_tests import SmokeTest

def run():
	t = SmokeTest()
	t.id = "85a"
	t.name = "commandline_nodefaults"
	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."""
	t.usebash = True
			
	t.command = """
		TMPDIR="build/commandline_testdefaults";
		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
	""" 
		
	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
	t.warnings = 1
	t.run()

	t.id = "0085"
	t.name = "commandline"
	return t