sbsv2/raptor/test/smoke_suite/commandline.py
author timothy.murphy@nokia.com
Mon, 22 Feb 2010 19:11:51 +0000
branchfix
changeset 242 e083e4a62655
parent 171 083d88a8550e
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
171
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     1
#
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     2
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     3
# All rights reserved.
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     4
# This component and the accompanying materials are made available
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     6
# which accompanies this distribution, and is available
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     8
#
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     9
# Initial Contributors:
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
    10
# Nokia Corporation - initial contribution.
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
    11
#
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
    12
# Contributors:
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
    13
#
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
    14
# Description: 
5
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    15
# General commandline option handling tests which aren't appropriate as unit tests.
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    16
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    17
from raptor_tests import SmokeTest
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    18
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    19
def run():
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    20
	t = SmokeTest()
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 5
diff changeset
    21
	t.id = "85a"
5
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    22
	t.name = "commandline_nodefaults"
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    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."""
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    24
	t.usebash = True
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    25
			
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    26
	t.command = """
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    27
		TMPDIR="build/commandline_testdefaults";
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    28
		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    29
		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 5
diff changeset
    30
	""" 
5
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    31
		
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    32
	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    33
	t.warnings = 1
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 5
diff changeset
    34
	t.run()
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 5
diff changeset
    35
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 5
diff changeset
    36
	t.id = "0085"
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 5
diff changeset
    37
	t.name = "commandline"
5
593a8820b912 Team Wip branch
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    38
	return t