sbsv2/raptor/test/smoke_suite/openenvironment.py
changeset 3 e1eecf4d390d
child 40 afaf81347e0a
equal deleted inserted replaced
1:be27ed110b50 3:e1eecf4d390d
       
     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, getsymbianversion
       
    18 
       
    19 def run():
       
    20 	t = SmokeTest()
       
    21 	t.id = "39"
       
    22 	t.name = "openenvironment"
       
    23 	t.description = "Test STDEXE, STDLIB and STDDLL creation; Test open " + \
       
    24 			"environment project linking against a symbian environment " + \
       
    25 			"library; Test symbian environment project linking against an " + \
       
    26 			"open environment library"
       
    27 	t.usebash = True
       
    28 	t.command = "sbs -k -b smoke_suite/test_resources/oe/group/bld.inf -c armv5 " \
       
    29 			+ "-c winscw -m ${SBSMAKEFILE} -f ${SBSLOGFILE}; grep -E \"(armlink|checklib)\" ${SBSLOGFILE} "
       
    30 	t.targets = [
       
    31 		"$(EPOCROOT)/epoc32/release/armv5/urel/t_oedll.dll.sym",
       
    32 		"$(EPOCROOT)/epoc32/release/armv5/urel/symbian_test.lib",
       
    33 		"$(EPOCROOT)/epoc32/release/armv5/urel/t_oeexe.exe.map",
       
    34 		"$(EPOCROOT)/epoc32/release/armv5/urel/t_oelib.lib",
       
    35 		"$(EPOCROOT)/epoc32/release/armv5/urel/t_oeexe.exe",
       
    36 		"$(EPOCROOT)/epoc32/release/armv5/urel/t_oeexe.exe.sym",
       
    37 		"$(EPOCROOT)/epoc32/release/armv5/urel/t_oedll.dll.map",
       
    38 		"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oedll.dll.sym",
       
    39 		"$(EPOCROOT)/epoc32/release/armv5/udeb/symbian_test.lib",
       
    40 		"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oeexe.exe.map",
       
    41 		"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oelib.lib",
       
    42 		"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oeexe.exe",
       
    43 		"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oeexe.exe.sym",
       
    44 		"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oedll.dll.map",
       
    45 		"$(EPOCROOT)/epoc32/release/armv5/lib/t_oedll.dso",
       
    46 		"$(EPOCROOT)/epoc32/release/armv5/lib/t_oedll{000a0000}.dso",
       
    47 		"$(EPOCROOT)/epoc32/release/winscw/urel/symbian_test.lib",
       
    48 		"$(EPOCROOT)/epoc32/release/winscw/urel/t_oedll.dll",
       
    49 		"$(EPOCROOT)/epoc32/release/winscw/urel/t_oeexe.exe.map",
       
    50 		"$(EPOCROOT)/epoc32/release/winscw/urel/t_oelib.lib",
       
    51 		"$(EPOCROOT)/epoc32/release/winscw/urel/t_oeexe.exe",
       
    52 		"$(EPOCROOT)/epoc32/release/winscw/urel/t_oedll.dll.map",
       
    53 		"$(EPOCROOT)/epoc32/release/winscw/udeb/symbian_test.lib",
       
    54 		"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oedll.lib",
       
    55 		"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oedll.dll",
       
    56 		"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oelib.lib"
       
    57 		]
       
    58 	t.addbuildtargets('smoke_suite/test_resources/oe/group/bld.inf', [
       
    59 		"t_oedll_dll/armv5/urel/t_oedll{000a0000}.dso",
       
    60 		"t_oedll_dll/armv5/urel/t_oedll_urel_objects.via",
       
    61 		"t_oedll_dll/armv5/urel/t_oedll.o",
       
    62 		"t_oedll_dll/armv5/urel/t_oedll.o.d",
       
    63                 # either prep file can exist - luck determines which
       
    64                  ['t_oedll_dll/armv5/urel/t_oedll.prep',
       
    65                   't_oedll_dll/armv5/udeb/t_oedll.prep'],
       
    66 		"t_oedll_dll/armv5/urel/t_oedll{000a0000}.def",
       
    67 		"t_oedll_dll/armv5/udeb/t_oedll{000a0000}.dso",
       
    68 		"t_oedll_dll/armv5/udeb/t_oedll_udeb_objects.via",
       
    69 		"t_oedll_dll/armv5/udeb/t_oedll.o",
       
    70 		"t_oedll_dll/armv5/udeb/t_oedll.o.d",
       
    71 		"t_oedll_dll/armv5/udeb/t_oedll{000a0000}.def",
       
    72 		"symbian_test_lib/armv5/urel/symbian_test_urel_objects.via",
       
    73 		"symbian_test_lib/armv5/urel/symbian_lib.o.d",
       
    74 		"symbian_test_lib/armv5/urel/symbian_lib.o",
       
    75 		"symbian_test_lib/armv5/udeb/symbian_test_udeb_objects.via",
       
    76 		"symbian_test_lib/armv5/udeb/symbian_lib.o.d",
       
    77 		"symbian_test_lib/armv5/udeb/symbian_lib.o",
       
    78 		"wrong_newlib_test_oeexe_exe/armv5/urel/wrong_newlib_test_oeexe_urel_objects.via",
       
    79 		"wrong_newlib_test_oeexe_exe/armv5/urel/t_oeexe.o",
       
    80 		"wrong_newlib_test_oeexe_exe/armv5/urel/t_oeexe.o.d",
       
    81 		"wrong_newlib_test_oeexe_exe/armv5/udeb/t_oeexe.o",
       
    82 		"wrong_newlib_test_oeexe_exe/armv5/udeb/wrong_newlib_test_oeexe_udeb_objects.via",
       
    83 		"wrong_newlib_test_oeexe_exe/armv5/udeb/t_oeexe.o.d",
       
    84 		"wrong_newlib_seexe_exe/armv5/urel/wrong_newlib_seexe_urel_objects.via",
       
    85 		"wrong_newlib_seexe_exe/armv5/urel/wrong_newlib_symbian.o",
       
    86 		"wrong_newlib_seexe_exe/armv5/urel/wrong_newlib_symbian.o.d",
       
    87 		"wrong_newlib_seexe_exe/armv5/udeb/wrong_newlib_seexe_udeb_objects.via",
       
    88 		"wrong_newlib_seexe_exe/armv5/udeb/wrong_newlib_symbian.o",
       
    89 		"wrong_newlib_seexe_exe/armv5/udeb/wrong_newlib_symbian.o.d",
       
    90 		"t_oeexe_exe/armv5/urel/t_oeexe_urel_objects.via",
       
    91 		"t_oeexe_exe/armv5/urel/t_oeexe.o",
       
    92 		"t_oeexe_exe/armv5/urel/t_oeexe.o.d",
       
    93 		"t_oeexe_exe/armv5/udeb/t_oeexe.o",
       
    94 		"t_oeexe_exe/armv5/udeb/t_oeexe.o.d",
       
    95 		"t_oeexe_exe/armv5/udeb/t_oeexe_udeb_objects.via",
       
    96 		"t_oelib_lib/armv5/urel/t_oelib_urel_objects.via",
       
    97 		"t_oelib_lib/armv5/urel/t_oelib.o",
       
    98 		"t_oelib_lib/armv5/urel/t_oelib.o.d",
       
    99 		"t_oelib_lib/armv5/udeb/t_oelib.o",
       
   100 		"t_oelib_lib/armv5/udeb/t_oelib_udeb_objects.via",
       
   101 		"t_oelib_lib/armv5/udeb/t_oelib.o.d",
       
   102 		"t_oedll_dll/winscw/urel/t_oedll.dep",
       
   103 		"t_oedll_dll/winscw/urel/t_oedll.lib",
       
   104 		"t_oedll_dll/winscw/urel/t_oedll_SYM_.cpp",
       
   105 		"t_oedll_dll/winscw/urel/t_oedll.dll",
       
   106 		"t_oedll_dll/winscw/urel/t_oedll_UID_.o",
       
   107 		"t_oedll_dll/winscw/urel/t_oedll_SYM_.o",
       
   108 		"t_oedll_dll/winscw/urel/t_oedll.o",
       
   109 		"t_oedll_dll/winscw/urel/t_oedll_UID_.o.d",
       
   110 		"t_oedll_dll/winscw/urel/t_oedll.o.d",
       
   111 		"t_oedll_dll/winscw/urel/t_oedll_UID_.dep",
       
   112 		"t_oedll_dll/winscw/urel/t_oedll.sym",
       
   113 		"t_oedll_dll/winscw/urel/t_oedll.UID.CPP",
       
   114 		"t_oedll_dll/winscw/urel/t_oedll_SYM_.o.d",
       
   115 		"t_oedll_dll/winscw/urel/t_oedll_SYM_.dep",
       
   116                 # The prep.def file can be in urel or udeb
       
   117                 ['t_oedll_dll/winscw/urel/t_oedll.prep.def',
       
   118                  't_oedll_dll/winscw/udeb/t_oedll.prep.def'],
       
   119 		"t_oedll_dll/winscw/urel/t_oedll.def",
       
   120 		"t_oedll_dll/winscw/urel/t_oedll.inf",
       
   121 		"t_oedll_dll/winscw/udeb/t_oedll.dep",
       
   122 		"t_oedll_dll/winscw/udeb/t_oedll.lib",
       
   123 		"t_oedll_dll/winscw/udeb/t_oedll_SYM_.cpp",
       
   124 		"t_oedll_dll/winscw/udeb/t_oedll.dll",
       
   125 		"t_oedll_dll/winscw/udeb/t_oedll_UID_.o",
       
   126 		"t_oedll_dll/winscw/udeb/t_oedll_SYM_.o",
       
   127 		"t_oedll_dll/winscw/udeb/t_oedll.o",
       
   128 		"t_oedll_dll/winscw/udeb/t_oedll_UID_.o.d",
       
   129 		"t_oedll_dll/winscw/udeb/t_oedll.o.d",
       
   130 		"t_oedll_dll/winscw/udeb/t_oedll_UID_.dep",
       
   131 		"t_oedll_dll/winscw/udeb/t_oedll.sym",
       
   132 		"t_oedll_dll/winscw/udeb/t_oedll.UID.CPP",
       
   133 		"t_oedll_dll/winscw/udeb/t_oedll_SYM_.o.d",
       
   134 		"t_oedll_dll/winscw/udeb/t_oedll_SYM_.dep",
       
   135 		"t_oedll_dll/winscw/udeb/t_oedll.def",
       
   136 		"t_oedll_dll/winscw/udeb/t_oedll.inf",
       
   137 		"symbian_test_lib/winscw/urel/symbian_lib.dep",
       
   138 		"symbian_test_lib/winscw/urel/symbian_lib.o.d",
       
   139 		"symbian_test_lib/winscw/urel/symbian_lib.o",
       
   140 		"symbian_test_lib/winscw/udeb/symbian_lib.dep",
       
   141 		"symbian_test_lib/winscw/udeb/symbian_lib.o.d",
       
   142 		"symbian_test_lib/winscw/udeb/symbian_lib.o",
       
   143 		"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe_UID_.dep",
       
   144 		"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe_UID_.o.d",
       
   145 		"wrong_newlib_test_oeexe_exe/winscw/urel/t_oeexe_wins.dep",
       
   146 		"wrong_newlib_test_oeexe_exe/winscw/urel/t_oeexe_wins.o",
       
   147 		"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe.UID.CPP",
       
   148 		"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe_UID_.o",
       
   149 		"wrong_newlib_test_oeexe_exe/winscw/urel/t_oeexe_wins.o.d",
       
   150 		"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe_UID_.dep",
       
   151 		"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe_UID_.o.d",
       
   152 		"wrong_newlib_test_oeexe_exe/winscw/udeb/t_oeexe_wins.dep",
       
   153 		"wrong_newlib_test_oeexe_exe/winscw/udeb/t_oeexe_wins.o",
       
   154 		"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe.UID.CPP",
       
   155 		"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe_UID_.o",
       
   156 		"wrong_newlib_test_oeexe_exe/winscw/udeb/t_oeexe_wins.o.d",
       
   157 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe_UID_.dep",
       
   158 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe_UID_.o",
       
   159 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_symbian.dep",
       
   160 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_symbian.o",
       
   161 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_symbian.o.d",
       
   162 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe.UID.CPP",
       
   163 		"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe_UID_.o.d",
       
   164 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe_UID_.dep",
       
   165 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe_UID_.o",
       
   166 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_symbian.dep",
       
   167 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_symbian.o",
       
   168 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_symbian.o.d",
       
   169 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe.UID.CPP",
       
   170 		"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe_UID_.o.d",
       
   171 		"t_oeexe_exe/winscw/urel/t_oeexe_UID_.o",
       
   172 		"t_oeexe_exe/winscw/urel/t_oeexe_UID_.dep",
       
   173 		"t_oeexe_exe/winscw/urel/t_oeexe_wins.dep",
       
   174 		"t_oeexe_exe/winscw/urel/t_oeexe_wins.o",
       
   175 		"t_oeexe_exe/winscw/urel/t_oeexe_UID_.o.d",
       
   176 		"t_oeexe_exe/winscw/urel/t_oeexe.UID.CPP",
       
   177 		"t_oeexe_exe/winscw/urel/t_oeexe_wins.o.d",
       
   178 		"t_oeexe_exe/winscw/udeb/t_oeexe_UID_.o",
       
   179 		"t_oeexe_exe/winscw/udeb/t_oeexe_UID_.dep",
       
   180 		"t_oeexe_exe/winscw/udeb/t_oeexe_wins.dep",
       
   181 		"t_oeexe_exe/winscw/udeb/t_oeexe_wins.o",
       
   182 		"t_oeexe_exe/winscw/udeb/t_oeexe_UID_.o.d",
       
   183 		"t_oeexe_exe/winscw/udeb/t_oeexe.UID.CPP",
       
   184 		"t_oeexe_exe/winscw/udeb/t_oeexe_wins.o.d",
       
   185 		"t_oelib_lib/winscw/urel/t_oelib.o",
       
   186 		"t_oelib_lib/winscw/urel/t_oelib.o.d",
       
   187 		"t_oelib_lib/winscw/urel/t_oelib.dep",
       
   188 		"t_oelib_lib/winscw/udeb/t_oelib.o",
       
   189 		"t_oelib_lib/winscw/udeb/t_oelib.o.d",
       
   190 		"t_oelib_lib/winscw/udeb/t_oelib.dep"
       
   191 	])
       
   192 	
       
   193 	# On 9.4 the open environment checks for
       
   194 	# mixed symbianc++ and stdc++ new/delete won't fail
       
   195 	if getsymbianversion() != "9.4":
       
   196 		t.mustmatch = [
       
   197 			'.*checklib: error: library .*epoc32.release.armv5.urel.symbian_test.lib is incompatible with standard.*',
       
   198 			'.*checklib: error: library .*epoc32.release.armv5.urel.t_oelib.lib is incompatible with Symbian.*',
       
   199 			'.*checklib: error: library .*epoc32.release.armv5.udeb.symbian_test.lib is incompatible with standard.*',
       
   200 			'.*checklib: error: library .*epoc32.release.armv5.udeb.t_oelib.lib is incompatible with Symbian.*',
       
   201 			'.*checklib: error: library .*epoc32.release.winscw.urel.symbian_test.lib is incompatible with standard.*',
       
   202 			'.*checklib: error: library .*epoc32.release.winscw.urel.t_oelib.lib is incompatible with Symbian.*',
       
   203 			'.*checklib: error: library .*epoc32.release.winscw.udeb.t_oelib.lib is incompatible with Symbian.*',
       
   204 			'.*checklib: error: library .*epoc32.release.winscw.udeb.symbian_test.lib is incompatible with standard.*',
       
   205 			'.*armlink.*oe_exe_without_stdcpp.*scppnwdl.dso.*',
       
   206 			'.*armlink.*symbian_exe_with_stdcpp.*stdnew.dso.*',
       
   207 			'.*armlink.*oedll.*stdnew.dso.*',
       
   208 			'.*armlink.*oeexe.*stdnew.dso.*',
       
   209 			'.*armlink.*symbian_newlib.exe.*scppnwdl.dso.*'
       
   210 		]
       
   211 		t.mustnotmatch = [
       
   212 			'.*armlink.*oe_exe_without_stdcpp.*stdnew.dso.*',
       
   213 			'.*armlink.*symbian_exe_with_stdcpp.*scppnwdl.dso.*',
       
   214 			'.*armlink.*oedll.*scppnwdl.dso.*',
       
   215 			'.*armlink.*oeexe.*scppnwdl.dso.*',
       
   216 			'.*armlink.*symbian_newlib.exe.*stdnew.dso.*'
       
   217 		]
       
   218 	else: 
       
   219 		# these files will build for 9.4
       
   220 		t.targets.extend([
       
   221 			"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_oeexe.exe",
       
   222 			"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_oeexe.exe.map",
       
   223 			"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_oeexe.exe",
       
   224 			"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_oeexe.exe.map",
       
   225 			"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_seexe.exe",
       
   226 			"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_seexe.exe.map",
       
   227 			"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_seexe.exe",
       
   228 			"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_seexe.exe.map",
       
   229 			"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_oeexe.exe",
       
   230 			"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_oeexe.exe",
       
   231 			"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_seexe.exe",
       
   232 			"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_seexe.exe",
       
   233 			"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_oeexe.exe.map",
       
   234 			"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_oeexe.exe.map",
       
   235 			"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_seexe.exe.map",
       
   236 			"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_seexe.exe.map",
       
   237 			"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_oeexe.exe.sym",
       
   238 			"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_oeexe.exe.sym",
       
   239 			"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_seexe.exe.sym",
       
   240 			"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_seexe.exe.sym"
       
   241 		])
       
   242 	t.run()
       
   243 	return t