602
|
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:
|
|
15 |
# General commandline option handling tests which aren't appropriate as unit tests.
|
|
16 |
|
|
17 |
from raptor_tests import SmokeTest
|
|
18 |
|
|
19 |
def run():
|
|
20 |
t = SmokeTest()
|
|
21 |
t.id = "85a"
|
|
22 |
t.name = "commandline_nodefaults"
|
|
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."""
|
|
24 |
t.usebash = True
|
|
25 |
|
|
26 |
t.command = """
|
|
27 |
TMPDIR="build/commandline_testdefaults";
|
|
28 |
cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
|
|
29 |
sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
|
|
30 |
"""
|
|
31 |
|
|
32 |
t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
|
|
33 |
t.warnings = 1
|
|
34 |
t.run()
|
|
35 |
|
|
36 |
t.id = "0085"
|
|
37 |
t.name = "commandline"
|
|
38 |
return t
|