equal
deleted
inserted
replaced
|
1 # -*- coding: iso-8859-1 -*- This line *must* be on the first line of the file! |
|
2 # |
|
3 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 # All rights reserved. |
|
5 # This component and the accompanying materials are made available |
|
6 # under the terms of the License "Eclipse Public License v1.0" |
|
7 # which accompanies this distribution, and is available |
|
8 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 # |
|
10 # Initial Contributors: |
|
11 # Nokia Corporation - initial contribution. |
|
12 # |
|
13 # Contributors: |
|
14 # |
|
15 # Description: |
|
16 # |
|
17 |
|
18 |
|
19 from raptor_tests import SmokeTest |
|
20 |
|
21 def run(): |
|
22 |
|
23 t = SmokeTest() |
|
24 |
|
25 # Should have returncode of 1 and output 1 error, but not cause a traceback |
|
26 t.returncode = 1 |
|
27 t.errors = 1 |
|
28 t.mustmatch = ["sbs: error: Non-ASCII character in argument or command file"] |
|
29 |
|
30 result = SmokeTest.PASS |
|
31 |
|
32 t.id = "0091a" |
|
33 t.name = "non_ascii_argument" |
|
34 |
|
35 # The dash in "-c" is an en dash, not a normal ASCII dash. |
|
36 t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf –c armv5" |
|
37 |
|
38 t.run() |
|
39 if t.result == SmokeTest.FAIL: |
|
40 result = SmokeTest.FAIL |
|
41 |
|
42 t.id = "0091b" |
|
43 t.name = "non_ascii_commandfile" |
|
44 |
|
45 t.command = "sbs --command=smoke_suite/test_resources/non_ascii/cmd.txt" |
|
46 |
|
47 t.run() |
|
48 if t.result == SmokeTest.FAIL: |
|
49 result = SmokeTest.FAIL |
|
50 |
|
51 t.id = "91" |
|
52 t.name = "non_ascii" |
|
53 t.result = result |
|
54 t.print_result() |
|
55 return t |
|
56 |