Пример #1
0
def run():
    t = CheckWhatSmokeTest()
    t.id = "54"
    t.name = "gnumakefile_what"
    t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf --what"
    componentpath = re.sub(
        r'\\', '/', os.path.abspath("smoke_suite/test_resources/gnumakefile"))
    # The raptor tests standardise on uppercase drive letters
    # so make this the same thus it will match strings created
    # inside make/raptor from an EPOCROOT with an uppercase
    # drive letter.
    componentpath = componentpath[0].upper() + componentpath[1:]

    t.output_expected_only_once = True
    t.stdout = [
        # Generated txt files by the gnumakefile
        componentpath + "/master_bld_ARMV5_UDEB.txt",
        componentpath + "/master_bld_ARMV5_UREL.txt",
        componentpath + "/master_bld_WINSCW_UDEB.txt",
        componentpath + "/master_bld_WINSCW_UREL.txt",
        componentpath + "/master_final_ARMV5_UDEB.txt",
        componentpath + "/master_final_ARMV5_UREL.txt",
        componentpath + "/master_final_WINSCW_UDEB.txt",
        componentpath + "/master_final_WINSCW_UREL.txt",
        componentpath + "/master_lib_ARMV5_UDEB.txt",
        componentpath + "/master_lib_ARMV5_UREL.txt",
        componentpath + "/master_lib_WINSCW_UDEB.txt",
        componentpath + "/master_lib_WINSCW_UREL.txt",
        componentpath + "/master_makmake_ARMV5_UDEB.txt",
        componentpath + "/master_makmake_ARMV5_UREL.txt",
        componentpath + "/master_makmake_WINSCW_UDEB.txt",
        componentpath + "/master_makmake_WINSCW_UREL.txt",
        componentpath + "/master_resource_ARMV5_UDEB.txt",
        componentpath + "/master_resource_ARMV5_UREL.txt",
        componentpath + "/master_resource_WINSCW_UDEB.txt",
        componentpath + "/master_resource_WINSCW_UREL.txt",
        componentpath + "/slave_bld_ARMV5_UDEB.txt",
        componentpath + "/slave_bld_ARMV5_UREL.txt",
        componentpath + "/slave_bld_WINSCW_UDEB.txt",
        componentpath + "/slave_bld_WINSCW_UREL.txt",
        componentpath + "/slave_final_ARMV5_UDEB.txt",
        componentpath + "/slave_final_ARMV5_UREL.txt",
        componentpath + "/slave_final_WINSCW_UDEB.txt",
        componentpath + "/slave_final_WINSCW_UREL.txt",
        componentpath + "/slave_lib_ARMV5_UDEB.txt",
        componentpath + "/slave_lib_ARMV5_UREL.txt",
        componentpath + "/slave_lib_WINSCW_UDEB.txt",
        componentpath + "/slave_lib_WINSCW_UREL.txt",
        componentpath + "/slave_makmake_ARMV5_UDEB.txt",
        componentpath + "/slave_makmake_ARMV5_UREL.txt",
        componentpath + "/slave_makmake_WINSCW_UDEB.txt",
        componentpath + "/slave_makmake_WINSCW_UREL.txt",
        componentpath + "/slave_resource_ARMV5_UDEB.txt",
        componentpath + "/slave_resource_ARMV5_UREL.txt",
        componentpath + "/slave_resource_WINSCW_UDEB.txt",
        componentpath + "/slave_resource_WINSCW_UREL.txt"
    ]
    t.run("windows")  # we don't have make 3.79 on Linux
    return t
Пример #2
0
def run():
	premarkerfile = sanitise(ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip"))
	markerfile = MetaReader.unzippedPathFragment(premarkerfile) + ".unzipped"
	
	t = CheckWhatSmokeTest()
	t.id = "25"
	t.name = "zip_export_what"
	t.command = "sbs --what -b smoke_suite/test_resources/simple_zip_export/bld.inf"
	t.stdout = [
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt',
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt',
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt',
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt',
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt"
	]
	
	t.targets = [
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt',
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt',
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt',
		'$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt',
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt",
		"$(EPOCROOT)/epoc32/build/" + markerfile
	]
	t.run()
	return t
Пример #3
0
def run():
    premarkerfile = sanitise(
        ReplaceEnvs(
            "$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip"
        ))
    markerfile = MetaReader.unzippedPathFragment(premarkerfile) + ".unzipped"

    t = CheckWhatSmokeTest()
    t.name = "zip_export_what"
    t.command = "sbs --what -b smoke_suite/test_resources/simple_zip_export/bld.inf"
    t.stdout = [
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt',
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt',
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt',
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt',
        "$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin",
        "$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt"
    ]

    t.targets = [
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt',
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt',
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt',
        '$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt',
        "$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin",
        "$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt",
        "$(EPOCROOT)/epoc32/build/" + markerfile
    ]
    t.run()
    return t
Пример #4
0
def run():
    t = CheckWhatSmokeTest()
    t.id = "15"
    t.name = "implib_armv5_what"
    t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " + \
      "armv5 --what LIBRARY"
    t.stdout = [
        '$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso',
        '$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso'
    ]
    t.run()

    t.print_result()
    return t
Пример #5
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "54"
	t.name = "gnumakefile_what"
	t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf --what"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/gnumakefile"))
	# The raptor tests standardise on uppercase drive letters
	# so make this the same thus it will match strings created 
	# inside make/raptor from an EPOCROOT with an uppercase 
	# drive letter.
	componentpath = componentpath[0].upper() + componentpath[1:]
	
	t.output_expected_only_once = True
	t.stdout = [
	# Generated txt files by the gnumakefile
		componentpath+"/master_bld_ARMV5_UDEB.txt",
		componentpath+"/master_bld_ARMV5_UREL.txt",
		componentpath+"/master_bld_WINSCW_UDEB.txt",
		componentpath+"/master_bld_WINSCW_UREL.txt",
		componentpath+"/master_final_ARMV5_UDEB.txt",
		componentpath+"/master_final_ARMV5_UREL.txt",
		componentpath+"/master_final_WINSCW_UDEB.txt",
		componentpath+"/master_final_WINSCW_UREL.txt",
		componentpath+"/master_lib_ARMV5_UDEB.txt",
		componentpath+"/master_lib_ARMV5_UREL.txt",
		componentpath+"/master_lib_WINSCW_UDEB.txt",
		componentpath+"/master_lib_WINSCW_UREL.txt",
		componentpath+"/master_makmake_ARMV5_UDEB.txt",
		componentpath+"/master_makmake_ARMV5_UREL.txt",
		componentpath+"/master_makmake_WINSCW_UDEB.txt",
		componentpath+"/master_makmake_WINSCW_UREL.txt",
		componentpath+"/master_resource_ARMV5_UDEB.txt",
		componentpath+"/master_resource_ARMV5_UREL.txt",
		componentpath+"/master_resource_WINSCW_UDEB.txt",
		componentpath+"/master_resource_WINSCW_UREL.txt",
		componentpath+"/slave_bld_ARMV5_UDEB.txt",
		componentpath+"/slave_bld_ARMV5_UREL.txt",
		componentpath+"/slave_bld_WINSCW_UDEB.txt",
		componentpath+"/slave_bld_WINSCW_UREL.txt",
		componentpath+"/slave_final_ARMV5_UDEB.txt",
		componentpath+"/slave_final_ARMV5_UREL.txt",
		componentpath+"/slave_final_WINSCW_UDEB.txt",
		componentpath+"/slave_final_WINSCW_UREL.txt",
		componentpath+"/slave_lib_ARMV5_UDEB.txt",
		componentpath+"/slave_lib_ARMV5_UREL.txt",
		componentpath+"/slave_lib_WINSCW_UDEB.txt",
		componentpath+"/slave_lib_WINSCW_UREL.txt",
		componentpath+"/slave_makmake_ARMV5_UDEB.txt",
		componentpath+"/slave_makmake_ARMV5_UREL.txt",
		componentpath+"/slave_makmake_WINSCW_UDEB.txt",
		componentpath+"/slave_makmake_WINSCW_UREL.txt",
		componentpath+"/slave_resource_ARMV5_UDEB.txt",
		componentpath+"/slave_resource_ARMV5_UREL.txt",
		componentpath+"/slave_resource_WINSCW_UDEB.txt",
		componentpath+"/slave_resource_WINSCW_UREL.txt"
	]
	t.run("windows") # we don't have make 3.79 on Linux
	return t
Пример #6
0
def run():
    t = CheckWhatSmokeTest()
    t.id = "37"
    t.name = "implib_winscw_what"
    t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
      + "winscw --what LIBRARY"
    t.stdout = ['$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib']
    t.run()
    return t
Пример #7
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "15"
	t.name = "implib_armv5_what"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " + \
			"armv5 --what LIBRARY"
	t.stdout = [
		'$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso',
		'$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso'
	]
	t.run()
	
	t.print_result()
	return t
Пример #8
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "37"
	t.name = "implib_winscw_what"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
			+ "winscw --what LIBRARY"
	t.stdout = [
		'$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib'
	]
	t.run()
	return t
Пример #9
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "7"
	t.name = "exe_armv5_winscw_what"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
			"-c winscw --what"
	t.stdout = [
			# armv5 artefacts
		"$(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",
			# winscw artefacts
		"$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
	]
	t.run()
	return t
def run():
	t = CheckWhatSmokeTest()
	t.id = "7"
	t.name = "exe_armv5_winscw_what"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
			"-c winscw --what"
	t.stdout = [
			# armv5 artefacts
		"$(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",
			# winscw artefacts
		"$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
	]
	t.run()
	return t
Пример #11
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "67"
	t.name = "implib_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -f -" \
			" -m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog LIBRARY"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_implib"))
	t.regexlinefilter = re.compile("^<(whatlog|build>)")
	t.hostossensitive = False
	t.usebash = True
	# 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",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"
		]
	t.stdout = [
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='winscw_udeb.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='winscw_urel.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='armv5_udeb.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='"+componentpath+"/simple_implib.mmp' config='armv5_urel.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso</build>"
	]
	t.run()
	
	t.print_result()
	return t
def run():
    t = CheckWhatSmokeTest()
    t.id = "6"
    t.name = "exe_armv5_winscw_check"
    t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 -c winscw --check"
    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",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
        "$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
        "$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map",
    ]
    t.missing = 7
    t.returncode = 1
    t.stdout = [
        # armv5 artefacts
        "MISSING: $(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
        "MISSING: $(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
        "MISSING: $(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
        "MISSING: $(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
        # winscw artefacts
        "MISSING: $(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
        "MISSING: $(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
        "MISSING: $(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map",
    ]
    t.run()

    t.id = "6a"
    t.name = "exe_armv5_winscw_check_error"
    t.command = "sbs -b no/such/bld.inf --check"
    t.targets = []
    t.missing = 0
    t.errors = 2
    t.returncode = 1
    t.regexlinefilter = re.compile("^NEVER")  # no literal stdout matching
    t.stdout = []
    t.mustmatch = ["sbs: error:.*build info file does not exist", "sbs: error: no CHECK information found"]
    t.run()

    t.id = "6b"
    t.name = "exe_armv5_winscw_what_error"
    t.command = "sbs -b no/such/bld.inf --what"
    t.mustmatch = ["sbs: error:.*build info file does not exist", "sbs: error: no WHAT information found"]
    t.run()

    t.id = "6"
    t.name = "exe_armv5_winscw_check"
    t.print_result()
    return t
def run():
	premarkerfile = sanitise(ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip"))
	markerfile = MetaReader.unzippedPathFragment(premarkerfile) + ".unzipped"
	
	t = CheckWhatSmokeTest()
	t.id = "0069a"
	t.name = "stringtable_zip_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf -b smoke_suite/test_resources/simple_zip_export/bld.inf -f - -m ${SBSMAKEFILE} -c armv5_udeb.whatlog EXPORT"
	componentpath1 = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_stringtable"))
	componentpath2 = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_zip_export"))
	t.regexlinefilter = re.compile("^<(whatlog|archive|stringtable>|member>|zipmarker>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		"$(EPOCROOT)/epoc32/include/strconsts.h",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt",
		"$(EPOCROOT)/epoc32/build/" + markerfile
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_stringtable/bld.inf', [
		"stringtabletest_/strconsts.cpp",
		"stringtabletest_/strconsts.h",
		"stringtabletest_/strconsts.st"
	])
	t.stdout = [
		"<whatlog bldinf='"+componentpath1+"/bld.inf' mmp='"+componentpath1+"/simple_stringtable.mmp' config='armv5_udeb.whatlog'>",
		"<stringtable>$(EPOCROOT)/epoc32/include/strconsts.h</stringtable>",
		"<whatlog bldinf='"+componentpath2+"/bld.inf' mmp='' config=''>",
		"<archive zipfile='"+componentpath2+"/archive.zip'>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt</member>",
		"<zipmarker>$(EPOCROOT)/epoc32/build/" + markerfile + "</zipmarker>"
	]
	t.run()
	
	"Tests to check that up-to-date zip exports are reported"
	t.id = "0069b"
	t.name = "stringtable_zip_whatlog_rebuild"
	t.targets = []
	t.run()
	
	t.id = "69"
	t.name = "stringtable_zip_whatlog"	
	t.print_result()
	return t
Пример #14
0
def run():
    result = SmokeTest.PASS
    t = SmokeTest()
    t.id = "0018a"
    t.name = "temclean"
    t.command = "sbs -b smoke_suite/test_resources/tem/bldclean.inf -c armv5 CLEAN"
    t.targets = [
        "$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded",
        "$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed"
    ]
    t.missing = 2
    t.warnings = 1
    t.returncode = 0
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t.id = "0018b"
    t.name = "temtest"
    t.command = "sbs -b smoke_suite/test_resources/tem/bld.inf -c armv5"
    t.targets = ["$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded"]
    t.warnings = 2
    t.missing = 0
    t.returncode = 1
    t.mustmatch = ["repeated call to TEM with same values.* Stop\."]
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t.id = "0018c"
    t.name = "temclean2"
    t.command = "sbs -b smoke_suite/test_resources/tem/bldclean.inf -c armv5 CLEAN"
    t.targets = [
        "$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded",
        "$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed"
    ]
    t.missing = 2
    t.warnings = 1
    t.returncode = 0
    t.mustmatch = []
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t.id = "0018d"
    t.name = "badtem"
    t.command = "sbs -b smoke_suite/test_resources/tem/bad_bld.inf -c armv5"
    t.targets = ["$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed"]
    t.warnings = 3
    t.missing = 0
    t.returncode = 1
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t.id = "0018e"
    t.name = "temclean3"
    t.command = "sbs -b smoke_suite/test_resources/tem/bldclean.inf -c armv5 CLEAN"
    t.targets = [
        "$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded",
        "$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed"
    ]
    t.missing = 2
    t.warnings = 1
    t.returncode = 0
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t = CheckWhatSmokeTest()
    t.id = "0018f"
    t.name = "temwhat"
    t.command = "sbs -b smoke_suite/test_resources/simple_extension/bld.inf --what"
    t.output_expected_only_once = True
    t.stdout = [
        # exports
        '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk',
        '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta',
        '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk',
        '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta',
        # release tree built
        '$(EPOCROOT)/epoc32/release/armv5/udeb/simple_extension.txt',
        '$(EPOCROOT)/epoc32/release/armv5/urel/simple_extension.txt',
        '$(EPOCROOT)/epoc32/release/winscw/udeb/simple_extension.txt',
        '$(EPOCROOT)/epoc32/release/winscw/urel/simple_extension.txt'
    ]
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t = SmokeTest()
    t.id = "0018g"
    t.name = "badtem2"
    t.command = "sbs -b smoke_suite/test_resources/tem/bad2_bld.inf -c armv5"
    t.targets = ["$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed"]
    t.warnings = 3
    t.returncode = 1
    t.run()
    if t.result == SmokeTest.FAIL:
        result = SmokeTest.FAIL

    t.id = "18"
    t.name = "temtest"
    t.result = result
    t.print_result()
    return t
Пример #15
0
def run():

    t = CheckWhatSmokeTest()
    t.id = "68"
    t.description = "Test output from WHAT target"
    t.name = "extension_whattarget"
    t.command = "sbs -b smoke_suite/test_resources/simple_extension/bld.inf" + \
      " WHAT -f - -m ${SBSMAKEFILE}"
    t.regexlinefilter = \
      re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
    t.hostossensitive = False
    t.usebash = True
    t.targets = [
        "$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk",
        "$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta",
        "$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk",
        "$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta",
    ]
    t.stdout = [
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config=''>",
        "<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/clean.mk'/>",
        "<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/clean.meta'/>",
        "<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/build.mk'/>",
        "<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/build.meta'/>",
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='armv5_udeb'>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/udeb/simple_extension.txt</build>",
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='armv5_urel'>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/urel/simple_extension.txt</build>",
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='winscw_urel'>",
        "<build>$(EPOCROOT)/epoc32/release/winscw/urel/simple_extension.txt</build>",
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='winscw_udeb'>",
        "<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_extension.txt</build>"
    ]
    t.run()
    return t
Пример #16
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "66"
	t.name = "gui_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -f - -m" \
			+ " ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_gui"))
	t.regexlinefilter = \
			re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
		"$(EPOCROOT)/epoc32/include/HelloWorld.rsg",
		"$(EPOCROOT)/epoc32/data/z/resource/apps/HelloWorld.rsc",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/HelloWorld.rsc",
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/HelloWorld.rsc",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map",
		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
		"helloworld_exe/helloworld.mbm_bmconvcommands",
		"HelloWorld_exe/HelloWorld_HelloWorld.rsc.rpp",
		"HelloWorld_exe/HelloWorld_HelloWorld.rsc.d",
		"helloworld_exe/armv5/udeb/HelloWorld_Application.o",
		"helloworld_exe/armv5/udeb/HelloWorld_Application.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o",
		"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_AppView.o",
		"helloworld_exe/armv5/udeb/HelloWorld_AppView.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_Document.o",
		"helloworld_exe/armv5/udeb/HelloWorld_Document.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_Main.o",
		"helloworld_exe/armv5/udeb/HelloWorld_Main.o.d",
		"helloworld_exe/armv5/udeb/helloworld_udeb_objects.via",
		"helloworld_exe/armv5/urel/HelloWorld_Application.o",
		"helloworld_exe/armv5/urel/HelloWorld_Application.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_AppUi.o",
		"helloworld_exe/armv5/urel/HelloWorld_AppUi.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_AppView.o",
		"helloworld_exe/armv5/urel/HelloWorld_AppView.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_Document.o",
		"helloworld_exe/armv5/urel/HelloWorld_Document.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_Main.o",
		"helloworld_exe/armv5/urel/HelloWorld_Main.o.d",
		"helloworld_exe/armv5/urel/helloworld_urel_objects.via",
		"helloworld_exe/winscw/udeb/helloworld.UID.CPP",
		"helloworld_exe/winscw/udeb/HelloWorld_Application.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_Application.o",
		"helloworld_exe/winscw/udeb/HelloWorld_Application.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_AppUi.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o",
		"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_AppView.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_AppView.o",
		"helloworld_exe/winscw/udeb/HelloWorld_AppView.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_Document.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_Document.o",
		"helloworld_exe/winscw/udeb/HelloWorld_Document.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_Main.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_Main.o",
		"helloworld_exe/winscw/udeb/HelloWorld_Main.o.d",
		"helloworld_exe/winscw/udeb/helloworld_UID_.dep",
		"helloworld_exe/winscw/udeb/helloworld_UID_.o",
		"helloworld_exe/winscw/udeb/helloworld_UID_.o.d",
		"helloworld_exe/winscw/urel/helloworld.UID.CPP",
		"helloworld_exe/winscw/urel/HelloWorld_Application.dep",
		"helloworld_exe/winscw/urel/HelloWorld_Application.o",
		"helloworld_exe/winscw/urel/HelloWorld_Application.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_AppUi.dep",
		"helloworld_exe/winscw/urel/HelloWorld_AppUi.o",
		"helloworld_exe/winscw/urel/HelloWorld_AppUi.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_AppView.dep",
		"helloworld_exe/winscw/urel/HelloWorld_AppView.o",
		"helloworld_exe/winscw/urel/HelloWorld_AppView.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_Document.dep",
		"helloworld_exe/winscw/urel/HelloWorld_Document.o",
		"helloworld_exe/winscw/urel/HelloWorld_Document.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_Main.dep",
		"helloworld_exe/winscw/urel/HelloWorld_Main.o",
		"helloworld_exe/winscw/urel/HelloWorld_Main.o.d",
		"helloworld_exe/winscw/urel/helloworld_UID_.dep",
		"helloworld_exe/winscw/urel/helloworld_UID_.o",
		"helloworld_exe/winscw/urel/helloworld_UID_.o.d",
		"HelloWorld_reg_exe/HelloWorld_reg_HelloWorld_reg.rsc.d"
	])
	t.stdout = [
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='armv5_udeb.whatlog'>",
		"<bitmap>$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm</bitmap>",
		"<resource>$(EPOCROOT)/epoc32/include/HelloWorld.rsg</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/resource/apps/HelloWorld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/HelloWorld_reg.rsc</resource>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map</build>",
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='winscw_urel.whatlog'>",
		"<bitmap>$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm</bitmap>",
		"<bitmap>$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm</bitmap>",
		"<bitmap>$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm</bitmap>",
		"<resource>$(EPOCROOT)/epoc32/include/HelloWorld.rsg</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/resource/apps/HelloWorld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/HelloWorld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/HelloWorld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/HelloWorld_reg.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/HelloWorld_reg.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/HelloWorld_reg.rsc</resource>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe</build>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map</build>",
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='armv5_urel.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map</build>",
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='winscw_udeb.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe</build>",
	]
	t.run()
	return t
def run():
	premarkerfile = sanitise(ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip"))
	markerfile = MetaReader.unzippedPathFragment(premarkerfile) + ".unzipped"
	
	t = CheckWhatSmokeTest()
	t.name = "stringtable_zip_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf -b smoke_suite/test_resources/simple_zip_export/bld.inf -f - -m ${SBSMAKEFILE} -c armv5_udeb.whatlog"
	componentpath1 = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_stringtable"))
	componentpath2 = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_zip_export"))
	t.regexlinefilter = re.compile("^<(whatlog|archive|stringtable>|member>|zipmarker>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		"$(EPOCROOT)/epoc32/include/strconsts.h",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin",
		"$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt",
		"$(EPOCROOT)/epoc32/build/" + markerfile
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_stringtable/bld.inf', [
		"stringtabletest_/strconsts.cpp",
		"stringtabletest_/strconsts.h",
		"stringtabletest_/strconsts.st"
	])
	t.stdout = [
		"<whatlog bldinf='"+componentpath1+"/bld.inf' mmp='"+componentpath1+"/simple_stringtable.mmp' config='armv5_udeb.whatlog'>",
		"<stringtable>$(EPOCROOT)/epoc32/include/strconsts.h</stringtable>",
		"<whatlog bldinf='"+componentpath2+"/bld.inf' mmp='' config=''>",
		"<archive zipfile='"+componentpath2+"/archive.zip'>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefilelinuxbin</member>",
		"<member>$(EPOCROOT)/epoc32/testunzip/archive/archivefilereadonly.txt</member>",
		"<zipmarker>$(EPOCROOT)/epoc32/build/" + markerfile + "</zipmarker>"
	]
	t.run()
	
	"Tests to check that up-to-date zip exports are reported"
	t.name = "stringtable_zip_whatlog_rebuild"
	t.targets = []
	t.run()
	
	t.name = "stringtable_zip_whatlog"	
	t.print_result()
	return t
Пример #18
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "70"
	t.name = "gnumakefile_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf -f - " \
			"-m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/gnumakefile"))
	t.regexlinefilter = re.compile("^<(whatlog|build>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		componentpath+"/master_bld_ARMV5_UDEB.txt",
		componentpath+"/master_bld_ARMV5_UREL.txt",
		componentpath+"/master_bld_WINSCW_UDEB.txt",
		componentpath+"/master_bld_WINSCW_UREL.txt",
		componentpath+"/master_final_ARMV5_UDEB.txt",
		componentpath+"/master_final_ARMV5_UREL.txt",
		componentpath+"/master_final_WINSCW_UDEB.txt",
		componentpath+"/master_final_WINSCW_UREL.txt",
		componentpath+"/master_lib_ARMV5_UDEB.txt",
		componentpath+"/master_lib_ARMV5_UREL.txt",
		componentpath+"/master_lib_WINSCW_UDEB.txt",
		componentpath+"/master_lib_WINSCW_UREL.txt",
		componentpath+"/master_makmake_ARMV5_UDEB.txt",
		componentpath+"/master_makmake_ARMV5_UREL.txt",
		componentpath+"/master_makmake_WINSCW_UDEB.txt",
		componentpath+"/master_makmake_WINSCW_UREL.txt",
		componentpath+"/master_resource_ARMV5_UDEB.txt",
		componentpath+"/master_resource_ARMV5_UREL.txt",
		componentpath+"/master_resource_WINSCW_UDEB.txt",
		componentpath+"/master_resource_WINSCW_UREL.txt",
		componentpath+"/slave_bld_ARMV5_UDEB.txt",
		componentpath+"/slave_bld_ARMV5_UREL.txt",
		componentpath+"/slave_bld_WINSCW_UDEB.txt",
		componentpath+"/slave_bld_WINSCW_UREL.txt",
		componentpath+"/slave_final_ARMV5_UDEB.txt",
		componentpath+"/slave_final_ARMV5_UREL.txt",
		componentpath+"/slave_final_WINSCW_UDEB.txt",
		componentpath+"/slave_final_WINSCW_UREL.txt",
		componentpath+"/slave_lib_ARMV5_UDEB.txt",
		componentpath+"/slave_lib_ARMV5_UREL.txt",
		componentpath+"/slave_lib_WINSCW_UDEB.txt",
		componentpath+"/slave_lib_WINSCW_UREL.txt",
		componentpath+"/slave_makmake_ARMV5_UDEB.txt",
		componentpath+"/slave_makmake_ARMV5_UREL.txt",
		componentpath+"/slave_makmake_WINSCW_UDEB.txt",
		componentpath+"/slave_makmake_WINSCW_UREL.txt",
		componentpath+"/slave_resource_ARMV5_UDEB.txt",
		componentpath+"/slave_resource_ARMV5_UREL.txt",
		componentpath+"/slave_resource_WINSCW_UDEB.txt",
		componentpath+"/slave_resource_WINSCW_UREL.txt"
		]
	t.stdout = [
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_udeb.whatlog'>",
		"<build>"+componentpath+"/master_bld_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_final_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_lib_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_makmake_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_resource_ARMV5_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_urel.whatlog'>",
		"<build>"+componentpath+"/master_bld_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_final_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_lib_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_makmake_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_resource_ARMV5_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_urel.whatlog'>",
		"<build>"+componentpath+"/master_bld_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_final_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_lib_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_makmake_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_resource_WINSCW_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_udeb.whatlog'>",
		"<build>"+componentpath+"/master_bld_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_final_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_lib_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_makmake_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_resource_WINSCW_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_udeb.whatlog'>",
		"<build>"+componentpath+"/slave_bld_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_final_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_lib_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_makmake_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_resource_ARMV5_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_urel.whatlog'>",
		"<build>"+componentpath+"/slave_bld_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_final_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_lib_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_makmake_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_resource_ARMV5_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_urel.whatlog'>",
		"<build>"+componentpath+"/slave_bld_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_final_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_lib_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_makmake_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_resource_WINSCW_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_udeb.whatlog'>",
		"<build>"+componentpath+"/slave_bld_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_final_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_lib_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_makmake_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_resource_WINSCW_UDEB.txt</build>"
	]
	t.run("windows") # we don't have make 3.79 on Linux
	return t
Пример #19
0
def run():
    t = CheckWhatSmokeTest()
    t.id = "67"
    t.name = "implib_whatlog"
    t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -f -" \
      " -m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog LIBRARY"
    componentpath = re.sub(
        r'\\', '/',
        os.path.abspath("smoke_suite/test_resources/simple_implib"))
    t.regexlinefilter = re.compile("^<(whatlog|build>)")
    t.hostossensitive = False
    t.usebash = True
    # 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",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"
    ]
    t.stdout = [
        "<whatlog bldinf='" + componentpath + "/bld.inf' mmp='" +
        componentpath + "/simple_implib.mmp' config='winscw_udeb.whatlog'>",
        "<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib</build>",
        "<whatlog bldinf='" + componentpath + "/bld.inf' mmp='" +
        componentpath + "/simple_implib.mmp' config='winscw_urel.whatlog'>",
        "<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib</build>",
        "<whatlog bldinf='" + componentpath + "/bld.inf' mmp='" +
        componentpath + "/simple_implib.mmp' config='armv5_udeb.whatlog'>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso</build>",
        "<whatlog bldinf='" + componentpath + "/bld.inf' mmp='" +
        componentpath + "/simple_implib.mmp' config='armv5_urel.whatlog'>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso</build>"
    ]
    t.run()

    t.print_result()
    return t
Пример #20
0
def run():
    t = CheckWhatSmokeTest()
    t.description = "Trace Compiler Whatlog Clean"
    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.regexlinefilter = re.compile(
        "^<(whatlog|export|build>|resource>|bitmap>)")
    t.stdout = []  # There should be no whatlog rules when cleaning
    t.run()
    t.print_result()

    t.description = "Trace Compiler Whatlog test"
    t.name = "tracecompiler_whatlog"
    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.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()
    t.print_result()

    t.name = "tracecompiler_whatlog_initnum_clean"
    t.targets = []
    t.stdout = []
    t.command = "sbs -b smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf -c armv5.tracecompiler CLEAN"
    t.run()
    t.print_result()

    t.name = "tracecompiler_whatlog_initnum"
    t.command = "sbs -b smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf -c armv5.tracecompiler -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE}"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings{000a0000}.dso",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/traces/5goldrings_dll/fixed_id.definitions",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/traces/5goldrings_dll/num_testTraces.h",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll.map",
        "$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll.map",
        "$(EPOCROOT)/epoc32/ost_dictionaries/_5goldrings_dll_0xe800004d_Dictionary.xml",
        "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/_5goldrings_dll_0xe800004d_TraceDefinitions.h"
    ]

    t.stdout = [
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/5goldrings.mmp' config='armv5_urel.tracecompiler'>",
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/5goldrings.mmp' config='armv5_udeb.tracecompiler'>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings.dso</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings{000a0000}.dso</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll.map</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll.map</build>",
        "<build>$(EPOCROOT)/epoc32/ost_dictionaries/_5goldrings_dll_0xe800004d_Dictionary.xml</build>",
        "<build>$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/_5goldrings_dll_0xe800004d_TraceDefinitions.h</build>"
    ]
    t.run()
    t.print_result()

    return t
Пример #21
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "66"
	t.name = "gui_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -f - -m" \
			+ " ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/simple_gui"))
	t.regexlinefilter = \
			re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
		"$(EPOCROOT)/epoc32/include/helloworld.rsg",
		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.rsc",
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map",
		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
		"helloworld_exe/helloworld.mbm_bmconvcommands",
		"helloworld_exe/helloworld_HelloWorld.rsc.rpp",
		"helloworld_exe/helloworld_HelloWorld.rsc.d",
		"helloworld_exe/armv5/udeb/HelloWorld_Application.o",
		"helloworld_exe/armv5/udeb/HelloWorld_Application.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o",
		"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_AppView.o",
		"helloworld_exe/armv5/udeb/HelloWorld_AppView.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_Document.o",
		"helloworld_exe/armv5/udeb/HelloWorld_Document.o.d",
		"helloworld_exe/armv5/udeb/HelloWorld_Main.o",
		"helloworld_exe/armv5/udeb/HelloWorld_Main.o.d",
		"helloworld_exe/armv5/udeb/helloworld_udeb_objects.via",
		"helloworld_exe/armv5/urel/HelloWorld_Application.o",
		"helloworld_exe/armv5/urel/HelloWorld_Application.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_AppUi.o",
		"helloworld_exe/armv5/urel/HelloWorld_AppUi.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_AppView.o",
		"helloworld_exe/armv5/urel/HelloWorld_AppView.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_Document.o",
		"helloworld_exe/armv5/urel/HelloWorld_Document.o.d",
		"helloworld_exe/armv5/urel/HelloWorld_Main.o",
		"helloworld_exe/armv5/urel/HelloWorld_Main.o.d",
		"helloworld_exe/armv5/urel/helloworld_urel_objects.via",
		"helloworld_exe/winscw/udeb/helloworld.UID.CPP",
		"helloworld_exe/winscw/udeb/HelloWorld_Application.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_Application.o",
		"helloworld_exe/winscw/udeb/HelloWorld_Application.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_AppUi.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o",
		"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_AppView.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_AppView.o",
		"helloworld_exe/winscw/udeb/HelloWorld_AppView.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_Document.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_Document.o",
		"helloworld_exe/winscw/udeb/HelloWorld_Document.o.d",
		"helloworld_exe/winscw/udeb/HelloWorld_Main.dep",
		"helloworld_exe/winscw/udeb/HelloWorld_Main.o",
		"helloworld_exe/winscw/udeb/HelloWorld_Main.o.d",
		"helloworld_exe/winscw/udeb/helloworld_UID_.dep",
		"helloworld_exe/winscw/udeb/helloworld_UID_.o",
		"helloworld_exe/winscw/udeb/helloworld_UID_.o.d",
		"helloworld_exe/winscw/urel/helloworld.UID.CPP",
		"helloworld_exe/winscw/urel/HelloWorld_Application.dep",
		"helloworld_exe/winscw/urel/HelloWorld_Application.o",
		"helloworld_exe/winscw/urel/HelloWorld_Application.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_AppUi.dep",
		"helloworld_exe/winscw/urel/HelloWorld_AppUi.o",
		"helloworld_exe/winscw/urel/HelloWorld_AppUi.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_AppView.dep",
		"helloworld_exe/winscw/urel/HelloWorld_AppView.o",
		"helloworld_exe/winscw/urel/HelloWorld_AppView.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_Document.dep",
		"helloworld_exe/winscw/urel/HelloWorld_Document.o",
		"helloworld_exe/winscw/urel/HelloWorld_Document.o.d",
		"helloworld_exe/winscw/urel/HelloWorld_Main.dep",
		"helloworld_exe/winscw/urel/HelloWorld_Main.o",
		"helloworld_exe/winscw/urel/HelloWorld_Main.o.d",
		"helloworld_exe/winscw/urel/helloworld_UID_.dep",
		"helloworld_exe/winscw/urel/helloworld_UID_.o",
		"helloworld_exe/winscw/urel/helloworld_UID_.o.d",
		"helloworld_reg_exe/helloworld_reg_HelloWorld_reg.rsc.d"
	])
	t.stdout = [
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='armv5_udeb.whatlog'>",
		"<bitmap>$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm</bitmap>",
		"<resource>$(EPOCROOT)/epoc32/include/helloworld.rsg</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc</resource>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map</build>",
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='winscw_urel.whatlog'>",
		"<bitmap>$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm</bitmap>",
		"<bitmap>$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm</bitmap>",
		"<bitmap>$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm</bitmap>",
		"<resource>$(EPOCROOT)/epoc32/include/helloworld.rsg</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc</resource>",
		"<resource>$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc</resource>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe</build>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map</build>",
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='armv5_urel.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe</build>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map</build>",
		"<whatlog bldinf='"+componentpath+"/Bld.inf' mmp='"+componentpath+"/HelloWorld.mmp' config='winscw_udeb.whatlog'>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe</build>",
	]
	t.run()
	return t
Пример #22
0
def run():
	
	t = CheckWhatSmokeTest()
	t.id = "68"
	t.description = "Test output from WHAT target"
	t.name = "extension_whattarget"
	t.command = "sbs -b smoke_suite/test_resources/simple_extension/bld.inf" + \
			" WHAT -f - -m ${SBSMAKEFILE}"
	t.regexlinefilter = \
			re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk",
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta",
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk",
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta",
		]
	t.stdout = [
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config=''>",
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/clean.mk'/>",
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/clean.meta'/>",
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/build.mk'/>",
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/build.meta'/>",
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='armv5_udeb'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/simple_extension.txt</build>",
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='armv5_urel'>",
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/simple_extension.txt</build>",
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='winscw_urel'>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/urel/simple_extension.txt</build>",
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='winscw_udeb'>",
		"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_extension.txt</build>"
	]
	t.run()
	return t
Пример #23
0
def run():
    t = CheckWhatSmokeTest()
    t.description = "Trace Compiler Whatlog Clean"
    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.regexlinefilter = re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
    t.stdout = []  # There should be no whatlog rules when cleaning
    t.run()
    t.print_result()

    t.description = "Trace Compiler Whatlog test"
    t.name = "tracecompiler_whatlog"
    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.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()
    t.print_result()

    t.name = "tracecompiler_whatlog_initnum_clean"
    t.targets = []
    t.stdout = []
    t.command = "sbs -b smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf -c armv5.tracecompiler CLEAN"
    t.run()
    t.print_result()

    t.name = "tracecompiler_whatlog_initnum"
    t.command = "sbs -b smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf -c armv5.tracecompiler -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE}"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings{000a0000}.dso",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/traces/5goldrings_dll/fixed_id.definitions",
        "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/traces/5goldrings_dll/num_testTraces.h",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll.map",
        "$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll.map",
        "$(EPOCROOT)/epoc32/ost_dictionaries/_5goldrings_dll_0xe800004d_Dictionary.xml",
        "$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/_5goldrings_dll_0xe800004d_TraceDefinitions.h",
    ]

    t.stdout = [
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/5goldrings.mmp' config='armv5_urel.tracecompiler'>",
        "<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/bld.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/TC_initnum/group/5goldrings.mmp' config='armv5_udeb.tracecompiler'>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings.dso</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/lib/5goldrings{000a0000}.dso</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/udeb/5goldrings.dll.map</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll</build>",
        "<build>$(EPOCROOT)/epoc32/release/armv5/urel/5goldrings.dll.map</build>",
        "<build>$(EPOCROOT)/epoc32/ost_dictionaries/_5goldrings_dll_0xe800004d_Dictionary.xml</build>",
        "<build>$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/_5goldrings_dll_0xe800004d_TraceDefinitions.h</build>",
    ]
    t.run()
    t.print_result()

    return t
Пример #24
0
def run():
	t = CheckWhatSmokeTest()
	t.id = "70"
	t.name = "gnumakefile_whatlog"
	t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf -f - " \
			"-m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog"
	componentpath = re.sub(r'\\','/',os.path.abspath("smoke_suite/test_resources/gnumakefile"))
	t.regexlinefilter = re.compile("^<(whatlog|build>)")
	t.hostossensitive = False
	t.usebash = True
	t.targets = [
		componentpath+"/master_bld_ARMV5_UDEB.txt",
		componentpath+"/master_bld_ARMV5_UREL.txt",
		componentpath+"/master_bld_WINSCW_UDEB.txt",
		componentpath+"/master_bld_WINSCW_UREL.txt",
		componentpath+"/master_final_ARMV5_UDEB.txt",
		componentpath+"/master_final_ARMV5_UREL.txt",
		componentpath+"/master_final_WINSCW_UDEB.txt",
		componentpath+"/master_final_WINSCW_UREL.txt",
		componentpath+"/master_lib_ARMV5_UDEB.txt",
		componentpath+"/master_lib_ARMV5_UREL.txt",
		componentpath+"/master_lib_WINSCW_UDEB.txt",
		componentpath+"/master_lib_WINSCW_UREL.txt",
		componentpath+"/master_makmake_ARMV5_UDEB.txt",
		componentpath+"/master_makmake_ARMV5_UREL.txt",
		componentpath+"/master_makmake_WINSCW_UDEB.txt",
		componentpath+"/master_makmake_WINSCW_UREL.txt",
		componentpath+"/master_resource_ARMV5_UDEB.txt",
		componentpath+"/master_resource_ARMV5_UREL.txt",
		componentpath+"/master_resource_WINSCW_UDEB.txt",
		componentpath+"/master_resource_WINSCW_UREL.txt",
		componentpath+"/slave_bld_ARMV5_UDEB.txt",
		componentpath+"/slave_bld_ARMV5_UREL.txt",
		componentpath+"/slave_bld_WINSCW_UDEB.txt",
		componentpath+"/slave_bld_WINSCW_UREL.txt",
		componentpath+"/slave_final_ARMV5_UDEB.txt",
		componentpath+"/slave_final_ARMV5_UREL.txt",
		componentpath+"/slave_final_WINSCW_UDEB.txt",
		componentpath+"/slave_final_WINSCW_UREL.txt",
		componentpath+"/slave_lib_ARMV5_UDEB.txt",
		componentpath+"/slave_lib_ARMV5_UREL.txt",
		componentpath+"/slave_lib_WINSCW_UDEB.txt",
		componentpath+"/slave_lib_WINSCW_UREL.txt",
		componentpath+"/slave_makmake_ARMV5_UDEB.txt",
		componentpath+"/slave_makmake_ARMV5_UREL.txt",
		componentpath+"/slave_makmake_WINSCW_UDEB.txt",
		componentpath+"/slave_makmake_WINSCW_UREL.txt",
		componentpath+"/slave_resource_ARMV5_UDEB.txt",
		componentpath+"/slave_resource_ARMV5_UREL.txt",
		componentpath+"/slave_resource_WINSCW_UDEB.txt",
		componentpath+"/slave_resource_WINSCW_UREL.txt"
		]
	t.stdout = [
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_udeb.whatlog'>",
		"<build>"+componentpath+"/master_bld_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_final_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_lib_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_makmake_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/master_resource_ARMV5_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_urel.whatlog'>",
		"<build>"+componentpath+"/master_bld_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_final_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_lib_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_makmake_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/master_resource_ARMV5_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_urel.whatlog'>",
		"<build>"+componentpath+"/master_bld_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_final_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_lib_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_makmake_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/master_resource_WINSCW_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_udeb.whatlog'>",
		"<build>"+componentpath+"/master_bld_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_final_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_lib_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_makmake_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/master_resource_WINSCW_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_udeb.whatlog'>",
		"<build>"+componentpath+"/slave_bld_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_final_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_lib_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_makmake_ARMV5_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_resource_ARMV5_UDEB.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='armv5_urel.whatlog'>",
		"<build>"+componentpath+"/slave_bld_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_final_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_lib_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_makmake_ARMV5_UREL.txt</build>",
		"<build>"+componentpath+"/slave_resource_ARMV5_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_urel.whatlog'>",
		"<build>"+componentpath+"/slave_bld_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_final_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_lib_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_makmake_WINSCW_UREL.txt</build>",
		"<build>"+componentpath+"/slave_resource_WINSCW_UREL.txt</build>",
		"<whatlog bldinf='"+componentpath+"/bld.inf' mmp='' config='winscw_udeb.whatlog'>",
		"<build>"+componentpath+"/slave_bld_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_final_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_lib_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_makmake_WINSCW_UDEB.txt</build>",
		"<build>"+componentpath+"/slave_resource_WINSCW_UDEB.txt</build>"
	]
	t.run("windows") # we don't have make 3.79 on Linux
	return t