3
|
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 CheckWhatSmokeTest
|
|
18 |
import re, os
|
|
19 |
|
|
20 |
def run():
|
|
21 |
t = CheckWhatSmokeTest()
|
|
22 |
t.id = "67"
|
|
23 |
t.name = "implib_whatlog"
|
|
24 |
t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -f -" \
|
|
25 |
" -m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog LIBRARY"
|
|
26 |
componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_implib"))
|
|
27 |
t.regexlinefilter = re.compile("^<(whatlog|build>)")
|
|
28 |
t.hostossensitive = False
|
|
29 |
t.usebash = True
|
|
30 |
# ABIv1 .lib files are not generated on Linux
|
|
31 |
t.targets = [
|
|
32 |
"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso",
|
|
33 |
"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso",
|
|
34 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"
|
|
35 |
]
|
|
36 |
t.stdout = [
|
|
37 |
"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='winscw_udeb.whatlog'>",
|
|
38 |
"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib</build>",
|
|
39 |
"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='winscw_urel.whatlog'>",
|
|
40 |
"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib</build>",
|
|
41 |
"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='armv5_udeb.whatlog'>",
|
|
42 |
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso</build>",
|
|
43 |
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso</build>",
|
|
44 |
"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='armv5_urel.whatlog'>",
|
|
45 |
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso</build>",
|
|
46 |
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso</build>"
|
|
47 |
]
|
|
48 |
t.run("linux")
|
|
49 |
if t.result == CheckWhatSmokeTest.SKIP:
|
|
50 |
t.targets.extend([
|
|
51 |
"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.lib",
|
|
52 |
"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.lib"
|
|
53 |
])
|
|
54 |
t.stdout.extend([
|
|
55 |
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.lib</build>",
|
|
56 |
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.lib</build>"
|
|
57 |
])
|
|
58 |
t.run("windows")
|
|
59 |
|
|
60 |
return t
|