本文整理汇总了Python中raptor_tests.SmokeTest类的典型用法代码示例。如果您正苦于以下问题:Python SmokeTest类的具体用法?Python SmokeTest怎么用?Python SmokeTest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SmokeTest类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: run
def run():
t = SmokeTest()
t.name = "preprocess"
t.usebash = True
t.description = "Exercise the global PREPROCESS target"
# Build component normally first for one config - resource generate .rsg files are #included in "straight" source
# The PREPROCESS target does not resolve resource dependencies, but the test component is selected on the basis
# that it will support the generation of resource .pre files in the future.
addConfigs = ""
addTargets = []
if t.onWindows:
addConfigs = "-c x86_udeb"
addTargets = [
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.x86.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.x86.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.x86.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.x86.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.x86.udeb.helloworld.exe.pre"
]
t.command = """
sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -c armv5_urel &&
sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -c armv5 -c winscw_urel -c armv7_udeb -c arm.v7.urel.gcce4_4_1 {0} preprocess
""".format(addConfigs)
t.targets = [
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv5.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv5.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv5.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv5.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv5.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv5.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv5.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv5.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv5.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv5.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.winscw.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.winscw.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.winscw.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.winscw.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.winscw.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv7.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv7.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv7.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv7.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv7.udeb.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv7.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv7.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv7.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv7.urel.helloworld.exe.pre",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv7.urel.helloworld.exe.pre"
] + addTargets
t.run()
# Explicit clean-up due to the source tree nature of the generated files
t.clean()
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:60,代码来源:preprocess.py
示例2: run
def run():
t = SmokeTest()
t.id = "78"
t.name = "dll_winscw_win32resource"
t.description = """Test the construction of a custom WINSCW DLL containing Windows resources specified by win32_resource."""
t.command = "sbs -b smoke_suite/test_resources/simple_dll/win32resource/bld.inf -c winscw"
t.targets = [
"$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.lib",
"$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll.map"
]
t.addbuildtargets('smoke_suite/test_resources/simple_dll/win32resource/bld.inf', [
"createstaticdll_dll/winscw/udeb/CreateStaticDLL.o",
"createstaticdll_dll/winscw/udeb/createstaticdll.UID.CPP",
"createstaticdll_dll/winscw/udeb/createstaticdll_UID_.o",
"createstaticdll_dll/winscw/udeb/gui.res",
"createstaticdll_dll/winscw/udeb/gui.res.d",
"createstaticdll_dll/winscw/urel/CreateStaticDLL.o",
"createstaticdll_dll/winscw/urel/createstaticdll.UID.CPP",
"createstaticdll_dll/winscw/urel/createstaticdll_UID_.o",
"createstaticdll_dll/winscw/urel/gui.res",
"createstaticdll_dll/winscw/urel/gui.res.d",
])
t.run()
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:26,代码来源:dll_winscw_win32resource.py
示例3: run
def run():
t = SmokeTest()
t.id = "0096"
t.name = "kdll_armv5"
t.usebash = 1
t.command = "sbs -b smoke_suite/test_resources/simple_kdll/bld.inf -c armv5_urel -f-"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll",
"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll.map",
"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll.sym"
]
t.mustmatch = [
r".*\bksrt\d_\d\.lib\b.*",
r".*\bekll\.lib\b.*"
]
t.mustnotmatch = [
r".*usrt.*",
r".*scppnwdl.*"
]
t.run()
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:26,代码来源:kdll_armv5.py
示例4: run
def run():
t = SmokeTest()
t.name = "dll_armv5_smp"
t.id = "63"
t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c " + \
"armv5 -c armv5.smp"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll"
]
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
"createstaticdll_dll/armv5/udeb/CreateStaticDLL.o",
"createstaticdll_dll/armv5/urel/CreateStaticDLL.o",
"createstaticdll_dll/armv5smp/udeb/CreateStaticDLL.o",
"createstaticdll_dll/armv5smp/urel/CreateStaticDLL.o"
])
t.run()
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:26,代码来源:dll_armv5_smp.py
示例5: run
def run():
t = SmokeTest()
t.name = "dll_x86"
t.description = "Build a basic DLL TARGETTYPE for x86"
t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c x86"
t.targets = [
"$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll.map",
"$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll",
"$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll.map",
"$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll.lib",
"$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll{000a0000}.lib"
]
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
"createstaticdll_dll/x86/udeb/CreateStaticDLL.o",
"createstaticdll_dll/x86/udeb/CreateStaticDLL.o.d",
"createstaticdll_dll/x86/urel/CreateStaticDLL.o",
"createstaticdll_dll/x86/urel/CreateStaticDLL.o.d",
"createstaticdll_dll/x86/udeb/createstaticdll_udeb_objects.via",
"createstaticdll_dll/x86/urel/createstaticdll_urel_objects.via",
["createstaticdll_dll/x86/udeb/createstaticdll.prep",
"createstaticdll_dll/x86/urel/createstaticdll.prep"],
["createstaticdll_dll/x86/udeb/createstaticdll.lib.exp",
"createstaticdll_dll/x86/urel/createstaticdll.lib.exp"]
])
t.run("windows")
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:28,代码来源:dll_x86.py
示例6: run
def run():
t = SmokeTest()
t.id = "22"
t.name = "defs_armv7"
t.command = "sbs -b smoke_suite/test_resources/defs/group/bld.inf -c armv7"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll.sym",
"$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll.sym",
"$(EPOCROOT)/epoc32/release/armv5/lib/deftest{000a0000}.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/deftest.dso",
"$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll",
"$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll.map",
"$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll",
"$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll.map",
]
t.addbuildtargets(
"smoke_suite/test_resources/defs/group/bld.inf",
[
"deftest_/armv7/udeb/deftest_udeb_objects.via",
"deftest_/armv7/udeb/test.o",
"deftest_/armv7/urel/deftest_urel_objects.via",
"deftest_/armv7/urel/test.o",
],
)
t.run()
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:26,代码来源:defs_armv7.py
示例7: run
def run():
t = SmokeTest()
t.id = "50"
t.name = "sysdef_dud"
t.description = "Test an invalid system_definition.xml file"
t.command = "sbs -s " + "smoke_suite/test_resources/sysdef/system_definition_dud.xml"
t.targets = []
t.errors = 1
t.returncode = 1
t.run()
return t
开发者ID:wannaphongcom,项目名称:raptor,代码行数:11,代码来源:sysdef_dud.py
示例8: run
def run():
t = SmokeTest()
t.name = "filter_html_unit"
tests = unittest.makeSuite(TestFilterHtml)
result = unittest.TextTestRunner(verbosity=2).run(tests)
if result.wasSuccessful():
t.result = SmokeTest.PASS
else:
t.result = SmokeTest.FAIL
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:13,代码来源:filter_html_unit.py
示例9: run
def run():
t = SmokeTest()
t.name = "raptor_api_unit"
tests = unittest.makeSuite(TestRaptorApi)
result = unittest.TextTestRunner(verbosity=2).run(tests)
if result.wasSuccessful():
t.result = SmokeTest.PASS
else:
t.result = SmokeTest.FAIL
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:13,代码来源:raptor_api_unit.py
示例10: run
def run():
t = SmokeTest()
t.id = "80"
t.name = "sbs_with_nonexisting_bldinf"
t.description = "Test if sbs generates warning if invoked without bld.inf specified i.e. using default bld.inf which doesn't exist"
t.command = "mkdir ${EPOCROOT}/emptydir; rm ${EPOCROOT}/emptydir/*; cd ${EPOCROOT}/emptydir; sbs -f ${SBSLOGFILE} -m {SBSMAKEFILE}"
t.usebash = True
t.warnings = 1
t.run()
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:10,代码来源:sbs_with_nonexisting_bldinf.py
示例11: run
def run():
t = SmokeTest()
t.id = "999"
t.name = "generic_path_unit"
tests = unittest.makeSuite(TestGenericPaths)
result = unittest.TextTestRunner(verbosity=2).run(tests)
if result.wasSuccessful():
t.result = SmokeTest.PASS
else:
t.result = SmokeTest.FAIL
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:14,代码来源:generic_path_unit.py
示例12: run
def run():
t = SmokeTest()
t.id = "999"
t.name = "mmpparser_unit"
tests = unittest.makeSuite(TestMMPParser)
result = unittest.TextTestRunner(verbosity=2).run(tests)
if result.wasSuccessful():
t.result = SmokeTest.PASS
else:
t.result = SmokeTest.FAIL
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:14,代码来源:mmpparser_unit.py
示例13: run
def run():
t = SmokeTest()
t.id = "46"
t.name = "wrong_projectname"
t.description = "Test -p with wrong project name"
t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf " \
+ "-p wrongname1.mmp -p wrongname2.mmp"
t.targets = []
t.warnings = 2 # One for armv5, one for winscw.
t.run()
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:11,代码来源:wrong_projectname.py
示例14: run
def run():
t = SmokeTest()
t.name = "cli_makevar_overide"
t.id = "0117"
t.description = "Attempt to override a makefile var at the command line."
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE} HOSTPLATFORM_DIR=unlikelydir"
t.mustmatch = ["sbs: warning: CLEAN, CLEANEXPORT and a REALLYCLEAN should not be combined with other targets as the result is unpredictable"]
t.warnings = 1
t.run()
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:15,代码来源:cli_makevar_override.py
示例15: run
def run():
t = SmokeTest()
t.id = "31"
t.name = "listing"
t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
"-c winscw -k listing"
t.targets = [
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.WINSCW.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.WINSCW.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.WINSCW.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.WINSCW.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.WINSCW.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.WINSCW.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.urel.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.udeb.test.exe.lst",
"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.WINSCW.lst"
]
t.run()
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:31,代码来源:listing.py
示例16: run
def run():
t = SmokeTest()
t.id = "88"
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 %s REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf
cmd2 = "sbs -b %s --filter=FilterCheckSource -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % 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
开发者ID:fedor4ever,项目名称:linux_build,代码行数:18,代码来源:exe_checksource.py
示例17: run
def run():
t = SmokeTest()
t.id = "36"
t.name = "implib_winscw"
t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
+ "winscw LIBRARY"
t.targets = [
"$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"
]
t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [
["simple_implib_lib/winscw/udeb/simple_implib.prep.def",
"simple_implib_lib/winscw/urel/simple_implib.prep.def"]
])
t.run()
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:15,代码来源:implib_winscw.py
示例18: run
def run():
t = SmokeTest()
t.id = "27"
t.name = "armv7_stringtable"
t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf" \
+ " -c armv7 EXPORT"
t.targets = [
"$(EPOCROOT)/epoc32/include/strconsts.h"
]
t.addbuildtargets('smoke_suite/test_resources/simple_stringtable/bld.inf', [
"stringtabletest_/strconsts.h",
"stringtabletest_/strconsts.cpp"
])
t.run()
return t
开发者ID:fedor4ever,项目名称:linux_build,代码行数:15,代码来源:armv7_stringtable.py
示例19: run
def run():
t = SmokeTest()
t.name = "implib_x86"
t.description = "Build a basic IMPLIB TARGETTYPE for x86"
t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c x86"
t.targets = [
"$(EPOCROOT)/epoc32/release/x86/lib/simple_implib.lib"
]
t.addbuildtargets("smoke_suite/test_resources/simple_implib/bld.inf", [
["simple_implib_lib/x86/udeb/simple_implib.prep",
"simple_implib_lib/x86/urel/simple_implib.prep"],
])
t.run("windows")
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:15,代码来源:implib_x86.py
示例20: run
def run():
t = SmokeTest()
t.id = "65"
t.name = "implib_armv5_with_armv5_smp"
t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
+ "armv5 -c armv5.smp LIBRARY"
# ABIv1 .lib files are not generated on Linux
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso"
]
t.run()
t.print_result()
return t
开发者ID:RomanSaveljev,项目名称:raptor,代码行数:15,代码来源:implib_armv5_with_armv5_smp.py
注:本文中的raptor_tests.SmokeTest类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论