本文整理汇总了Python中raptor_tests.SmokeTest.mustmatch_singleline方法的典型用法代码示例。如果您正苦于以下问题:Python SmokeTest.mustmatch_singleline方法的具体用法?Python SmokeTest.mustmatch_singleline怎么用?Python SmokeTest.mustmatch_singleline使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类raptor_tests.SmokeTest
的用法示例。
在下文中一共展示了SmokeTest.mustmatch_singleline方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
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__'],
'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__'],
'gcce4_5_1': ['GCCE', 'GCCE_4', 'GCCE_4_5', '__GCCE__', '__GCCE_4__' , '__GCCE_4_5__']
}
rootname = "toolchain_macros_armv5_{0}_{1}"
rootcommand = "sbs -b smoke_suite/test_resources/toolchain_macros/bld.inf -c arm.v5.urel."
macromatch = ": #warning( directive:)? {0}( \[-Wcpp\])?(</warning>)?$"
for toolchain in sorted(toolchains.keys()):
t.name = rootname.format(toolchain, "clean")
t.command = rootcommand + toolchain + " clean"
t.mustmatch_singleline = []
t.run()
t.name = rootname.format(toolchain, "build")
t.command = rootcommand + toolchain
mustmatch = []
for macro in toolchains[toolchain]:
mustmatch.append(macromatch.format(macro))
t.mustmatch_singleline = mustmatch
t.run()
t.name = "toolchain_macros"
t.print_result()
return t
示例2: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c arm.v5.udeb.rvct4_0.linkerfeedback -c arm.v5.urel.rvct4_0.linkerfeedback -f-"
gen_fdb_match = [
".*armlink.*-o.*epoc32/release/armv5/udeb/createstaticdll.dll.sym.*--feedback=.*createstaticdll_dll/armv5/udeb/createstaticdll_udeb_feedback.fdb.*",
".*armlink.*-o.*epoc32/release/armv5/urel/createstaticdll.dll.sym.*--feedback=.*createstaticdll_dll/armv5/urel/createstaticdll_urel_feedback.fdb.*"
]
use_fdb_match = [
".*armcc.*--feedback=.*createstaticdll_dll/armv5/udeb/createstaticdll_udeb_feedback.fdb.*test/smoke_suite/test_resources/simple_dll/CreateStaticDLL.cpp.*",
".*armcc.*--feedback=.*createstaticdll_dll/armv5/urel/createstaticdll_urel_feedback.fdb.*test/smoke_suite/test_resources/simple_dll/CreateStaticDLL.cpp.*"
]
t.name = "linkerfeedback_initial_build"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll"
]
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
"createstaticdll_dll/armv5/udeb/createstaticdll_udeb_feedback.fdb",
"createstaticdll_dll/armv5/urel/createstaticdll_urel_feedback.fdb",
"createstaticdll_dll/armv5/udeb/CreateStaticDLL.o",
"createstaticdll_dll/armv5/urel/CreateStaticDLL.o"
])
t.mustmatch_singleline = gen_fdb_match
t.mustnotmatch_singleline = use_fdb_match
t.run()
# Note: we neutralise the targets in the following in order to ensure
# that they aren't cleaned from the initial build
# Instead we confirm that the "right thing" happens in these next builds
# in terms of tools calls based on the linker feedback files being present
# and:
# (a) newer than the object files (triggering re-compile and re-link)
# (b) older than the object files (nothing to be done)
t.name = "linkerfeedback_first_rebuild"
t.targets = []
t.mustmatch_singleline = gen_fdb_match + use_fdb_match
t.mustnotmatch_singleline = []
t.run()
t.name = "linkerfeedback_second_rebuild"
t.targets = []
t.mustmatch_singleline = []
t.mustnotmatch_singleline = gen_fdb_match + use_fdb_match
t.run()
t.name = "linkerfeedback"
t.print_result()
return t
示例3: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
command = "sbs -k -b smoke_suite/test_resources/simple/longcompiles.inf -c armv7_urel{variant} -c winscw_udeb{variant} -c arm.v5.urel.gcce4_4_1{variant}"
talon_warning = ".*Command line length '\d+' exceeds the shell limit on this system of '\d+'. If this recipe is a compile, try using the '.use_compilation_command_file' variant to reduce overall command line length."
targets = [
"$(EPOCROOT)/epoc32/release/armv7/urel/longcompiles.exe",
"$(EPOCROOT)/epoc32/release/winscw/udeb/longcompiles.exe",
"$(EPOCROOT)/epoc32/release/armv5/urel/longcompiles.exe",
]
t.name = "longcompile_no_command_file"
t.description = """
Confirm OS-specific behaviour on massive compilation command lines.
On Linux, all should be well, but on Windows the compile will fail
together with a talon warning with some potentially useful advice.
"""
t.command = command.format(variant="")
if t.onWindows:
t.targets = []
t.mustmatch_singleline = [talon_warning]
t.warnings = 24
t.errors = 1
t.returncode = 1
else:
t.targets = targets
t.mustnotmatch_singleline = [talon_warning]
t.run()
t.name = "longcompile_command_file"
t.description = """
Confirm that a command file is used with the .use_compilation_command_file
variant, and that the build succeeds on all host OS platforms.
"""
t.command = command.format(variant=".use_compilation_command_file")
t.targets = targets
t.addbuildtargets(
"smoke_suite/test_resources/simple/longcompiles.inf",
[
"longcompiles_exe/armv7/urel/cc.cmdfile",
"longcompiles_exe/winscw/udeb/cc.cmdfile",
"longcompiles_exe/armv5/urel/cc.cmdfile",
],
)
t.mustmatch_singleline = []
t.mustnotmatch_singleline = []
t.warnings = 0
t.errors = 0
t.returncode = 0
t.run()
t.name = "longcompiles"
t.print_result()
return t
示例4: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.name = "slim_debug"
t.description = """Exercise the slim_debug variant, checking that command line arguments
are applied selectively."""
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5.slimdebug -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll"
]
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf',
[
"createstaticdll_dll/armv5/udeb/CreateStaticDLL.o",
"createstaticdll_dll/armv5/urel/CreateStaticDLL.o"
])
t.mustnotmatch_singleline = ["\+.*armcc.*--no_debug_macros --remove_unneeded_entities.*--DNDEBUG"]
t.mustmatch_singleline = ["\+.*armcc.*--no_debug_macros --remove_unneeded_entities.*-D_DEBUG"]
t.run()
return t
示例5: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
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
示例6: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.name = "missing_keywords"
t.command = "sbs -b smoke_suite/test_resources/invalid_metadata/bld.inf -c armv5"
t.mustmatch_singleline = [
"sbs: error: required keyword TARGET is missing"
]
t.errors = 1
t.returncode = 1
t.run()
return t
示例7: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
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
示例8: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.name = "exe_checksource"
t.description = "Build a exe with a checksource filter"
t.usebash = True
bldinf = "smoke_suite/test_resources/checksource/helloworld/bld.inf"
cmd1 = "sbs -b {0} REALLYCLEAN -m ${{SBSMAKEFILE}} -f ${{SBSLOGFILE}}".format(bldinf)
cmd2 = "sbs -b {0} --filter=FilterCheckSource -m ${{SBSMAKEFILE}} -f ${{SBSLOGFILE}}".format(bldinf)
cmd3 = "grep -i '.*checksource errors found.*' ${SBSLOGFILE}"
t.command = cmd1 + " && " + cmd2 + " && " + cmd3
t.mustmatch_singleline = ["[1-9] checksource errors found"]
t.returncode = 1
t.run("windows")
return t
示例9: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.id = "300"
t.name = "variantplatforms"
t.description = "Can all the variant platforms be built at the same time."
variantplatforms = ["armv5", "armv6", "armv7", "arm9e"]
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/variantplatforms/bld.inf -f-"
t.mustmatch_singleline = []
for vp in variantplatforms:
t.command += " -c " + vp
t.mustmatch_singleline.append("building variant platform " + vp)
t.run()
t.print_result()
return t
示例10: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
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
示例11: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
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 <- a dependency",
"non_existent_&_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
示例12: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
#.........这里部分代码省略.........
"unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.inf",
"unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.dll",
"unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.def",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3.UID.CPP",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols.o",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3_UID_.o",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols.dep",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3_UID_.dep",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols.o.d",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3_UID_.o.d",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3.lib",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3.inf",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3.dll",
"unfrozensymbols3_dll/winscw/urel/unfrozensymbols3.def",
"test_unfrozen_/winscw/urel/test_unfrozen.UID.CPP",
"test_unfrozen_/winscw/urel/test.o",
"test_unfrozen_/winscw/urel/test_unfrozen_UID_.o",
"test_unfrozen_/winscw/urel/test.dep",
"test_unfrozen_/winscw/urel/test_unfrozen_UID_.dep",
"test_unfrozen_/winscw/urel/test.o.d",
"test_unfrozen_/winscw/urel/test_unfrozen_UID_.o.d",
"unfrozensymbols_dll/armv5/udeb/unfrozensymbols{000a0000}.def",
"unfrozensymbols_dll/armv5/udeb/unfrozensymbols{000a0000}.dso",
"unfrozensymbols_dll/armv5/udeb/unfrozensymbols_udeb_objects.via",
"unfrozensymbols_dll/armv5/udeb/unfrozensymbols.o.d",
"unfrozensymbols_dll/armv5/udeb/unfrozensymbols.o",
"unfrozensymbols_dll/armv5/udeb/unfrozensymbols.o",
"unfrozensymbols2_dll/armv5/udeb/unfrozensymbols2{000a0000}.def",
"unfrozensymbols2_dll/armv5/udeb/unfrozensymbols2{000a0000}.dso",
"unfrozensymbols2_dll/armv5/udeb/unfrozensymbols2_udeb_objects.via",
"unfrozensymbols2_dll/armv5/udeb/unfrozensymbols.o.d",
"unfrozensymbols2_dll/armv5/udeb/unfrozensymbols.o",
"unfrozensymbols2_dll/armv5/udeb/unfrozensymbols.o",
"unfrozensymbols3_dll/armv5/udeb/unfrozensymbols3{000a0000}.def",
"unfrozensymbols3_dll/armv5/udeb/unfrozensymbols3{000a0000}.dso",
"unfrozensymbols3_dll/armv5/udeb/unfrozensymbols3_udeb_objects.via",
"unfrozensymbols3_dll/armv5/udeb/unfrozensymbols.o.d",
"unfrozensymbols3_dll/armv5/udeb/unfrozensymbols.o",
"unfrozensymbols3_dll/armv5/udeb/unfrozensymbols.o",
"test_unfrozen_/armv5/udeb/test_unfrozen_udeb_objects.via",
"test_unfrozen_/armv5/udeb/test.o.d",
"test_unfrozen_/armv5/udeb/test.o",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.UID.CPP",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.o",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols_UID_.o",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.dep",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols_UID_.dep",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.o.d",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols_UID_.o.d",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.lib",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.inf",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.dll",
"unfrozensymbols_dll/winscw/udeb/unfrozensymbols.def",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.UID.CPP",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols.o",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2_UID_.o",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols.dep",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2_UID_.dep",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols.o.d",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2_UID_.o.d",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.lib",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.inf",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.dll",
"unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.def",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3.UID.CPP",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols.o",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3_UID_.o",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols.dep",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3_UID_.dep",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols.o.d",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3_UID_.o.d",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3.lib",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3.inf",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3.dll",
"unfrozensymbols3_dll/winscw/udeb/unfrozensymbols3.def",
"test_unfrozen_/winscw/udeb/test_unfrozen.UID.CPP",
"test_unfrozen_/winscw/udeb/test.o",
"test_unfrozen_/winscw/udeb/test_unfrozen_UID_.o",
"test_unfrozen_/winscw/udeb/test.dep",
"test_unfrozen_/winscw/udeb/test_unfrozen_UID_.dep",
"test_unfrozen_/winscw/udeb/test.o.d",
"test_unfrozen_/winscw/udeb/test_unfrozen_UID_.o.d"
])
# Match both ARMV5 (elf2e32) and WINSCW (makedef) unfrozen export warnings and confirm the number found. Format:
# Elf2e32: Warning: New Symbol _ZN10CMessenger5NewLCER12CConsoleBaseRK7TDesC16 found, export(s) not yet Frozen
# F:/path/epocroot/epoc32/build/unfrozen/c_939fe933110ed5aa/unfrozensymbols_dll/winscw/udeb/unfrozensymbols.def(3) : [email protected]@@[email protected]@@[email protected]@@Z @1
# More matches are expected with elf2e32 due to extra build impedimenta in EABI builds.
t.countmatch = [
[".*Elf2e32: Warning: New Symbol .* found, export\(s\) not yet Frozen.*", 26],
[".*\.def\(\d\) : .*@\d.*", 18]
]
t.mustmatch_singleline = [
"Import library generation suppressed as frozen .def file not present: .*smoke_suite/test_resources/bwins/unfrozensymbols3u.def",
"Import library generation suppressed as frozen .def file not present: .*smoke_suite/test_resources/eabi/unfrozensymbols3u.def"
]
t.warnings = 8
# ABIv1 .lib files are not generated on Linux
t.run()
return t
示例13: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.description = "This testcase tests all mmp keywords including new implementation of 'paged/unpaged code/data'"
t.usebash = True
t.name = "mmp_paging_keywords"
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp1/group/bld.inf -c armv5 -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/shutdownsrv.dll",
"$(EPOCROOT)/epoc32/release/armv5/udeb/shutdownsrv.dll.map",
"$(EPOCROOT)/epoc32/release/armv5/urel/shutdownsrv.dll",
"$(EPOCROOT)/epoc32/release/armv5/urel/shutdownsrv.dll.map",
"$(EPOCROOT)/epoc32/release/armv5/lib/exportlibrary_shutdownsrv.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/exportlibrary_shutdownsrv{000a0000}.dso",
]
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp1/group/bld.inf", [
"shutdownsrv_dll/armv5/udeb/shutdownsrv.o",
"shutdownsrv_dll/armv5/urel/shutdownsrv.o",
"shutdownsrv_dll/armv5/udeb/shutdownsrvpatchdata.o",
"shutdownsrv_dll/armv5/urel/shutdownsrvpatchdata.o",
"shutdownsrv_dll/armv5/udeb/shutdowntimer.o",
"shutdownsrv_dll/armv5/urel/shutdowntimer.o"
])
t.mustmatch = [
".*elf2e32.*(--defaultpaged|--codepaging=default.*--datapaging=default).*",
".*armlink.*--verbose.*"
]
t.run()
t.name = "mmp_option_armcc_and_armasm"
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp2/group/bld.inf -c armv5 -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/imageprocessorperf.lib",
"$(EPOCROOT)/epoc32/release/armv5/urel/imageprocessorperf.lib"
]
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp2/group/bld.inf", [
"imageprocessorperf_lib/armv5/udeb/ColorConverter.o",
"imageprocessorperf_lib/armv5/urel/ColorConverter.o",
"imageprocessorperf_lib/armv5/udeb/ImageProcessor.o",
"imageprocessorperf_lib/armv5/urel/ImageProcessor.o"
])
t.mustmatch = [
".*armcc.*-O0.*-g.*--cpu 6.*-Otime.*",
".*armcc.*-O3.*--cpu 6.*-Otime.*",
".*OPTION ARMASM has no effect.*",
".*OPTION_REPLACE ARMASM has no effect.*"
]
t.mustnotmatch = [
".*armcc.*--export_all_vtbl.*"
]
t.warnings = 2
t.run()
t.name = "mmp_option_gcce_linkeroption_gcce"
t.command = "sbs -b smoke_suite/test_resources/mmp/options/bld.inf -c arm.v5.urel.gcce4_4_1.release_gcce -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/gcce/urel/test.exe",
]
t.mustmatch = []
t.mustmatch_singleline = [
".*g\+\+.*-c.*-O3.*-fvisibility-inlines-hidden.*",
".*g\+\+.* -Wl,--verbose -Wl,-pie .*"
]
t.mustnotmatch = [
".*g\+\+.*-c.* -Wl,--verbose -Wl,-pie .*"
]
t.warnings = 0
t.run()
# LINKEROPTION CW can impact DLL (and variants), EXE and LIB TARGETTYPEs in different ways
# We ensure we have enough build coverage to cover all linker calls constructed in the win32 FLM
t.name = "mmp_option_cw_linkeroption_cw"
t.command = "sbs -b smoke_suite/test_resources/mmp/options/bld.inf -c winscw_urel -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
]
t.mustmatch = []
t.mustmatch_singleline = []
t.countmatch = [
[".*mwccsym2.*-relax_pointers.*-O2", 5],
[".*mwldsym2.*-zerobss.*-export none", 2],
[".*mwldsym2.*-zerobss.*-fold all", 2]
]
t.warnings = 0
t.run()
t.countmatch = []
t.name = "mmp_debuglibrary"
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp3/bld.inf -c armv5 -c winscw -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/tbm.exe",
"$(EPOCROOT)/epoc32/release/armv5/udeb/tbm.exe.map",
"$(EPOCROOT)/epoc32/release/armv5/urel/tbm.exe",
"$(EPOCROOT)/epoc32/release/armv5/urel/tbm.exe.map",
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oom.exe",
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oom.exe.map",
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oom.exe",
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oom.exe.map",
"$(EPOCROOT)/epoc32/release/armv5/udeb/dfpaeabi_vfpv2.dll",
#.........这里部分代码省略.........
示例14: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.usebash = True
cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel "
cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} "
t.name = "paging_default"
t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=default",
"--datapaging=default"
]
t.run()
t.name = "paging_unpaged"
t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=unpaged",
"--datapaging=unpaged"
]
t.run()
# these tests have no "compression" keywords so we are testing that the right
# defaults are used.
#
# PAGEDCODE implies BYTEPAIRCOMPRESSTARGET
# UNPAGEDCODE implies INFLATECOMPRESSTARGET
t.name = "paging_paged"
t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=paged",
"--datapaging=default",
"--compressionmethod=bytepair"
]
t.mustnotmatch = [
"--compressionmethod=inflate",
"--uncompressed"
]
t.run()
t.name = "paging_unpagedcode_pageddata"
t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=unpaged",
"--datapaging=paged",
"--compressionmethod=inflate"
]
t.mustnotmatch = [
"--compressionmethod=bytepair",
"--uncompressed"
]
t.run()
t.name = "paging_pagedcode_unpageddata"
t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=paged",
"--datapaging=unpaged",
"--compressionmethod=bytepair"
]
t.mustnotmatch = [
"--compressionmethod=inflate",
"--uncompressed"
]
t.run()
t.name = "paging_pagedcode_defaultdata"
t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=paged",
"--datapaging=default",
"--compressionmethod=bytepair"
]
t.mustnotmatch = [
"--compressionmethod=inflate",
"--uncompressed"
]
t.run()
t.name = "paging_paged_unpaged_no_bytepair"
t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
t.mustmatch_singleline = [
"--codepaging=unpaged",
"--datapaging=unpaged",
"--compressionmethod=inflate"
]
t.mustnotmatch = [
"--compressionmethod=bytepair",
"--uncompressed"
]
t.warnings = 2 # 1 in the log and 1 on screen
t.run()
# now we test that the "compression" keywords interact correctly with
# the "code paging" keywords.
#
# PAGEDCODE can only support BYTEPAIRCOMPRESSTARGET or NOCOMPRESSTARGET
#.........这里部分代码省略.........
示例15: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import mustmatch_singleline [as 别名]
def run():
t = SmokeTest()
t.id = "51a"
t.name = "tools2_exe_lib"
t.command = "sbs -b smoke_suite/test_resources/tools2/bld.inf -c tools2"
t.targets = [
"$(EPOCROOT)/epoc32/release/tools2/deb/libtool_lib1.a",
"$(EPOCROOT)/epoc32/release/tools2/deb/libtool_lib2.a",
"$(EPOCROOT)/epoc32/release/tools2/deb/tool_exe.exe",
"$(EPOCROOT)/epoc32/release/tools2/rel/libtool_lib1.a",
"$(EPOCROOT)/epoc32/release/tools2/rel/libtool_lib2.a",
"$(EPOCROOT)/epoc32/release/tools2/rel/tool_exe.exe",
"$(EPOCROOT)/epoc32/tools/tool_exe.exe",
]
t.addbuildtargets(
"smoke_suite/test_resources/tools2/bld.inf",
[
"libtool_lib1_a/libtool_lib1_lib/tools2/rel/tool_lib1_b.o",
"libtool_lib1_a/libtool_lib1_lib/tools2/rel/tool_lib1_a.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/rel/tool_lib2_b.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/rel/tool_lib2_a.o",
"libtool_lib1_a/libtool_lib1_lib/tools2/deb/tool_lib1_b.o",
"libtool_lib1_a/libtool_lib1_lib/tools2/deb/tool_lib1_a.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/deb/tool_lib2_a.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/deb/tool_lib2_b.o",
"tool_exe_exe/tool_exe_exe/tools2/rel/tool_exe_a.o",
"tool_exe_exe/tool_exe_exe/tools2/rel/tool_exe_b.o",
"tool_exe_exe/tool_exe_exe/tools2/deb/tool_exe_b.o",
"tool_exe_exe/tool_exe_exe/tools2/deb/tool_exe_a.o",
],
)
t.run("windows") # tools2 output is platform dependent
if t.result == SmokeTest.SKIP:
t.targets = [
"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/deb/tool_exe",
"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/deb/libtool_lib1.a",
"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/deb/libtool_lib2.a",
"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/tool_exe",
"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/libtool_lib1.a",
"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/libtool_lib2.a",
"$(EPOCROOT)/epoc32/tools/tool_exe",
]
t.addbuildtargets(
"smoke_suite/test_resources/tools2/bld.inf",
[
"libtool_lib1_a/libtool_lib1_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib1_b.o",
"libtool_lib1_a/libtool_lib1_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib1_a.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib2_b.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib2_a.o",
"libtool_lib1_a/libtool_lib1_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib1_b.o",
"libtool_lib1_a/libtool_lib1_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib1_a.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib2_a.o",
"libtool_lib2_a/libtool_lib2_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib2_b.o",
"tool_exe_exe/tool_exe_exe/tools2/rel/$(HOSTPLATFORM_DIR)/tool_exe_a.o",
"tool_exe_exe/tool_exe_exe/tools2/rel/$(HOSTPLATFORM_DIR)/tool_exe_b.o",
"tool_exe_exe/tool_exe_exe/tools2/deb/$(HOSTPLATFORM_DIR)/tool_exe_b.o",
"tool_exe_exe/tool_exe_exe/tools2/deb/$(HOSTPLATFORM_DIR)/tool_exe_a.o",
],
)
t.run("linux") # tools2 output is platform dependent
t.id = "51b"
t.name = "tools2_nohrh"
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/tools2/bootstrap.inf -c tools2.nohrh -f -"
t.targets = ["$(EPOCROOT)/epoc32/include/bootstrap_header_abc.h"]
t.mustmatch_singleline = ["empty\.hrh"]
t.mustnotmatch_singleline = ["Symbian_OS.hrh", "symbian_os.hrh", "feature_settings.hrh"]
t.run()
t.id = "51"
t.name = "tools2"
t.print_result()
return t