|
1 # |
|
2 # Copyright (c) 2009 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 # |
|
16 |
|
17 from raptor_tests import SmokeTest |
|
18 from os import environ |
|
19 |
|
20 from raptor_tests import SmokeTest |
|
21 |
|
22 def run(): |
|
23 |
|
24 commonbuildfiles = [ |
|
25 "createstaticdll_dll/armv5/urel/CreateStaticDLL.o", |
|
26 "createstaticdll_dll/armv5/urel/CreateStaticDLL.o.d", |
|
27 "createstaticdll_dll/winscw/urel/CreateStaticDLL.o", |
|
28 "createstaticdll_dll/winscw/urel/CreateStaticDLL.o.d", |
|
29 "createstaticdll_dll/winscw/urel/createstaticdll.UID.CPP", |
|
30 "createstaticdll_dll/winscw/urel/createstaticdll_UID_.o.d" |
|
31 ] |
|
32 |
|
33 t = SmokeTest() |
|
34 t.id = "82" |
|
35 t.name = "output_control_sbs_build_dir" |
|
36 t.description = "Test building intermediate files into a location other than $EPOCROOT/epoc32/build. Use SBS_BUILD_DIR. environment variable." |
|
37 t.sbs_build_dir = environ['EPOCROOT'].replace("\\","/").rstrip("/") + '/anotherbuilddir' |
|
38 t.environ['SBS_BUILD_DIR'] = t.sbs_build_dir |
|
39 t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5_urel -c winscw_urel" |
|
40 t.targets = [ |
|
41 "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", |
|
42 "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", |
|
43 "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", |
|
44 "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll", |
|
45 "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll", |
|
46 "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll.map" |
|
47 |
|
48 ] |
|
49 t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', commonbuildfiles) |
|
50 t.run() |
|
51 |
|
52 return t |