def run(): t = SmokeTest() t.id = "78" t.name = "dll_winscw_win32resource" t.description = """Test the construction of a custom WINSCW DLL containing Windows resources specified by win32_resource.""" t.command = "sbs -b smoke_suite/test_resources/simple_dll/win32resource/bld.inf -c winscw" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.lib", "$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll.map" ] t.addbuildtargets( 'smoke_suite/test_resources/simple_dll/win32resource/bld.inf', [ "createstaticdll_dll/winscw/udeb/CreateStaticDLL.o", "createstaticdll_dll/winscw/udeb/createstaticdll.UID.CPP", "createstaticdll_dll/winscw/udeb/createstaticdll_UID_.o", "createstaticdll_dll/winscw/udeb/gui.res", "createstaticdll_dll/winscw/udeb/gui.res.d", "createstaticdll_dll/winscw/urel/CreateStaticDLL.o", "createstaticdll_dll/winscw/urel/createstaticdll.UID.CPP", "createstaticdll_dll/winscw/urel/createstaticdll_UID_.o", "createstaticdll_dll/winscw/urel/gui.res", "createstaticdll_dll/winscw/urel/gui.res.d", ]) t.run() return t
def run(): t = SmokeTest() t.name = "dll_armv5_smp" t.id = "63" t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c " + \ "armv5 -c armv5.smp" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [ "createstaticdll_dll/armv5/udeb/CreateStaticDLL.o", "createstaticdll_dll/armv5/urel/CreateStaticDLL.o", "createstaticdll_dll/armv5smp/udeb/CreateStaticDLL.o", "createstaticdll_dll/armv5smp/urel/CreateStaticDLL.o" ]) t.run() return t
def run(): t = SmokeTest() t.id = "22" t.name = "defs_armv7" t.command = "sbs -b smoke_suite/test_resources/defs/group/bld.inf -c armv7" t.targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll.sym", "$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/deftest{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/deftest.dso", "$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll", "$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll.map", "$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll", "$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll.map", ] t.addbuildtargets( "smoke_suite/test_resources/defs/group/bld.inf", [ "deftest_/armv7/udeb/deftest_udeb_objects.via", "deftest_/armv7/udeb/test.o", "deftest_/armv7/urel/deftest_urel_objects.via", "deftest_/armv7/urel/test.o", ], ) t.run() return t
def run(): t = SmokeTest() t.id = "2" t.name = "exe_armv5_filtered" t.description = "Run exe_armv5 with a customised filter. Will create then" \ + " remove filter file" t.usebash = True t.command = "cp -f smoke_suite/test_resources/filter_test/testfilter.py ../python/plugins/testfilter.py " \ "&& chmod 600 ../python/plugins/testfilter.py " \ "&& sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 --filters=TestFilter " \ "&& rm -f ../python/plugins/testfilter.py*" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [ "test_/armv5/udeb/test.o", "test_/armv5/urel/test.o" ]) t.mustmatch = [ ".*Test Passed!.*" ] t.run() return t
def run(): t = SmokeTest() t.description = "test mmpkeyword: traces" t.id = "108a" t.name = "traces_mmpkeyword" t.command = "sbs -b smoke_suite/test_resources/tracecompiler/traceon/group/bld.inf -c armv5.tracecompiler" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/traceon.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/traceon.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/traces_keyword.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/traces_keyword.exe", "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/traceon/traces/traceon_exe/traceonTraces.h", "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/traceon/traces/traces_keyword_exe/traces_keywordTraces.h", "$(EPOCROOT)/epoc32/ost_dictionaries/traceon_exe_0x11100010_Dictionary.xml", "$(EPOCROOT)/epoc32/ost_dictionaries/traces_keyword_exe_0x11100011_Dictionary.xml", "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/traceon_exe_0x11100010_TraceDefinitions.h", "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/traces_keyword_exe_0x11100011_TraceDefinitions.h" ] t.addbuildtargets('smoke_suite/test_resources/tracecompiler/traceon/group/bld.inf', [ "traceon_exe/armv5/udeb/traceon.o", "traceon_exe/armv5/urel/traceon.o", "traceon_exe/tracecompile_traceon_exe_11100010.done", "traces_keyword_exe/armv5/udeb/traces_keyword.o", "traces_keyword_exe/armv5/urel/traces_keyword.o", "traces_keyword_exe/tracecompile_traces_keyword_exe_11100011.done", ]) t.run() t.id = "108" t.name = "tracecompiler_new" return t
def run(): t = SmokeTest() t.name = "dll_x86" t.description = "Build a basic DLL TARGETTYPE for x86" t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c x86" t.targets = [ "$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll.map", "$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll.map", "$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll.lib", "$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll{000a0000}.lib" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [ "createstaticdll_dll/x86/udeb/CreateStaticDLL.o", "createstaticdll_dll/x86/udeb/CreateStaticDLL.o.d", "createstaticdll_dll/x86/urel/CreateStaticDLL.o", "createstaticdll_dll/x86/urel/CreateStaticDLL.o.d", "createstaticdll_dll/x86/udeb/createstaticdll_udeb_objects.via", "createstaticdll_dll/x86/urel/createstaticdll_urel_objects.via", ["createstaticdll_dll/x86/udeb/createstaticdll.prep", "createstaticdll_dll/x86/urel/createstaticdll.prep"], ["createstaticdll_dll/x86/udeb/createstaticdll.lib.exp", "createstaticdll_dll/x86/urel/createstaticdll.lib.exp"] ]) t.run("windows") return t
def run(): t = SmokeTest() t.id = "78" t.name = "dll_winscw_win32resource" t.description = """Test the construction of a custom WINSCW DLL containing Windows resources specified by win32_resource.""" t.command = "sbs -b smoke_suite/test_resources/simple_dll/win32resource/bld.inf -c winscw" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.lib", "$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll.map" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/win32resource/bld.inf', [ "createstaticdll_dll/winscw/udeb/CreateStaticDLL.o", "createstaticdll_dll/winscw/udeb/createstaticdll.UID.CPP", "createstaticdll_dll/winscw/udeb/createstaticdll_UID_.o", "createstaticdll_dll/winscw/udeb/gui.res", "createstaticdll_dll/winscw/udeb/gui.res.d", "createstaticdll_dll/winscw/urel/CreateStaticDLL.o", "createstaticdll_dll/winscw/urel/createstaticdll.UID.CPP", "createstaticdll_dll/winscw/urel/createstaticdll_UID_.o", "createstaticdll_dll/winscw/urel/gui.res", "createstaticdll_dll/winscw/urel/gui.res.d", ]) t.run() return t
def run(): commonbuildfiles = [ "createstaticdll_dll/armv5/urel/CreateStaticDLL.o", "createstaticdll_dll/armv5/urel/CreateStaticDLL.o.d", "createstaticdll_dll/winscw/urel/CreateStaticDLL.o", "createstaticdll_dll/winscw/urel/CreateStaticDLL.o.d", "createstaticdll_dll/winscw/urel/createstaticdll.UID.CPP", "createstaticdll_dll/winscw/urel/createstaticdll_UID_.o.d" ] t = SmokeTest() t.id = "82" t.name = "output_control" t.description = "Test building intermediate files into a location other than $EPOCROOT/epoc32/build. Use SBS_BUILD_DIR. environment variable." t.sbs_build_dir = environ['EPOCROOT'].replace("\\","/").rstrip("/") + '/anotherbuilddir' t.environ['SBS_BUILD_DIR'] = t.sbs_build_dir t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5_urel -c winscw_urel" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll.map" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', commonbuildfiles) t.run() return t
def run(): t = SmokeTest() t.id = "17" t.name = "armv7_asmtest" t.command = "sbs -b smoke_suite/test_resources/asmtest/bld.inf -c armv7" t.targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/asmtest.exe", "$(EPOCROOT)/epoc32/release/armv7/udeb/asmtest.exe.sym", "$(EPOCROOT)/epoc32/release/armv7/udeb/asmtest.exe.map", "$(EPOCROOT)/epoc32/release/armv7/urel/asmtest.exe", "$(EPOCROOT)/epoc32/release/armv7/urel/asmtest.exe.sym", "$(EPOCROOT)/epoc32/release/armv7/urel/asmtest.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/asmtest/bld.inf', [ "asmtest_/armv7/udeb/asmtest_udeb_objects.via", "asmtest_/armv7/udeb/testassembler.o.d", "asmtest_/armv7/udeb/testassembler.o", "asmtest_/armv7/udeb/testassembler.o", "asmtest_/armv7/udeb/testcia_.o", "asmtest_/armv7/udeb/testcia_.cpp", "asmtest_/armv7/udeb/testcia_.pre", "asmtest_/armv7/udeb/testcia_.pre.d", "asmtest_/armv7/udeb/testasm.o.d", "asmtest_/armv7/udeb/testasm.o", "asmtest_/armv7/urel/asmtest_urel_objects.via", "asmtest_/armv7/urel/testassembler.o.d", "asmtest_/armv7/urel/testassembler.o", "asmtest_/armv7/urel/testassembler.o", "asmtest_/armv7/urel/testcia_.o", "asmtest_/armv7/urel/testcia_.cpp", "asmtest_/armv7/urel/testcia_.pre", "asmtest_/armv7/urel/testcia_.pre.d", "asmtest_/armv7/urel/testasm.o.d", "asmtest_/armv7/urel/testasm.o" ]) t.run() return t
def run(): t = SmokeTest() t.name = "slim_debug" t.description = """Exercise the slim_debug variant, checking that command line arguments are applied selectively.""" t.usebash = True t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5.slimdebug -f-" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [ "createstaticdll_dll/armv5/udeb/CreateStaticDLL.o", "createstaticdll_dll/armv5/urel/CreateStaticDLL.o" ]) t.mustnotmatch_singleline = [ "\+.*armcc.*--no_debug_macros --remove_unneeded_entities.*--DNDEBUG" ] t.mustmatch_singleline = [ "\+.*armcc.*--no_debug_macros --remove_unneeded_entities.*-D_DEBUG" ] t.run() return t
def run(): t = SmokeTest() t.id = "33" t.name = "exe_winscw" t.usebash = True t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c winscw -m ${SBSMAKEFILE} -f ${SBSLOGFILE}; grep -E \"mwldsym2\" ${SBSLOGFILE}" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/test.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [ "test_/winscw/udeb/test.o", "test_/winscw/udeb/test_.o", "test_/winscw/udeb/test_UID_.o", "test_/winscw/udeb/test.UID.CPP", "test_/winscw/urel/test.o", "test_/winscw/urel/test_.o", "test_/winscw/urel/test_UID_.o", "test_/winscw/urel/test.UID.CPP" ]) # Check that the default operator new library is used t.mustmatch = [ '.*mwldsym2.*scppnwdl.lib.*test.exe.*' ] t.run() return t
def run(): t = SmokeTest() t.name = "slim_debug" t.description = """Exercise the slim_debug variant, checking that command line arguments are applied selectively.""" t.usebash = True t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5.slimdebug -f-" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [ "createstaticdll_dll/armv5/udeb/CreateStaticDLL.o", "createstaticdll_dll/armv5/urel/CreateStaticDLL.o" ]) t.mustnotmatch_singleline = ["\+.*armcc.*--no_debug_macros --remove_unneeded_entities.*--DNDEBUG"] t.mustmatch_singleline = ["\+.*armcc.*--no_debug_macros --remove_unneeded_entities.*-D_DEBUG"] t.run() return t
def run(): t = SmokeTest() t.description = "test mmpkeyword: traces" t.id = "108a" t.name = "traces_mmpkeyword" t.command = "sbs -b smoke_suite/test_resources/tracecompiler/traceon/group/bld.inf -c armv5.tracecompiler" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/traceon.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/traceon.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/traces_keyword.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/traces_keyword.exe", "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/traceon/traces/traceon_exe/traceonTraces.h", "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/traceon/traces/traces_keyword_exe/traces_keywordTraces.h", "$(EPOCROOT)/epoc32/ost_dictionaries/traceon_exe_0x11100010_Dictionary.xml", "$(EPOCROOT)/epoc32/ost_dictionaries/traces_keyword_exe_0x11100011_Dictionary.xml", "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/traceon_exe_0x11100010_TraceDefinitions.h", "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/traces_keyword_exe_0x11100011_TraceDefinitions.h" ] t.addbuildtargets( 'smoke_suite/test_resources/tracecompiler/traceon/group/bld.inf', [ "traceon_exe/armv5/udeb/traceon.o", "traceon_exe/armv5/urel/traceon.o", "traceon_exe/tracecompile_traceon_exe_11100010.done", "traces_keyword_exe/armv5/udeb/traces_keyword.o", "traces_keyword_exe/armv5/urel/traces_keyword.o", "traces_keyword_exe/tracecompile_traces_keyword_exe_11100011.done", ]) t.run() t.id = "108" t.name = "tracecompiler_new" return t
def run(): t = SmokeTest() t.name = "dll_x86" t.description = "Build a basic DLL TARGETTYPE for x86" t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c x86" t.targets = [ "$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll.map", "$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll.map", "$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll.lib", "$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll{000a0000}.lib" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [ "createstaticdll_dll/x86/udeb/CreateStaticDLL.o", "createstaticdll_dll/x86/udeb/CreateStaticDLL.o.d", "createstaticdll_dll/x86/urel/CreateStaticDLL.o", "createstaticdll_dll/x86/urel/CreateStaticDLL.o.d", "createstaticdll_dll/x86/udeb/createstaticdll_udeb_objects.via", "createstaticdll_dll/x86/urel/createstaticdll_urel_objects.via", [ "createstaticdll_dll/x86/udeb/createstaticdll.prep", "createstaticdll_dll/x86/urel/createstaticdll.prep" ], [ "createstaticdll_dll/x86/udeb/createstaticdll.lib.exp", "createstaticdll_dll/x86/urel/createstaticdll.lib.exp" ] ]) t.run("windows") return t
def run(): t = SmokeTest() t.id = "2" t.name = "exe_armv5_filtered" t.description = "Run exe_armv5 with a customised filter. Will create then" \ + " remove filter file" t.usebash = True t.command = "cp -f smoke_suite/test_resources/filter_test/testfilter.py ../raptor/plugins/testfilter.py " \ "&& chmod 600 ../raptor/plugins/testfilter.py " \ "&& sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 --filters=TestFilter " \ "&& rm -f ../raptor/plugins/testfilter.py*" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [ "test_/armv5/udeb/test.o", "test_/armv5/urel/test.o" ]) t.mustmatch = [ ".*Test Passed!.*" ] t.run() return t
def run(): t = SmokeTest() t.usebash = True t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c arm.v5.udeb.rvct4_0.linkerfeedback -c arm.v5.urel.rvct4_0.linkerfeedback -f-" gen_fdb_match = [ ".*armlink.*-o.*epoc32/release/armv5/udeb/createstaticdll.dll.sym.*--feedback=.*createstaticdll_dll/armv5/udeb/createstaticdll_udeb_feedback.fdb.*", ".*armlink.*-o.*epoc32/release/armv5/urel/createstaticdll.dll.sym.*--feedback=.*createstaticdll_dll/armv5/urel/createstaticdll_urel_feedback.fdb.*" ] use_fdb_match = [ ".*armcc.*--feedback=.*createstaticdll_dll/armv5/udeb/createstaticdll_udeb_feedback.fdb.*test/smoke_suite/test_resources/simple_dll/CreateStaticDLL.cpp.*", ".*armcc.*--feedback=.*createstaticdll_dll/armv5/urel/createstaticdll_urel_feedback.fdb.*test/smoke_suite/test_resources/simple_dll/CreateStaticDLL.cpp.*" ] t.name = "linkerfeedback_initial_build" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [ "createstaticdll_dll/armv5/udeb/createstaticdll_udeb_feedback.fdb", "createstaticdll_dll/armv5/urel/createstaticdll_urel_feedback.fdb", "createstaticdll_dll/armv5/udeb/CreateStaticDLL.o", "createstaticdll_dll/armv5/urel/CreateStaticDLL.o" ]) t.mustmatch_singleline = gen_fdb_match t.mustnotmatch_singleline = use_fdb_match t.run() # Note: we neutralise the targets in the following in order to ensure # that they aren't cleaned from the initial build # Instead we confirm that the "right thing" happens in these next builds # in terms of tools calls based on the linker feedback files being present # and: # (a) newer than the object files (triggering re-compile and re-link) # (b) older than the object files (nothing to be done) t.name = "linkerfeedback_first_rebuild" t.targets = [] t.mustmatch_singleline = gen_fdb_match + use_fdb_match t.mustnotmatch_singleline = [] t.run() t.name = "linkerfeedback_second_rebuild" t.targets = [] t.mustmatch_singleline = [] t.mustnotmatch_singleline = gen_fdb_match + use_fdb_match t.run() t.name = "linkerfeedback" t.print_result() return t
def run(): t = SmokeTest() t.name = "armv5_stringtable" t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf -c armv5" t.targets = ["$(EPOCROOT)/epoc32/include/strconsts.h"] t.addbuildtargets( 'smoke_suite/test_resources/simple_stringtable/bld.inf', ["stringtabletest_/strconsts.h", "stringtabletest_/strconsts.cpp"]) t.run() return t
def run(): t = SmokeTest() command = "sbs -k -b smoke_suite/test_resources/simple/longcompiles.inf -c armv7_urel{variant} -c winscw_udeb{variant} -c arm.v5.urel.gcce4_4_1{variant}" talon_warning = ".*Command line length '\d+' exceeds the shell limit on this system of '\d+'. If this recipe is a compile, try using the '.use_compilation_command_file' variant to reduce overall command line length." targets = [ "$(EPOCROOT)/epoc32/release/armv7/urel/longcompiles.exe", "$(EPOCROOT)/epoc32/release/winscw/udeb/longcompiles.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/longcompiles.exe", ] t.name = "longcompile_no_command_file" t.description = """ Confirm OS-specific behaviour on massive compilation command lines. On Linux, all should be well, but on Windows the compile will fail together with a talon warning with some potentially useful advice. """ t.command = command.format(variant="") if t.onWindows: t.targets = [] t.mustmatch_singleline = [talon_warning] t.warnings = 24 t.errors = 1 t.returncode = 1 else: t.targets = targets t.mustnotmatch_singleline = [talon_warning] t.run() t.name = "longcompile_command_file" t.description = """ Confirm that a command file is used with the .use_compilation_command_file variant, and that the build succeeds on all host OS platforms. """ t.command = command.format(variant=".use_compilation_command_file") t.targets = targets t.addbuildtargets( "smoke_suite/test_resources/simple/longcompiles.inf", [ "longcompiles_exe/armv7/urel/cc.cmdfile", "longcompiles_exe/winscw/udeb/cc.cmdfile", "longcompiles_exe/armv5/urel/cc.cmdfile", ], ) t.mustmatch_singleline = [] t.mustnotmatch_singleline = [] t.warnings = 0 t.errors = 0 t.returncode = 0 t.run() t.name = "longcompiles" t.print_result() return t
def run(): t = SmokeTest() command = "sbs -k -b smoke_suite/test_resources/simple/longcompiles.inf -c armv7_urel{variant} -c winscw_udeb{variant} -c arm.v5.urel.gcce4_4_1{variant}" talon_warning = ".*Command line length '\d+' exceeds the shell limit on this system of '\d+'. If this recipe is a compile, try using the '.use_compilation_command_file' variant to reduce overall command line length." targets = [ "$(EPOCROOT)/epoc32/release/armv7/urel/longcompiles.exe", "$(EPOCROOT)/epoc32/release/winscw/udeb/longcompiles.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/longcompiles.exe" ] t.name = "longcompile_no_command_file" t.description = """ Confirm OS-specific behaviour on massive compilation command lines. On Linux, all should be well, but on Windows the compile will fail together with a talon warning with some potentially useful advice. """ t.command = command.format(variant="") if t.onWindows: t.targets = [] t.mustmatch_singleline = [talon_warning] t.warnings = 24 t.errors = 1 t.returncode = 1 else: t.targets = targets t.mustnotmatch_singleline = [talon_warning] t.run() t.name = "longcompile_command_file" t.description = """ Confirm that a command file is used with the .use_compilation_command_file variant, and that the build succeeds on all host OS platforms. """ t.command = command.format(variant=".use_compilation_command_file") t.targets = targets t.addbuildtargets('smoke_suite/test_resources/simple/longcompiles.inf', [ "longcompiles_exe/armv7/urel/cc.cmdfile", "longcompiles_exe/winscw/udeb/cc.cmdfile", "longcompiles_exe/armv5/urel/cc.cmdfile" ]) t.mustmatch_singleline = [] t.mustnotmatch_singleline = [] t.warnings = 0 t.errors = 0 t.returncode = 0 t.run() t.name = "longcompiles" t.print_result() return t
def run(): t = SmokeTest() t.name = "armv7_stringtable" t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf -c armv7" t.targets = [ "$(EPOCROOT)/epoc32/include/strconsts.h" ] t.addbuildtargets('smoke_suite/test_resources/simple_stringtable/bld.inf', [ "stringtabletest_/strconsts.h", "stringtabletest_/strconsts.cpp" ]) t.run() return t
def run(): t = SmokeTest() t.id = "36" t.name = "implib_winscw" t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \ + "winscw LIBRARY" t.targets = ["$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"] t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [[ "simple_implib_lib/winscw/udeb/simple_implib.prep.def", "simple_implib_lib/winscw/urel/simple_implib.prep.def" ]]) t.run() return t
def run(): t = SmokeTest() t.description = """Test the 'expgen' stage with different combinations of compiler (RVCT and GCC-E) and elf2e32 version (with and without --asm option).""" t.usebash = True bld_inf = "smoke_suite/test_resources/custom_dll/bld.inf" old_elf2e32 = "$(SBS_HOME)/test/smoke_suite/test_resources/custom_dll/elf2e32_old" if t.onWindows: old_elf2e32 += ".exe" # Command templates for using the new and the old version of elf2e32, # respectively. The new version supports the --asm option. new_cmd = "sbs -b " + bld_inf + " -c {0}" old_cmd = "SBS_ELF2E32=" + old_elf2e32 + " " + new_cmd t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/lib/customdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/customdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/customdll.dll", "$(EPOCROOT)/epoc32/release/armv5/udeb/customdll.dll.map", "$(EPOCROOT)/epoc32/release/armv5/urel/customdll.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/customdll.dll.map" ] # This ensures that the "expgen" stage is executed for each call to run(). t.addbuildtargets(bld_inf, [ "customdll_dll/armv5/customdll{000a0000}.s", "customdll_dll/armv5/customdll{000a0000}.exp" ]) t.name = "custom_dll_rvct_new_elf2e32" t.command = new_cmd.format("armv5") t.run() t.name = "custom_dll_rvct_old_elf2e32" t.command = old_cmd.format("armv5") t.run() t.name = "custom_dll_gcce_new_elf2e32" t.command = new_cmd.format("gcce_armv5") t.run() t.name = "custom_dll" t.print_result() return t
def run(): t = SmokeTest() t.name = "implib_x86" t.description = "Build a basic IMPLIB TARGETTYPE for x86" t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c x86" t.targets = [ "$(EPOCROOT)/epoc32/release/x86/lib/simple_implib.lib" ] t.addbuildtargets("smoke_suite/test_resources/simple_implib/bld.inf", [ ["simple_implib_lib/x86/udeb/simple_implib.prep", "simple_implib_lib/x86/urel/simple_implib.prep"], ]) t.run("windows") return t
def run(): t = SmokeTest() t.id = "3" t.name = "exe_armv7" t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv7" t.targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', ["test_/armv7/udeb/test.o", "test_/armv7/urel/test.o"]) t.run() return t
def run(): t = SmokeTest() t.id = "36" t.name = "implib_winscw" t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \ + "winscw LIBRARY" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib" ] t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [ ["simple_implib_lib/winscw/udeb/simple_implib.prep.def", "simple_implib_lib/winscw/urel/simple_implib.prep.def"] ]) t.run() return t
def run(): t = SmokeTest() t.description = """Test the 'expgen' stage with different combinations of compiler (RVCT and GCC-E) and elf2e32 version (with and without --asm option).""" t.usebash = True bld_inf = "smoke_suite/test_resources/custom_dll/bld.inf" old_elf2e32 = "$(SBS_HOME)/test/smoke_suite/test_resources/custom_dll/elf2e32_old" if t.onWindows: old_elf2e32 += ".exe" # Command templates for using the new and the old version of elf2e32, # respectively. The new version supports the --asm option. new_cmd = "sbs -b " + bld_inf + " -c {0}" old_cmd = "SBS_ELF2E32=" + old_elf2e32 + " " + new_cmd t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/lib/customdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/customdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/customdll.dll", "$(EPOCROOT)/epoc32/release/armv5/udeb/customdll.dll.map", "$(EPOCROOT)/epoc32/release/armv5/urel/customdll.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/customdll.dll.map" ] # This ensures that the "expgen" stage is executed for each call to run(). t.addbuildtargets(bld_inf, [ "customdll_dll/armv5/customdll{000a0000}.s", "customdll_dll/armv5/customdll{000a0000}.exp"]) t.name = "custom_dll_rvct_new_elf2e32" t.command = new_cmd.format("armv5") t.run() t.name = "custom_dll_rvct_old_elf2e32" t.command = old_cmd.format("armv5") t.run() t.name = "custom_dll_gcce_new_elf2e32" t.command = new_cmd.format("gcce_armv5") t.run() t.name = "custom_dll" t.print_result() return t
def run(): t = SmokeTest() t.id = "52" t.name = "tools" t.command = "sbs -b smoke_suite/test_resources/tools/bld.inf -c tools" t.targets = [ "$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.bsc", "$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.exe", "$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.ilk", "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib1.bsc", "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib1.lib", "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib2.bsc", "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib2.lib", "$(EPOCROOT)/epoc32/release/tools/rel/tool_exe.exe", "$(EPOCROOT)/epoc32/release/tools/rel/tool_lib1.lib", "$(EPOCROOT)/epoc32/release/tools/rel/tool_lib2.lib", "$(EPOCROOT)/epoc32/tools/tool_exe.exe", "$(EPOCROOT)/epoc32/tools/tool_lib1.lib", "$(EPOCROOT)/epoc32/tools/tool_lib2.lib" ] t.addbuildtargets('smoke_suite/test_resources/tools/bld.inf', [ "tool_exe_exe/tools/deb/tool_exe_a.obj", "tool_exe_exe/tools/deb/tool_exe_a.sbr", "tool_exe_exe/tools/deb/tool_exe_b.obj", "tool_exe_exe/tools/deb/tool_exe_b.sbr", "tool_exe_exe/tools/rel/tool_exe_a.obj", "tool_exe_exe/tools/rel/tool_exe_a.sbr", "tool_exe_exe/tools/rel/tool_exe_b.obj", "tool_exe_exe/tools/rel/tool_exe_b.sbr", "tool_lib1_lib/tools/deb/tool_lib1_a.obj", "tool_lib1_lib/tools/deb/tool_lib1_a.sbr", "tool_lib1_lib/tools/deb/tool_lib1_b.obj", "tool_lib1_lib/tools/deb/tool_lib1_b.sbr", "tool_lib1_lib/tools/rel/tool_lib1_a.obj", "tool_lib1_lib/tools/rel/tool_lib1_a.sbr", "tool_lib1_lib/tools/rel/tool_lib1_b.obj", "tool_lib1_lib/tools/rel/tool_lib1_b.sbr", "tool_lib2_lib/tools/deb/tool_lib2_a.obj", "tool_lib2_lib/tools/deb/tool_lib2_a.sbr", "tool_lib2_lib/tools/deb/tool_lib2_b.obj", "tool_lib2_lib/tools/deb/tool_lib2_b.sbr", "tool_lib2_lib/tools/rel/tool_lib2_a.obj", "tool_lib2_lib/tools/rel/tool_lib2_a.sbr", "tool_lib2_lib/tools/rel/tool_lib2_b.obj", "tool_lib2_lib/tools/rel/tool_lib2_b.sbr", ]) t.run("windows") # no MSVC compiler on Linux return t
def run(): t = SmokeTest() t.id = "35" t.name = "lib_winscw" t.command = "sbs -b smoke_suite/test_resources/simple_lib/bld.inf -c " + \ "winscw LIBRARY" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/etest.lib", "$(EPOCROOT)/epoc32/release/winscw/urel/etest.lib" ] t.addbuildtargets('smoke_suite/test_resources/simple_lib/bld.inf', [ "etest_lib/winscw/udeb/test_lib.o", "etest_lib/winscw/urel/test_lib.o" ]) t.run() return t
def run(): t = SmokeTest() t.id = "4" t.name = "commandfile" t.command = "sbs " + "--command=smoke_suite/test_resources/simple/commands-v7.txt " + "-c armv7_udeb" t.targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map", ] t.addbuildtargets( "smoke_suite/test_resources/simple/bld.inf", ["test_/armv7/udeb/test.o", "test_/armv7/urel/test.o"] ) t.run() return t
def run(): t = SmokeTest() t.id = "4" t.name = "commandfile" t.command = "sbs " \ + "--command=smoke_suite/test_resources/simple/commands-v7.txt " \ + "-c armv7_udeb" t.targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', ["test_/armv7/udeb/test.o", "test_/armv7/urel/test.o"]) t.run() return t
def run(): t = SmokeTest() t.id = "3" t.name = "exe_armv7" t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv7" t.targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [ "test_/armv7/udeb/test.o", "test_/armv7/urel/test.o" ]) t.run() return t
def run(): t = SmokeTest() t.name = "exe_x86" t.description = "Build a basic EXE TARGETTYPE for x86" t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c x86" t.targets = [ "$(EPOCROOT)/epoc32/release/x86/udeb/test.exe", "$(EPOCROOT)/epoc32/release/x86/udeb/test.exe.map", "$(EPOCROOT)/epoc32/release/x86/urel/test.exe", "$(EPOCROOT)/epoc32/release/x86/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [ "test_/x86/udeb/test.o", "test_/x86/udeb/test.o.d", "test_/x86/udeb/test1.o", "test_/x86/udeb/test1.o.d", "test_/x86/udeb/test2.o", "test_/x86/udeb/test2.o.d", "test_/x86/udeb/test3.o", "test_/x86/udeb/test3.o.d", "test_/x86/udeb/test4.o", "test_/x86/udeb/test4.o.d", "test_/x86/udeb/test5.o", "test_/x86/udeb/test5.o.d", "test_/x86/udeb/test6.o", "test_/x86/udeb/test6.o.d", "test_/x86/urel/test.o", "test_/x86/urel/test.o.d", "test_/x86/urel/test1.o", "test_/x86/urel/test1.o.d", "test_/x86/urel/test2.o", "test_/x86/urel/test2.o.d", "test_/x86/urel/test3.o", "test_/x86/urel/test3.o.d", "test_/x86/urel/test4.o", "test_/x86/urel/test4.o.d", "test_/x86/urel/test5.o", "test_/x86/urel/test5.o.d", "test_/x86/urel/test6.o", "test_/x86/urel/test6.o.d", "test_/x86/udeb/test_udeb_objects.via", "test_/x86/urel/test_urel_objects.via" ]) t.run("windows") return t
def run(): t = SmokeTest() rootcommand = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf" targets = [ "$(EPOCROOT)/epoc32/release/armv7/udeb/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv7/urel/createstaticdll.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv7/udeb/createstaticdll.dll", "$(EPOCROOT)/epoc32/release/armv7/urel/createstaticdll.dll" ] buildtargets = [ "createstaticdll_dll/armv7/udeb/CreateStaticDLL.o", "createstaticdll_dll/armv7/urel/CreateStaticDLL.o", "createstaticdll_dll/armv7/udeb/armv7_specific.o", "createstaticdll_dll/armv7/urel/armv7_specific.o" ] t.id = "0011a" t.name = "dll_armv7_rvct" t.command = rootcommand + " -c armv7" t.targets = targets t.addbuildtargets("smoke_suite/test_resources/simple_dll/bld.inf", buildtargets) t.run() t.id = "0011b" t.name = "dll_armv7_clean" t.command = rootcommand + " -c armv7 clean" t.targets = [] t.run() t.id = "0011c" t.name = "dll_armv7_gcce" t.command = rootcommand + " -c arm.v7.udeb.gcce4_3_2 -c arm.v7.urel.gcce4_3_2" t.targets = targets t.addbuildtargets("smoke_suite/test_resources/simple_dll/bld.inf", buildtargets) t.run() t.id = "11" t.name = "dll_armv7" t.print_result() return t
def run(): t = SmokeTest() t.id = "14" t.name = "implib_armv5" t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf" \ + " -c armv5 LIBRARY" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso" ] t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [[ 'simple_implib_lib/armv5/udeb/simple_implib.prep', 'simple_implib_lib/armv5/urel/simple_implib.prep' ]]) t.run() t.print_result() return t
def run(): t = SmokeTest() t.id = "14" t.name = "implib_armv5" t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf" \ + " -c armv5 LIBRARY" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso" ] t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [ ['simple_implib_lib/armv5/udeb/simple_implib.prep', 'simple_implib_lib/armv5/urel/simple_implib.prep'] ]) t.run() t.print_result() return t
def run(): t = SmokeTest() t.id = "8" t.name = "bitmap" t.description = "This step is for testing BITMAP keyword and MIFCONV support for s60" t.usebash = True t.command = "sbs -b smoke_suite/test_resources/bitmap/bld.inf BITMAP && grep -ir 'MIFCONV_TEST:=1' $(EPOCROOT)/epoc32/build" t.targets = [ "$(EPOCROOT)/epoc32/include/testbitmap.mbg", "$(EPOCROOT)/epoc32/data/z/resource/apps/testbitmap.mBm", "$(EPOCROOT)/epoc32/tools/makefile_templates/test/mifconv.xml", "$(EPOCROOT)/epoc32/tools/makefile_templates/test/mifconv.flm" ] t.addbuildtargets('smoke_suite/test_resources/bitmap/bld.inf', ["testbitmap_dll/testbitmap.mBm_bmconvcommands"]) t.mustmatch = [".*Makefile.*(_all)?.bitmap:MIFCONV_TEST:=1.*"] t.mustnotmatch = [".*Makefile.*(_all)?.default:MIFCONV_TEST.*"] t.run() return t
def run(): # Generate source files for simple_lib tests dir = ReplaceEnvs("$(SBS_HOME)/test/smoke_suite/test_resources/simple_lib") zs = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" for i in range(1, 100): file = open(os.path.join(dir, zs + "_" + str(i) + ".cpp"), "w") file.write("int f(void) { return 1; }\n") file.close() # Convenience method to list generated source build output def __generatedFiles(aConfig): udeb = "etest_lib/{0}/udeb/".format(aConfig) urel = "etest_lib/{0}/urel/".format(aConfig) generated = [] for i in range(1, 100): generated.append(udeb + zs + "_" + str(i) + ".o") generated.append(udeb + zs + "_" + str(i) + ".o.d") generated.append(urel + zs + "_" + str(i) + ".o") generated.append(urel + zs + "_" + str(i) + ".o.d") return generated buildtargets = [ "etest_lib/x86/udeb/etest_udeb_objects.via", "etest_lib/x86/udeb/test_lib.o", "etest_lib/x86/urel/etest_urel_objects.via", "etest_lib/x86/urel/test_lib.o" ] buildtargets.extend(__generatedFiles("x86")) t = SmokeTest() t.name = "lib_x86" t.description = "Build a basic LIB TARGETTYPE for x86" t.command = "sbs -b smoke_suite/test_resources/simple_lib/bld.inf -c x86" t.targets = [ "$(EPOCROOT)/epoc32/release/x86/udeb/etest.lib", "$(EPOCROOT)/epoc32/release/x86/urel/etest.lib" ] t.addbuildtargets('smoke_suite/test_resources/simple_lib/bld.inf', buildtargets) t.run("windows") return t
def run(): t = SmokeTest() t.description = "This testcase tests specific cases of using APPLY" t.usebash = True # Introduce LINKER_OPTIONS for tools2 linker t.id = "0108" t.name = "apply_usecases" t.command = "sbs -b smoke_suite/test_resources/apply_usecases/linker_options/bld.inf -c tools2 -f -" t.targets = [ "$(EPOCROOT)/epoc32/release/tools2/rel/test_apply_linkeroptions.exe" ] t.addbuildtargets("smoke_suite/test_resources/apply_usecases/linker_options/bld.inf", [ "test_apply_linkeroptions_/test_apply_linkeroptions_exe/tools2/deb/test_apply_linkeroptions.o", "test_apply_linkeroptions_/test_apply_linkeroptions_exe/tools2/rel/test_apply_linkeroptions.o" ]) t.mustmatch = ["-lwsock32"] t.run("windows") return t
def run(): t = SmokeTest() t.id = "44" t.name = "mmp_select" t.description = "Test -p option" t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf " \ + "-p hElLoWoRlD.mMp" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/HelloWorld.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/HelloWorld.exe", "$(EPOCROOT)/epoc32/release/winscw/udeb/HelloWorld.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/HelloWorld.exe" ] t.addbuildtargets('smoke_suite/test_resources/basics/helloworld/Bld.inf', [ "helloworld_exe/armv5/udeb/HelloWorld.o", "helloworld_exe/armv5/urel/HelloWorld.o", "helloworld_exe/winscw/udeb/HelloWorld.o", "helloworld_exe/winscw/urel/HelloWorld.o" ]) t.run() return t
def run(): t = SmokeTest() t.id = "105" t.name = "pdll_winscw" t.command = "sbs -b smoke_suite/test_resources/simple_dll/pbld.inf -c winscw" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticpdll.lib", "$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticpdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticpdll.dll", "$(EPOCROOT)/epoc32/release/winscw/urel/createstaticpdll.dll.map" ] t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', [ "createstaticpdll_dll/winscw/udeb/CreateStaticDLL.o", "createstaticpdll_dll/winscw/udeb/createstaticpdll.UID.CPP", "createstaticpdll_dll/winscw/udeb/createstaticpdll_UID_.o", "createstaticpdll_dll/winscw/urel/CreateStaticDLL.o", "createstaticpdll_dll/winscw/urel/createstaticpdll.UID.CPP", "createstaticpdll_dll/winscw/urel/createstaticpdll_UID_.o" ]) t.run() return t
def run(): t = SmokeTest() t.description = "This testcase tests specific cases of using APPLY" t.usebash = True # Introduce LINKER_OPTIONS for tools2 linker t.id = "0108" t.name = "apply_usecases" t.command = "sbs -b smoke_suite/test_resources/apply_usecases/linker_options/bld.inf -c tools2 -f -" t.targets = [ "$(EPOCROOT)/epoc32/release/tools2/rel/test_apply_linkeroptions.exe" ] t.addbuildtargets( "smoke_suite/test_resources/apply_usecases/linker_options/bld.inf", [ "test_apply_linkeroptions_/test_apply_linkeroptions_exe/tools2/deb/test_apply_linkeroptions.o", "test_apply_linkeroptions_/test_apply_linkeroptions_exe/tools2/rel/test_apply_linkeroptions.o" ]) t.mustmatch = ["-lwsock32"] t.run("windows") return t
def run(): t = SmokeTest() t.id = "33" t.name = "exe_winscw" t.usebash = True t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c winscw -m ${SBSMAKEFILE} -f ${SBSLOGFILE}; grep -E \"mwldsym2\" ${SBSLOGFILE}" t.targets = [ "$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/test.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [ "test_/winscw/udeb/test.o", "test_/winscw/udeb/test_.o", "test_/winscw/udeb/test_UID_.o", "test_/winscw/udeb/test.UID.CPP", "test_/winscw/urel/test.o", "test_/winscw/urel/test_.o", "test_/winscw/urel/test_UID_.o", "test_/winscw/urel/test.UID.CPP" ]) # Check that the default operator new library is used t.mustmatch = ['.*mwldsym2.*scppnwdl.lib.*test.exe.*'] t.run() return t
def run(): t = SmokeTest() t.id = "44" t.name = "mmp_select" t.description = "Test -p option" t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf " \ + "-p hElLoWoRlD.mMp" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/HelloWorld.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/HelloWorld.exe", "$(EPOCROOT)/epoc32/release/winscw/udeb/HelloWorld.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/HelloWorld.exe" ] t.addbuildtargets('smoke_suite/test_resources/basics/helloworld/Bld.inf', [ "HelloWorld_exe/armv5/udeb/HelloWorld.o", "HelloWorld_exe/armv5/urel/HelloWorld.o", "HelloWorld_exe/winscw/udeb/HelloWorld.o", "HelloWorld_exe/winscw/urel/HelloWorld.o" ]) t.run() return t
def run(): t = SmokeTest() t.id = "47" t.name = "sysdef_exports" t.description = "Test general system_definition.xml processing of exports" t.command = "sbs -a $(SBS_HOME)/test/smoke_suite/test_resources/sysdef -s smoke_suite/test_resources/sysdef/system_definition_mmp_export_dependencies_test.xml" t.targets = [ "$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/dependent_on_exports/metadata_export_pre1.mmh", "$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/dependent_on_exports/metadata_export_pre2.mmh", "$(EPOCROOT)/epoc32/release/armv5/udeb/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/dependent_on_exports.exe.map", "$(EPOCROOT)/epoc32/release/armv5/udeb/dependent_on_exports.exe.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/dependent_on_exports.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/dependent_on_exports.exe.sym", "$(EPOCROOT)/epoc32/release/winscw/udeb/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/dependent_on_exports.exe.map" ] t.addbuildtargets( 'smoke_suite/test_resources/sysdef/dependent_on_exports/bld.inf', [ "dependent_on_exports_exe/armv5/udeb/dependent_on_exports_udeb_objects.via", "dependent_on_exports_exe/armv5/udeb/test.o", "dependent_on_exports_exe/armv5/udeb/test.o.d", "dependent_on_exports_exe/armv5/urel/dependent_on_exports_urel_objects.via", "dependent_on_exports_exe/armv5/urel/test.o", "dependent_on_exports_exe/armv5/urel/test.o.d", "dependent_on_exports_exe/winscw/udeb/dependent_on_exports.UID.CPP", "dependent_on_exports_exe/winscw/udeb/dependent_on_exports_UID_.dep", "dependent_on_exports_exe/winscw/udeb/dependent_on_exports_UID_.o", "dependent_on_exports_exe/winscw/udeb/test.dep", "dependent_on_exports_exe/winscw/udeb/test.o", "dependent_on_exports_exe/winscw/urel/dependent_on_exports.UID.CPP", "dependent_on_exports_exe/winscw/urel/dependent_on_exports_UID_.dep", "dependent_on_exports_exe/winscw/urel/dependent_on_exports_UID_.o", "dependent_on_exports_exe/winscw/urel/test.dep", "dependent_on_exports_exe/winscw/urel/test.o" ]) t.run() return t
def run(): t = SmokeTest() t.description = "Ensure Raptor builds Qt applications successfully" t.id = "0110" t.name = "qt_helloworld" # Its using rvct4_0 because thats's also the 10.1 default now. t.command = "sbs --qtpro smoke_suite/test_resources/qt/helloworld/helloworldqt.pro -k -c arm.v5.urel.rvct4_0 -c arm.v5.udeb.rvct4_0 -c winscw" t.targets = [ "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/bld.inf", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt.loc", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt.rss", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt_reg.rss", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt_template.pkg", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/Makefile", "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.sym", "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.map", "$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/winscw/udeb/helloworldqt.exe" ] t.addbuildtargets('smoke_suite/test_resources/qt/helloworld/bld.inf', [ "helloworldqt_exe/helloworldqt_helloworldqt.rsc", "helloworldqt_exe/armv5/udeb/helloworld.o", "helloworldqt_exe/armv5/udeb/helloworld.o.d", "helloworldqt_exe/armv5/urel/helloworld.o", "helloworldqt_exe/armv5/urel/helloworld.o.d", "helloworldqt_exe/winscw/udeb/helloworld.o", "helloworldqt_exe/winscw/udeb/helloworld.o.d", "helloworldqt_exe/winscw/urel/helloworld.o", "helloworldqt_exe/winscw/urel/helloworld.o.d" ]) t.run() return t
def run(): t = SmokeTest() t.id = "84" t.name = "xml_invalid_chars" t.description = """Tests the validity of XML when output with characters not-allowed in XML are sent to the filters """ t.command = "sbs -b smoke_suite/test_resources/xml_invalid_chars/bld.inf " \ + "-c armv5" # The warning that causes the invalid characters to appear in the XML log t.warnings = 1 t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe" ] t.addbuildtargets('smoke_suite/test_resources/xml_invalid_chars/bld.inf', [ "test_/armv5/urel/test_urel_objects.via", "test_/armv5/urel/test.o.d", "test_/armv5/urel/test.o", "test_/armv5/udeb/test_udeb_objects.via", "test_/armv5/udeb/test.o.d", "test_/armv5/udeb/test.o" ]) t.run() if t.result == SmokeTest.PASS: print "Testing validity of XML..." log = "$(EPOCROOT)/epoc32/build/smoketestlogs/xml_invalid_chars.log" logfile = open(ReplaceEnvs(log), "r") try: tree = parse(logfile) except: t.result = SmokeTest.FAIL t.print_result() return t
def run(): t = SmokeTest() t.id = "47" t.name = "sysdef_exports" t.description = "Test general system_definition.xml processing of exports" t.command = "sbs -a $(SBS_HOME)/test/smoke_suite/test_resources/sysdef -s smoke_suite/test_resources/sysdef/system_definition_mmp_export_dependencies_test.xml" t.targets = [ "$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/dependent_on_exports/metadata_export_pre1.mmh", "$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/dependent_on_exports/metadata_export_pre2.mmh", "$(EPOCROOT)/epoc32/release/armv5/udeb/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/dependent_on_exports.exe.map", "$(EPOCROOT)/epoc32/release/armv5/udeb/dependent_on_exports.exe.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/dependent_on_exports.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/dependent_on_exports.exe.sym", "$(EPOCROOT)/epoc32/release/winscw/udeb/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/dependent_on_exports.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/dependent_on_exports.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/sysdef/dependent_on_exports/bld.inf', [ "dependent_on_exports_exe/armv5/udeb/dependent_on_exports_udeb_objects.via", "dependent_on_exports_exe/armv5/udeb/test.o", "dependent_on_exports_exe/armv5/udeb/test.o.d", "dependent_on_exports_exe/armv5/urel/dependent_on_exports_urel_objects.via", "dependent_on_exports_exe/armv5/urel/test.o", "dependent_on_exports_exe/armv5/urel/test.o.d", "dependent_on_exports_exe/winscw/udeb/dependent_on_exports.UID.CPP", "dependent_on_exports_exe/winscw/udeb/dependent_on_exports_UID_.dep", "dependent_on_exports_exe/winscw/udeb/dependent_on_exports_UID_.o", "dependent_on_exports_exe/winscw/udeb/test.dep", "dependent_on_exports_exe/winscw/udeb/test.o", "dependent_on_exports_exe/winscw/urel/dependent_on_exports.UID.CPP", "dependent_on_exports_exe/winscw/urel/dependent_on_exports_UID_.dep", "dependent_on_exports_exe/winscw/urel/dependent_on_exports_UID_.o", "dependent_on_exports_exe/winscw/urel/test.dep", "dependent_on_exports_exe/winscw/urel/test.o" ]) t.run() return t
def run(): t = SmokeTest() t.description = "Ensure Raptor builds Qt applications successfully" t.id = "0110" t.name = "qt_helloworld" # Internal QT deliveries use a QMAKE launcher that expects EPOCROOT to end in a slash # We ensure it does (doesn't matter if there are multiple slashes) t.environ["EPOCROOT"] = os.environ["EPOCROOT"] + os.sep t.command = "cd smoke_suite/test_resources/qt && $(EPOCROOT)/epoc32/tools/qmake -spec symbian-sbsv2 && sbs" t.targets = [ "$(SBS_HOME)/test/smoke_suite/test_resources/qt/bld.inf", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt.loc", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt.rss", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt_reg.rss", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt_template.pkg", "$(SBS_HOME)/test/smoke_suite/test_resources/qt/Makefile", "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.map", "$(EPOCROOT)/epoc32/release/winscw/udeb/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe", "$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/qt/bld.inf', [ "helloworldqt_exe/armv5/udeb/helloworld.o", "helloworldqt_exe/armv5/udeb/helloworld.o.d", "helloworldqt_exe/armv5/urel/helloworld.o", "helloworldqt_exe/armv5/urel/helloworld.o.d", "helloworldqt_exe/winscw/udeb/helloworld.o", "helloworldqt_exe/winscw/udeb/helloworld.o.d", "helloworldqt_exe/winscw/urel/helloworld.o", "helloworldqt_exe/winscw/urel/helloworld.o.d" ]) t.run("windows") return t
def run(): t = SmokeTest() t.id = "21" t.name = "defs_armv5" t.command = "sbs -b smoke_suite/test_resources/defs/group/bld.inf -c armv5" t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/deftest.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/urel/deftest.dll.sym", "$(EPOCROOT)/epoc32/release/armv5/lib/deftest{000a0000}.dso", "$(EPOCROOT)/epoc32/release/armv5/lib/deftest.dso", "$(EPOCROOT)/epoc32/release/armv5/udeb/deftest.dll", "$(EPOCROOT)/epoc32/release/armv5/udeb/deftest.dll.map", "$(EPOCROOT)/epoc32/release/armv5/urel/deftest.dll", "$(EPOCROOT)/epoc32/release/armv5/urel/deftest.dll.map" ] t.addbuildtargets('smoke_suite/test_resources/defs/group/bld.inf', [ "deftest_/armv5/udeb/deftest_udeb_objects.via", "deftest_/armv5/udeb/test.o", "deftest_/armv5/urel/deftest_urel_objects.via", "deftest_/armv5/urel/test.o" ]) t.run() return t
def run(): t = SmokeTest() t.id = "32" t.name = "pre_export" t.command = "sbs -b smoke_suite/test_resources/pre-export/bld.inf -c " + \ "armv5 -k" t.targets = [ "$(EPOCROOT)/epoc32/include/my.mmh", "$(EPOCROOT)/epoc32/include/second.mmh", "$(EPOCROOT)/epoc32/release/armv5/udeb/petest.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/petest.exe.map", "$(EPOCROOT)/epoc32/release/armv5/urel/petest.exe", "$(EPOCROOT)/epoc32/release/armv5/urel/petest.exe.map" ] t.addbuildtargets('smoke_suite/test_resources/pre-export/bld.inf', [ "petest_/armv5/udeb/test.o", "petest_/armv5/urel/test.o" ]) # we expect these errors because there are 2 MMP files deliberately missing t.errors = 4 t.returncode = 1 t.run() return t
def run(): t = SmokeTest() t.name = "xml_invalid_chars" t.description = """Tests the validity of XML when output with characters not-allowed in XML are sent to the filters """ t.command = "sbs -b smoke_suite/test_resources/xml_invalid_chars/bld.inf " \ + "-c armv5" # The warning that causes the invalid characters to appear in the XML log t.warnings = 1 t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe" ] t.addbuildtargets('smoke_suite/test_resources/xml_invalid_chars/bld.inf', [ "test_/armv5/urel/test_urel_objects.via", "test_/armv5/urel/test.o.d", "test_/armv5/urel/test.o", "test_/armv5/udeb/test_udeb_objects.via", "test_/armv5/udeb/test.o.d", "test_/armv5/udeb/test.o" ]) t.run() if t.result == SmokeTest.PASS: log = t.logfile() print("Testing validity of XML file {0}".format(log)) logfile = open(ReplaceEnvs(log), "r") try: tree = parse(logfile) except: t.result = SmokeTest.FAIL t.print_result() return t