示例#1
0
def run():
	t = SmokeTest()
	t.usebash = True
	
	t.description = "Test that a timing log is created and contains total parse and build durations"

	t.id = "0103b"
	t.name = "timing_on"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf" + \
			" --filters=FilterLogfile,FilterTiming -f ${SBSLOGFILE} && " + \
			"grep progress:duration ${SBSLOGFILE}.timings"
	t.mustmatch = [
			"^<progress:duration object_type='layer' task='parse' key='.*' duration='\d+.\d+' />$",
			"^<progress:duration object_type='layer' task='build' key='.*' duration='\d+.\d+' />$",
			"^<progress:duration object_type='all' task='all' key='all' duration='\d+.\d+' />$"
			]
	t.mustnotmatch = []
	t.run()


	t.id = "103"
	t.name = "timing"
	t.print_result()
	
	return t
示例#2
0
def run():

	t = SmokeTest()

	# Should have returncode of 1 and output 1 error, but not cause a traceback
	t.returncode = 1
	t.errors = 1
	t.mustmatch = ["sbs: error: Non-ASCII character in argument or command file"]

	result = SmokeTest.PASS

	t.id = "0091a"
	t.name = "non_ascii_argument"

	# The dash in "-c" is an en dash, not a normal ASCII dash.
	t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf –c armv5"

	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "0091b"
	t.name = "non_ascii_commandfile"

	t.command = "sbs --command=smoke_suite/test_resources/non_ascii/cmd.txt"

	t.run()
	if t.result == SmokeTest.FAIL:
		result = SmokeTest.FAIL

	t.id = "91"
	t.name = "non_ascii"
	t.result = result
	t.print_result()
	return t
示例#3
0
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
示例#4
0
def run():
	t = SmokeTest()
	
	t.id = "71a"
	t.name = "implib_implicit_def"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \
			+ " -p implib_implicit_def.mmp"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def.dso",
		"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def{000a0000}.dso",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/implib_implicit_def.lib"
		]
	t.run()

	t.id = "71b"
	t.name = "implib_no_def"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \
			+ " -p implib_no_def.mmp"
	t.targets = []
	t.mustmatch = [
		"No DEF File for IMPLIB target type in"	
		]
	t.errors = 2 # 1 for winscw and 1 for armv5
	t.returncode = 1
	t.run()

	t.id = "71"
	t.name = "implib_nodef"
	t.print_result()

	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.description = "Trace Compiler Whatlog Clean"
	t.id = "112a"
	t.name = "tracecompiler_whatlog_clean"
	t.usebash = True
	t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf -c armv5.tracecompiler CLEAN"
	t.run()

	t = CheckWhatSmokeTest()
	t.description = "Trace Compiler Whatlog test"
	t.id = "112b"
	t.name = "tracecompiler_whatlog"
	t.usebash = True
	t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf -c armv5.tracecompiler -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE}"
	t.hostossensitive = False
	t.regexlinefilter = re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso",
		"$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map",
		"$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll",
		"$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map",
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitTraces.h",
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitmainTraces.h",
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitpermparserTraces.h",	
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/fixed_id.definitions",
		"$(EPOCROOT)/epoc32/ost_dictionaries/test_TC_0x1000008d_Dictionary.xml",
		"$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/test_TC_0x1000008d_TraceDefinitions.h"
		]
	t.stdout = [
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/test.TC.mmp' config='armv5_urel.tracecompiler'>",
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/test.TC.mmp' config='armv5_udeb.tracecompiler'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map</build>",
		"<build>$(EPOCROOT)/epoc32/ost_dictionaries/test_TC_0x1000008d_Dictionary.xml</build>",
		"<build>$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/test_TC_0x1000008d_TraceDefinitions.h</build>"
		]		
	t.run("linux")
	if t.result == CheckWhatSmokeTest.SKIP:
		t.run("windows")

	t.id = "112"

	return t
示例#7
0
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
示例#8
0
def run():
	t = SmokeTest()
	t.usebash = True
	
	t.description = "Test that dependency crunching for resource dependency files produces expected output" 

	t.id = "43562999"
	t.name = "depcrunch"
	t.command = "python $SBS_HOME/bin/depcrunch.py --extensions mbg,rsg --assume EPOCROOT < smoke_suite/test_resources/depcrunch/dep2.rpp.d"
	t.mustmatch_multiline = [
		r"EPOCROOT/epoc32/build/resource/c_98665870f0168225/dependentresource_/dependentresource_dependentresource_sc.rpp: \\\n"+
		r" EPOCROOT/testresource1.mbg \\\n"+
		r" EPOCROOT/testresource2.rsg \\\n"+
		r" EPOCROOT/testresource3.rsg \\\n"+
		r" EPOCROOT/testresource4.mbg \\\n"+
		r" EPOCROOT/testresource5.rsg \\\n"+
		r" EPOCROOT/testresource6.mbg \\\n"+
		r" EPOCROOT/testresource7.rsg \\\n"+
		r" EPOCROOT/testresource8.mbg \\\n"+
		r" EPOCROOT/testresource9.rsg \n"
		]
	t.run()


	t.print_result()
	
	return t
示例#9
0
def run():
    t = SmokeTest()
    t.usebash = True

    t.description = "Test that dependency crunching for resource dependency files produces expected output"

    t.id = "43562999"
    t.name = "depcrunch"
    t.command = "python $SBS_HOME/bin/depcrunch.py --extensions mbg,rsg --assume EPOCROOT < smoke_suite/test_resources/depcrunch/dep2.rpp.d"
    t.mustmatch_multiline = [
        r"EPOCROOT/epoc32/build/resource/c_98665870f0168225/dependentresource_/dependentresource_dependentresource_sc.rpp: \\\n"
        + r" EPOCROOT/testresource1.mbg \\\n" +
        r" EPOCROOT/testresource2.rsg \\\n" +
        r" EPOCROOT/testresource3.rsg \\\n" +
        r" EPOCROOT/testresource4.mbg \\\n" +
        r" EPOCROOT/testresource5.rsg \\\n" +
        r" EPOCROOT/testresource6.mbg \\\n" +
        r" EPOCROOT/testresource7.rsg \\\n" +
        r" EPOCROOT/testresource8.mbg \\\n" + r" EPOCROOT/testresource9.rsg \n"
    ]
    t.run()

    t.print_result()

    return t
示例#10
0
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
示例#11
0
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.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
示例#13
0
def run():
	t = SmokeTest()
	t.id = "71"
	t.name = "metadep"
	t.description =  """Tests metadata dependency generation.  Changes 
			to bld.infs and mmps can be detected."""
	t.usebash = True
	t.command = """export SBSLOGFILE SBSMAKEFILE; bash smoke_suite/test_resources/metadep.sh 2>&1"""
			
	t.targets = [
		]

	t.mustmatch_multiline = [
""".*Step 1 .*no warnings or errors.*
sbs: build log in.*
\+ sleep 1.*
.*make -rf .*epoc32/build/metadata_all.mk.*
.*make.*epoc32/build/metadata_all.mk. is up to date.*
Step 2 .*
.*RE-RUNNING SBS with previous parameters.*
Step 3 .*
.*RE-RUNNING SBS with previous parameters.*
.*RE-RUNNING SBS with previous parameters.*"""
	]
	t.mustnotmatch_multiline = [
"""RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*"""
	]
	t.run()
	return t
示例#14
0
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
示例#15
0
def run():
    t = SmokeTest()
    t.id = "31"
    t.name = "listing"
    t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
      "-c winscw -k listing"
    t.targets = [
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.WINSCW.lst"
    ]
    t.run()
    return t
示例#16
0
def run():
    t = SmokeTest()
    t.id = "71"
    t.name = "metadep"
    t.description = """Tests metadata dependency generation.  Changes 
			to bld.infs and mmps can be detected."""
    t.usebash = True
    t.command = """export SBSLOGFILE SBSMAKEFILE; bash smoke_suite/test_resources/metadep.sh 2>&1"""

    t.targets = []

    t.mustmatch_multiline = [
        """.*Step 1 .*no warnings or errors.*
sbs: build log in.*
\+ sleep 1.*
.*make -rf .*epoc32/build/metadata_all.mk.*
.*make.*epoc32/build/metadata_all.mk. is up to date.*
Step 2 .*
.*RE-RUNNING SBS with previous parameters.*
Step 3 .*
.*RE-RUNNING SBS with previous parameters.*
.*RE-RUNNING SBS with previous parameters.*"""
    ]
    t.mustnotmatch_multiline = [
        """RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*"""
    ]
    t.run()
    return t
示例#17
0
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
示例#18
0
def run():
	t = SmokeTest()
	t.id = "31"
	t.name = "listing"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
			"-c winscw -k listing"
	t.targets = [
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.WINSCW.lst"
		]
	t.run()
	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
示例#20
0
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
示例#21
0
def run():
	t = SmokeTest()
	t.id = "0096"
	t.name = "kdll_armv5"
	t.usebash = 1

	t.command = "sbs -b smoke_suite/test_resources/simple_kdll/bld.inf -c armv5_urel -f-"

	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll.map",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll.sym"
		]

	t.mustmatch = [
		r".*\bksrt\d_\d\.lib\b.*",
		r".*\bekll\.lib\b.*"
		]

	t.mustnotmatch = [
		r".*usrt.*",
		r".*scppnwdl.*"
		]

	t.run()
	return t
示例#22
0
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
示例#23
0
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
示例#24
0
def run():
	t = SmokeTest()
	t.usebash = True

	if "SBS_ELF2E32" in os.environ:
		elf2e32 = os.environ["SBS_ELF2E32"]
	elif sys.platform.startswith("win"):
		elf2e32 = "$(EPOCROOT)/epoc32/tools/elf2e32.exe"
	else:
		elf2e32 = "$(EPOCROOT)/epoc32/tools/elf2e32"

	description = """This test attempts to check that an exe gets the capabilities that we requested.  It's ARM specific since it uses elf2e32. Tries to demonstrate capabilties being turned off then on in the mmp."""
	command = "sbs -b smoke_suite/test_resources/simple/capability.inf -c %s -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && " + \
			  elf2e32 + " --dump=s  --e32input=$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe"
	targets = [
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe.map"
		]	
	buildtargets = [
		]
	mustmatch = [
		"\s*Secure ID: 10003a5c$",
		"\s*Vendor ID: 00000000$",
		"\s*Capabilities: 00000000 000fffbf$",
		"\s*CommDD$",
		"\s*PowerMgmt$",
		"\s*MultimediaDD$",
		"\s*ReadDeviceData$",
		"\s*WriteDeviceData$",
		"\s*TrustedUI$",
		"\s*DiskAdmin$",
		"\s*NetworkControl$",
		"\s*AllFiles$",
		"\s*SwEvent$",
		"\s*NetworkServices$",
		"\s*LocalServices$",
		"\s*ReadUserData$",
		"\s*WriteUserData$",
		"\s*Location$",
		"\s*SurroundingsDD$",
		"\s*UserEnvironment$",
		"\s*TCB$"
	]
	mustnotmatch = [
		"DRM"
	]
	warnings = 0
	
	t.id = "0107"
	t.name = "capability_arm"
	t.description = description
	t.command = command % "arm.v5.urel.gcce4_4_1"
	t.targets = targets
	t.mustmatch = mustmatch
	t.mustnotmatch = mustnotmatch
	t.warnings = warnings
	t.run()
	return t
示例#25
0
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
示例#26
0
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
示例#27
0
def run():
    t = SmokeTest()
    t.description = "Set of tests for commandline option validation e.g. checking that the specified make engine exists"

    t.usebash = True
    t.errors = 1
    t.returncode = 1
    t.exceptions = 0
    base_command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE}"

    t.id = "42562a"
    t.name = "validate_makeengine_nonexist"
    t.command = base_command + " -e amakeenginethatdoesnotexist"
    t.mustmatch = [
        "Unable to use make engine: 'amakeenginethatdoesnotexist' does not appear to be a make engine - no settings found for it"
    ]

    t.run()

    t.id = "43562b"
    t.mustmatch = [
        "Unable to use make engine: 'arm' is not a build engine \(it's a variant but it does not extend 'make_engine'"
    ]
    t.name = "validate_makeengine_is_a_non_makengine_variant"
    t.command = base_command + " -e arm"
    t.run()

    # aliases can be of the form name='blah' meaning='x.y.z'  i.e. where the alias is for a sequence of variants
    # this tests that we detect that at least one of these variants has make_engine as a parent
    # it is possible for one of them not to and we mustn't bomb-out just because of that
    t.id = "43562c"
    t.mustmatch = []
    t.name = "validate_real_dfs_modded_makeengine_alias"
    t.command = "export HOME=$SBS_HOME/test/custom_options/dfsconfig;  " + base_command + " -e dfstestmake -c arm.v5.urel.gcce4_4_1"
    t.errors = 0
    t.warnings = 0
    t.returncode = 0
    t.run()

    t.id = "43562"
    t.name = "input_validation"
    t.print_result()
    return t
def run():
	t = SmokeTest()
	t.id = "80"
	t.name = "sbs_with_nonexisting_bldinf"
	t.description = "Test if sbs generates warning if invoked without bld.inf specified i.e. using default bld.inf which doesn't exist"
	t.command = "mkdir ${EPOCROOT}/emptydir; rm ${EPOCROOT}/emptydir/*;  cd ${EPOCROOT}/emptydir; sbs -f ${SBSLOGFILE} -m {SBSMAKEFILE}"
	t.usebash = True
	t.warnings = 1 
	t.run()
	return t
示例#29
0
def run():
    t = SmokeTest()
    t.id = "50"
    t.name = "sysdef_dud"
    t.description = "Test an invalid system_definition.xml file"
    t.command = "sbs -s " + "smoke_suite/test_resources/sysdef/system_definition_dud.xml"
    t.targets = []
    t.errors = 1
    t.returncode = 1
    t.run()
    return t
示例#30
0
def run():
	t = SmokeTest()
	t.id = "46"
	t.name = "wrong_projectname"
	t.description = "Test -p with wrong project name"
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf " \
			+ "-p wrongname1.mmp -p wrongname2.mmp"
	t.targets = []
	t.warnings = 2 # One for armv5, one for winscw.
	t.run()
	return t
示例#31
0
def run():
	t = SmokeTest()
	t.id = "85a"
	t.name = "commandline_nodefaults"
	t.description = """Test that raptor complains if you run it without specifying any components and there is no default bld.inf or system definition in the current directory."""
	t.usebash = True
			
	t.command = """
		TMPDIR="build/commandline_testdefaults";
		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
	""" 
		
	t.mustmatch = [".*warning: No default bld.inf or system definition.*found.* "]
	t.warnings = 1
	t.run()

	t.id = "0085"
	t.name = "commandline"
	return t
示例#32
0
def run():
    t = SmokeTest()
    t.description = "Check that ARM toolchain specific macros are used in both metadata and source processing."
    t.warnings = -1

    toolchains = {
        "rvct2_2": ["ARMCC", "ARMCC_2", "ARMCC_2_2", "__ARMCC__", "__ARMCC_2__", "__ARMCC_2_2__"],
        "rvct3_1": ["ARMCC", "ARMCC_3", "ARMCC_3_1", "__ARMCC__", "__ARMCC_3__", "__ARMCC_3_1__"],
        "rvct4_0": ["ARMCC", "ARMCC_4", "ARMCC_4_0", "__ARMCC__", "__ARMCC_4__", "__ARMCC_4_0__"],
        "gcce4_3_2": ["GCCE", "GCCE_4", "GCCE_4_3", "__GCCE__", "__GCCE_4__", "__GCCE_4_3__"],
        "gcce4_3_3": ["GCCE", "GCCE_4", "GCCE_4_3", "__GCCE__", "__GCCE_4__", "__GCCE_4_3__"],
        "gcce4_4_1": ["GCCE", "GCCE_4", "GCCE_4_4", "__GCCE__", "__GCCE_4__", "__GCCE_4_4__"],
    }

    rootname = "toolchain_macros_armv5_%s_%s"
    rootcommand = "sbs -b smoke_suite/test_resources/toolchain_macros/bld.inf -c arm.v5.urel."
    macromatch = ": #warning( directive:)? %s(</warning>)?$"

    count = 0
    for toolchain in sorted(toolchains.keys()):
        t.id = "0095" + string.ascii_lowercase[count]
        t.name = rootname % (toolchain, "clean")
        t.command = rootcommand + toolchain + " clean"
        t.mustmatch_singleline = []
        t.run()
        count += 1

        t.id = "0095" + string.ascii_lowercase[count]
        t.name = rootname % (toolchain, "build")
        t.command = rootcommand + toolchain
        mustmatch = []
        for macro in toolchains[toolchain]:
            mustmatch.append(macromatch % macro)
        t.mustmatch_singleline = mustmatch
        t.run()
        count += 1

    t.id = "95"
    t.name = "toolchain_macros"
    t.print_result()
    return t
示例#33
0
def run():
    t = SmokeTest()
    t.id = "50"
    t.name = "sysdef_dud"
    t.description = "Test an invalid system_definition.xml file"
    t.command = "sbs -s " + \
      "smoke_suite/test_resources/sysdef/system_definition_dud.xml"
    t.targets = []
    t.errors = 1
    t.returncode = 1
    t.run()
    return t
示例#34
0
def run():
	t = SmokeTest()
	t.description = "Set of tests for commandline option validation e.g. checking that the specified make engine exists"
	
	
	t.usebash = True
	t.errors = 1
	t.returncode = 1
	t.exceptions = 0
	base_command = "sbs -b smoke_suite/test_resources/simple/bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE}"
	
	t.id = "42562a"
	t.name = "validate_makeengine_nonexist"
	t.command = base_command + " -e amakeenginethatdoesnotexist"
	t.mustmatch = ["Unable to use make engine: 'amakeenginethatdoesnotexist' does not appear to be a make engine - no settings found for it"]

	t.run()

	t.id = "43562b"
	t.mustmatch = ["Unable to use make engine: 'arm' is not a build engine \(it's a variant but it does not extend 'make_engine'"]
	t.name = "validate_makeengine_is_a_non_makengine_variant"
	t.command = base_command + " -e arm"
	t.run()

	# aliases can be of the form name='blah' meaning='x.y.z'  i.e. where the alias is for a sequence of variants
	# this tests that we detect that at least one of these variants has make_engine as a parent
	# it is possible for one of them not to and we mustn't bomb-out just because of that
	t.id = "43562c"
	t.mustmatch = []
	t.name = "validate_real_dfs_modded_makeengine_alias"
	t.command = "export HOME=$SBS_HOME/test/custom_options/dfsconfig;  " + base_command + " -e dfstestmake -c arm.v5.urel.gcce4_4_1"
	t.errors = 0
	t.warnings = 0
	t.returncode = 0
	t.run()
	
	t.id = "43562"
	t.name = "input_validation"
	t.print_result()
	return t
示例#35
0
def run():
    t = SmokeTest()
    t.description = "test that long commands time out and get retried"

    exitCode = "128"

    t.id = "60a"
    t.name = "timeout"
    t.usebash = True
    t.command = "sbs -b smoke_suite/test_resources/timeout/bld.inf -f -"

    t.mustmatch_singleline = [
        "status exit='failed' code='" + exitCode +
        "' attempt='1' reason='timeout'",
    ]
    t.errors = -1
    t.returncode = 1
    t.run()

    t.id = "60b"
    t.name = "timeout with retries"
    t.usebash = True
    t.command = "sbs -b smoke_suite/test_resources/timeout/bld.inf -t 3 -f -"

    t.mustmatch_singleline = [
        "status exit='retry' code='" + exitCode +
        "' attempt='1' reason='timeout'",
        "status exit='retry' code='" + exitCode +
        "' attempt='2' reason='timeout'",
        "status exit='failed' code='" + exitCode +
        "' attempt='3' reason='timeout'",
    ]
    t.errors = -1
    t.returncode = 1
    t.run()

    t.id = "60"
    t.name = "timeout"
    t.print_result()
    return t
示例#36
0
def run():
    t = SmokeTest()
    t.id = "113"
    t.name = "make_engine_errors"
    t.description = "Errors reported by gmake and emake should be escaped to ensure that the logs are valid XML"

    t.mustmatch_singleline = [
        "Circular b &lt;- a dependency",
        "non_existent_&amp;_needs_escaping.txt"
    ]

    t.mustnotmatch_singleline = [
        "Circular b <- a dependency", "non_existent_&_needs_escaping.txt"
    ]

    t.usebash = True
    t.errors = 1
    t.returncode = 1
    base_command = "sbs --no-depend-generate -b smoke_suite/test_resources/make_engine_errors/bld.inf -f-"

    t.id = "113a"
    t.name = "gmake_engine_errors"
    t.command = base_command + " -e make"
    t.run()

    t.id = "113b"
    t.name = "emake_engine_errors"
    t.command = base_command + " -e emake"
    t.run()

    t.id = "113c"
    t.name = "emake_engine_errors_with_merged_streams"
    t.command = base_command + " -e emake --mo=--emake-mergestreams=1"
    t.run()

    t.id = "113"
    t.name = "make_engine_errors"
    t.print_result()
    return t
def run():

    t = SmokeTest()
    t.description = "Tests against log files to ensure it 'does the right thing'"

    t.id = "87a"
    t.name = "terminal_filter_tests_log"
    t.command = "$(SBS_HOME)/test/smoke_suite/test_resources/refilter/testfilterterminal"
    t.countmatch = [
        # One of each type of error occurs early in the 'sbs' call where there
        # is a recipe inside another recipe. Then the errors occur in the
        # opposite order where are 2 closing tags next to each other before 2
        # opening tags appear next to each other
        [
            "sbs: error: Opening recipe tag found before closing recipe tag for previous recipe:",
            2
        ],
        ["Discarding previous recipe \(Possible logfile corruption\)", 2],
        ["sbs: error: Closing recipe tag found before opening recipe tag:", 2],
        ["Unable to print recipe data \(Possible logfile corruption\)", 2]
    ]
    t.errors = 4
    t.run()

    t.id = "87b"
    t.name = "terminal_filter_tests_configs"
    t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf"
    t.countmatch = []
    t.errors = 0
    t.mustmatch_singleline = [
        "built 'armv5_urel'", "built 'armv5_udeb'", "built 'winscw_urel'",
        "built 'winscw_udeb'"
    ]
    t.run()

    t.id = "87"
    t.name = "terminal_filter_tests"
    t.print_result()
    return t
示例#38
0
def run():
	t = SmokeTest()
	t.id = "20"
	t.name = "flm_extension"
	t.command = "sbs -b " + \
			"smoke_suite/test_resources/simple_extension/flm_bld.inf -c armv5"
	t.targets = [
		"$(EPOCROOT)/epoc32/build/flm_test_1_2",
		"$(EPOCROOT)/epoc32/tools/makefile_templates/tools/flm_export.xml",
		"$(EPOCROOT)/epoc32/tools/makefile_templates/tools/flm_export.flm"
		]
	t.run()
	return t
示例#39
0
def run():
    t = SmokeTest()
    t.id = "85a"
    t.name = "commandline_nodefaults"
    t.description = """Test that raptor complains if you run it without specifying any components and there is no default bld.inf or system definition in the current directory."""
    t.usebash = True

    t.command = """
		TMPDIR="build/commandline_testdefaults";
		cd $(EPOCROOT)/epoc32 && rm -rf "$TMPDIR" 2>/dev/null; mkdir -p "$TMPDIR" && cd "$TMPDIR" &&
		sbs ${SBSLOGFILE} -n ; rm -rf "$TMPDIR"
	"""

    t.mustmatch = [
        ".*warning: No default bld.inf or system definition.*found.* "
    ]
    t.warnings = 1
    t.run()

    t.id = "0085"
    t.name = "commandline"
    return t
示例#40
0
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
示例#41
0
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "generic_path_unit"

	tests = unittest.makeSuite(TestGenericPaths)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
示例#42
0
def run():
    t = SmokeTest()
    t.id = "999"
    t.name = "generic_path_unit"

    tests = unittest.makeSuite(TestGenericPaths)
    result = unittest.TextTestRunner(verbosity=2).run(tests)

    if result.wasSuccessful():
        t.result = SmokeTest.PASS
    else:
        t.result = SmokeTest.FAIL

    return t
示例#43
0
def run():
    t = SmokeTest()
    t.id = "999"
    t.name = "raptor_make_unit"

    tests = unittest.makeSuite(TestRaptorMake)
    result = unittest.TextTestRunner(verbosity=2).run(tests)

    if result.wasSuccessful():
        t.result = SmokeTest.PASS
    else:
        t.result = SmokeTest.FAIL

    return t
示例#44
0
def run():
    t = SmokeTest()
    t.id = "81"
    t.name = "export_multi"
    t.description = "Test that the export section only gets included once even if all platforms are selected (see DPDEF138366)"
    # Note I'm not including 'tools' to avoid a dependency on MSVC6
    # Given this test will not be necessary once the export section is removed from the make files anyway, I'm not too worried.
    t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf -c winscw -c armv5 -c tools2 -c armv7 -c gccxml EXPORT"
    t.mustnotmatch = [
        ".*warning: overriding commands for target.*",
        ".*warning: ignoring old commands for target.*"
    ]
    t.run()
    return t
示例#45
0
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "mmpparser_unit"

	tests = unittest.makeSuite(TestMMPParser)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
示例#46
0
def run():
	t = SmokeTest()
	t.id = "81"
	t.name = "export_multi"
	t.description = "Test that the export section only gets included once even if all platforms are selected (see DPDEF138366)"
	# Note I'm not including 'tools' to avoid a dependency on MSVC6
	# Given this test will not be necessary once the export section is removed from the make files anyway, I'm not too worried.
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf -c winscw -c armv5 -c tools2 -c armv7 -c gccxml EXPORT"
	t.mustnotmatch = [
		".*warning: overriding commands for target.*",
		".*warning: ignoring old commands for target.*"
	]
	t.run()
	return t
示例#47
0
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "filter_utils_unit"

	tests = unittest.makeSuite(TestFilterUtils)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "filter_interface_unit"

	tests = unittest.makeSuite(TestFilterInterface)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "raptor_utilities_unit"

	tests = unittest.makeSuite(TestRaptorUtilities)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
示例#50
0
def run():
    t = SmokeTest()
    t.description = "tests that previous crash conditions now generate tidy errors."

    # no crash when there are bld.inf lines starting with a slash
    t.id = "45a"
    t.name = "raptor_crash"
    t.command = "sbs -b smoke_suite/test_resources/simple_crash/bld.inf"
    t.errors = 2
    t.returncode = 1
    t.run()

    # should get an error code when running inside cmd
    t.id = "45b"
    t.name = "error_cmd"
    t.usebash = True
    t.command = "cmd /c sbs -s no_such_thing"
    t.mustmatch = ["System Definition file no_such_thing does not exist"]
    t.errors = 1
    t.returncode = 1
    t.run("windows")

    # should get an error code when running in bash
    t.id = "45c"
    t.name = "error_bash"
    t.usebash = True
    t.command = "sbs -s no_such_thing"
    t.mustmatch = ["System Definition file no_such_thing does not exist"]
    t.errors = 1
    t.returncode = 1
    t.run()

    # print the over all result
    t.id = "45"
    t.name = "raptor_crash"
    t.print_result()
    return t
def run():
    t = SmokeTest()
    t.description = "Test incremental rebuilding with TC on"
    t.id = "114a"
    t.name = "tracecompiler_incremental_clean"
    t.usebash = True
    t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5_urel.tracecompiler CLEAN"
    t.run()

    t.id = "114b"
    t.name = "tracecompiler_incremental_prebuild"
    t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5_urel.tracecompiler -f - -m ${SBSMAKEFILE}"
    t.countmatch = [["name='compile'", 3]]
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitTraces.h",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitmainTraces.h",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitpermparserTraces.h",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/fixed_id.definitions",
        "$(EPOCROOT)/epoc32/ost_dictionaries/testTC_0x1000008d_Dictionary.xml",
        "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/testTC_0x1000008d_TraceDefinitions.h"
    ]
    t.run()

    t.id = "114c"
    t.name = "tracecompiler_incremental_rebuild"
    t.command = "sleep 1; touch smoke_suite/test_resources/tracecompiler/testTC/src/wlanhwinit.cpp && sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5_urel.tracecompiler -f - -m ${SBSMAKEFILE}"
    t.countmatch = [["name='compile'", 1]]
    t.targets = []
    t.run()

    t.id = "114"
    t.name = "tracecompiler_incremental"
    return t
示例#52
0
def run():
	t = SmokeTest()
	t.description = "tests that previous crash conditions now generate tidy errors."
	
	# no crash when there are bld.inf lines starting with a slash	
	t.id = "45a"
	t.name = "raptor_crash"
	t.command = "sbs -b smoke_suite/test_resources/simple_crash/bld.inf"
	t.errors = 2
	t.returncode = 1
	t.run()
	
	# should get an error code when running inside cmd
	t.id = "45b"
	t.name = "error_cmd"
	t.usebash = True
	t.command = "cmd /c sbs -s no_such_thing"
	t.mustmatch = ["System Definition file no_such_thing does not exist"]
	t.errors = 1
	t.returncode = 1
	t.run("windows")
	
	# should get an error code when running in bash
	t.id = "45c"
	t.name = "error_bash"
	t.usebash = True
	t.command = "sbs -s no_such_thing"
	t.mustmatch = ["System Definition file no_such_thing does not exist"]
	t.errors = 1
	t.returncode = 1
	t.run()
	
	# print the over all result
	t.id = "45"
	t.name = "raptor_crash"
	t.print_result()
	return t
示例#53
0
def run():
    t = SmokeTest()
    t.id = "53"
    t.name = "gnumakefile"
    t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf"
    t.targets = [
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_WINSCW_UREL.txt"
    ]
    t.run("windows")  # we don't have make 3.79 on Linux
    return t
示例#54
0
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 = "65"
    t.name = "implib_armv5_with_armv5_smp"
    t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
      + "armv5 -c armv5.smp LIBRARY"
    # ABIv1 .lib files are not generated on Linux
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso"
    ]
    t.run()

    t.print_result()
    return t
示例#56
0
def run():
    t = SmokeTest()
    t.usebash = True

    t.description = "Test that a timing log is created and contains total parse and build durations"

    t.id = "0103b"
    t.name = "timing_on"
    t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf" + \
      " --filters=FilterLogfile,FilterTiming -f ${SBSLOGFILE} && " + \
      "grep progress:duration ${SBSLOGFILE}.timings"
    t.mustmatch = [
        "^<progress:duration object_type='layer' task='parse' key='.*' duration='\d+.\d+' />$",
        "^<progress:duration object_type='layer' task='build' key='.*' duration='\d+.\d+' />$",
        "^<progress:duration object_type='all' task='all' key='all' duration='\d+.\d+' />$"
    ]
    t.mustnotmatch = []
    t.run()

    t.id = "103"
    t.name = "timing"
    t.print_result()

    return t
示例#57
0
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
示例#58
0
def run():

    generate_files()

    t = SmokeTest()

    t.id = "1"
    t.name = "parse_time_exports_mmps"
    t.description = """Test to measure time taken to parse a large number of
			exports and mmps"""
    t.command = "sbs -b timing_tests/test_resources/parse_time/bld.inf -n " + \
      "-c armv5_urel --toolcheck=off --timing"
    t.run()

    delete_files()
    return t
示例#59
0
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