本文整理汇总了Python中raptor_tests.SmokeTest.usebash方法的典型用法代码示例。如果您正苦于以下问题:Python SmokeTest.usebash方法的具体用法?Python SmokeTest.usebash怎么用?Python SmokeTest.usebash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类raptor_tests.SmokeTest
的用法示例。
在下文中一共展示了SmokeTest.usebash方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.name = "annofile2log_copy_from_log"
t.description = "test workaround for log corruption from a make engine whose name begins with 'e'"
command = 'cd smoke_suite/test_resources/annofile2log && ( FROMANNO="`mktemp`" ; bzip2 -dc {test_file_basename}.anno.bz2 ' \
' | python testanno2log.py >"${{FROMANNO}}" && FROMSTDOUT="`mktemp`"; bzip2 -dc {test_file_basename}.stdout.bz2 > ' \
'"${{FROMSTDOUT}}" && diff -wB "${{FROMANNO}}" "${{FROMSTDOUT}}"; RET=$? ; rm "${{FROMANNO}}" "${{FROMSTDOUT}}"; exit $RET )'
t.usebash = True
t.errors = 0
t.returncode = 0
t.exceptions = 0
t.command = command.format(test_file_basename = "scrubbed_ncp_dfs_resource")
t.run()
t.name = "annofile2log_new_format_annofile"
t.description = "test new format of annofile"
t.usebash = True
t.errors = 0
t.returncode = 0
t.exceptions = 0
t.command = command.format(test_file_basename = "scrubbed_ncp_dfs_resource_new")
t.run()
t.print_result()
return t
示例2: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.description = "Trace Compiler Whatlog Clean"
t.id = "112a"
t.name = "tracecompiler_whatlog_clean"
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf -c armv5.tracecompiler CLEAN"
t.run()
t = CheckWhatSmokeTest()
t.description = "Trace Compiler Whatlog test"
t.id = "112b"
t.name = "tracecompiler_whatlog"
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf -c armv5.tracecompiler -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE}"
t.hostossensitive = False
t.regexlinefilter = re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso",
"$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso",
"$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll",
"$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map",
"$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll",
"$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map",
"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitTraces.h",
"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitmainTraces.h",
"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitpermparserTraces.h",
"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/fixed_id.definitions",
"$(EPOCROOT)/epoc32/ost_dictionaries/test_TC_0x1000008d_Dictionary.xml",
"$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/test_TC_0x1000008d_TraceDefinitions.h"
]
t.stdout = [
"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/test.TC.mmp' config='armv5_urel.tracecompiler'>",
"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/bld2.inf' mmp='$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/group/test.TC.mmp' config='armv5_udeb.tracecompiler'>",
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso</build>",
"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso</build>",
"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll</build>",
"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map</build>",
"<build>$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll</build>",
"<build>$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map</build>",
"<build>$(EPOCROOT)/epoc32/ost_dictionaries/test_TC_0x1000008d_Dictionary.xml</build>",
"<build>$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/test_TC_0x1000008d_TraceDefinitions.h</build>"
]
t.run("linux")
if t.result == CheckWhatSmokeTest.SKIP:
t.run("windows")
t.id = "112"
return t
示例3: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.usebash = True
t.description = "Test that dependency crunching for resource dependency files produces expected output"
t.id = "43562999"
t.name = "depcrunch"
t.command = "python $SBS_HOME/bin/depcrunch.py --extensions mbg,rsg --assume EPOCROOT < smoke_suite/test_resources/depcrunch/dep2.rpp.d"
t.mustmatch_multiline = [
r"EPOCROOT/epoc32/build/resource/c_98665870f0168225/dependentresource_/dependentresource_dependentresource_sc.rpp: \\\n"+
r" EPOCROOT/testresource1.mbg \\\n"+
r" EPOCROOT/testresource2.rsg \\\n"+
r" EPOCROOT/testresource3.rsg \\\n"+
r" EPOCROOT/testresource4.mbg \\\n"+
r" EPOCROOT/testresource5.rsg \\\n"+
r" EPOCROOT/testresource6.mbg \\\n"+
r" EPOCROOT/testresource7.rsg \\\n"+
r" EPOCROOT/testresource8.mbg \\\n"+
r" EPOCROOT/testresource9.rsg \n"
]
t.run()
t.print_result()
return t
示例4: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [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 usebash [as 别名]
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
示例6: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
# Should have returncode of 1 and output 1 error, but not cause a traceback
t.returncode = 1
t.errors = 1
t.mustmatch = ["sbs: error: Non-ASCII character in argument or command file"]
result = SmokeTest.PASS
t.name = "non_ascii_argument"
t.usebash = True
# The dash in "-c" is an en dash, not a normal ASCII dash.
t.command = r'set -x;sbs -b smoke_suite/test_resources/simple_dll/bld.inf `echo -e "\x96"`c armv5'
t.run()
if t.result == SmokeTest.FAIL:
result = SmokeTest.FAIL
t.name = "non_ascii_commandfile"
t.command = "sbs --command=smoke_suite/test_resources/non_ascii/cmd.txt"
t.run()
if t.result == SmokeTest.FAIL:
result = SmokeTest.FAIL
t.name = "non_ascii"
t.result = result
t.print_result()
return t
示例7: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.id = "2"
t.name = "exe_armv5_filtered"
t.description = "Run exe_armv5 with a customised filter. Will create then" \
+ " remove filter file"
t.usebash = True
t.command = "cp -f smoke_suite/test_resources/filter_test/testfilter.py ../python/plugins/testfilter.py " \
"&& chmod 600 ../python/plugins/testfilter.py " \
"&& sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 --filters=TestFilter " \
"&& rm -f ../python/plugins/testfilter.py*"
t.targets = [
"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map"
]
t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [
"test_/armv5/udeb/test.o",
"test_/armv5/urel/test.o"
])
t.mustmatch = [
".*Test Passed!.*"
]
t.run()
return t
示例8: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.id = "71"
t.name = "metadep"
t.description = """Tests metadata dependency generation. Changes
to bld.infs and mmps can be detected."""
t.usebash = True
t.command = """export SBSLOGFILE SBSMAKEFILE; bash smoke_suite/test_resources/metadep.sh 2>&1"""
t.targets = [
]
t.mustmatch_multiline = [
""".*Step 1 .*no warnings or errors.*
sbs: build log in.*
\+ sleep 1.*
.*make -rf .*epoc32/build/metadata_all.mk.*
.*make.*epoc32/build/metadata_all.mk. is up to date.*
Step 2 .*
.*RE-RUNNING SBS with previous parameters.*
Step 3 .*
.*RE-RUNNING SBS with previous parameters.*
.*RE-RUNNING SBS with previous parameters.*"""
]
t.mustnotmatch_multiline = [
"""RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*
RE-RUNNING SBS with previous parameters.*"""
]
t.run()
return t
示例9: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
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
示例10: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.usebash = True
t.description = "Test that a timing log is created and contains total parse and build durations"
t.id = "0103b"
t.name = "timing_on"
t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf" + \
" --filters=FilterLogfile,FilterTiming -f ${SBSLOGFILE} && " + \
"grep progress:duration ${SBSLOGFILE}.timings"
t.mustmatch = [
"^<progress:duration object_type='layer' task='parse' key='.*' duration='\d+.\d+' />$",
"^<progress:duration object_type='layer' task='build' key='.*' duration='\d+.\d+' />$",
"^<progress:duration object_type='all' task='all' key='all' duration='\d+.\d+' />$"
]
t.mustnotmatch = []
t.run()
t.id = "103"
t.name = "timing"
t.print_result()
return t
示例11: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.name = "resource_once"
t.description = "Ensure we only generate the resource header once even when there are many languages. Make sure that the right language (96) is used for the headerfile."
t.command = "sbs -b smoke_suite/test_resources/resource/group/simple.inf -c winscw_udeb -m ${SBSMAKEFILE} -f ${SBSLOGFILE}; XX=$?; cat ${SBSLOGFILE}; exit $XX"
t.usebash = True
t.targets = [
"$(EPOCROOT)/epoc32/include/testresource.hrh",
"$(EPOCROOT)/epoc32/include/testresource_badef.rh",
"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc",
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.rsc",
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.rsc",
"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r37",
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r37",
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r37",
"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r94",
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r94",
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r94",
"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r96",
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r96",
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r96",
"$(EPOCROOT)/epoc32/include/testresource.rsg",
"$(EPOCROOT)/epoc32/release/winscw/udeb/testresource.exe"
]
t.countmatch = [["rcomp.*-h.*rsg.*r96",1], # must see r96 once
["rcomp.*-h.*rsg",1]] # must not see any other language
t.run()
t.print_result()
return t
示例12: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.id = "33"
t.name = "exe_winscw"
t.usebash = True
t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c winscw -m ${SBSMAKEFILE} -f ${SBSLOGFILE}; grep -E \"mwldsym2\" ${SBSLOGFILE}"
t.targets = [
"$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
]
t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [
"test_/winscw/udeb/test.o",
"test_/winscw/udeb/test_.o",
"test_/winscw/udeb/test_UID_.o",
"test_/winscw/udeb/test.UID.CPP",
"test_/winscw/urel/test.o",
"test_/winscw/urel/test_.o",
"test_/winscw/urel/test_UID_.o",
"test_/winscw/urel/test.UID.CPP"
])
# Check that the default operator new library is used
t.mustmatch = [
'.*mwldsym2.*scppnwdl.lib.*test.exe.*'
]
t.run()
return t
示例13: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
def run():
t = SmokeTest()
t.usebash = True
if "SBS_ELF2E32" in os.environ:
elf2e32 = os.environ["SBS_ELF2E32"]
elif sys.platform.startswith("win"):
elf2e32 = "$(EPOCROOT)/epoc32/tools/elf2e32.exe"
else:
elf2e32 = "$(EPOCROOT)/epoc32/tools/elf2e32"
description = """This test attempts to check that an exe gets the capabilities that we requested. It's ARM specific since it uses elf2e32. Tries to demonstrate capabilties being turned off then on in the mmp."""
command = "sbs -b smoke_suite/test_resources/simple/capability.inf -c %s -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && " + \
elf2e32 + " --dump=s --e32input=$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe"
targets = [
"$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe",
"$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe.map"
]
buildtargets = [
]
mustmatch = [
"\s*Secure ID: 10003a5c$",
"\s*Vendor ID: 00000000$",
"\s*Capabilities: 00000000 000fffbf$",
"\s*CommDD$",
"\s*PowerMgmt$",
"\s*MultimediaDD$",
"\s*ReadDeviceData$",
"\s*WriteDeviceData$",
"\s*TrustedUI$",
"\s*DiskAdmin$",
"\s*NetworkControl$",
"\s*AllFiles$",
"\s*SwEvent$",
"\s*NetworkServices$",
"\s*LocalServices$",
"\s*ReadUserData$",
"\s*WriteUserData$",
"\s*Location$",
"\s*SurroundingsDD$",
"\s*UserEnvironment$",
"\s*TCB$"
]
mustnotmatch = [
"DRM"
]
warnings = 0
t.id = "0107"
t.name = "capability_arm"
t.description = description
t.command = command % "arm.v5.urel.gcce4_4_1"
t.targets = targets
t.mustmatch = mustmatch
t.mustnotmatch = mustnotmatch
t.warnings = warnings
t.run()
return t
示例14: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [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
示例15: run
# 需要导入模块: from raptor_tests import SmokeTest [as 别名]
# 或者: from raptor_tests.SmokeTest import usebash [as 别名]
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