# HG changeset patch # User raptorbot # Date 1263848353 0 # Node ID befd82d9c937eecda49d3af4213ab9f4029e0287 # Parent d84e89d4dde468dcfc3fe396631115e929d9b3ba Test fixes for whatcomp test: Deal with slashes correctly. Use Python 264. diff -r d84e89d4dde4 -r befd82d9c937 sbsv2/raptor/test/run.bat --- a/sbsv2/raptor/test/run.bat Mon Jan 18 19:33:31 2010 +0000 +++ b/sbsv2/raptor/test/run.bat Mon Jan 18 20:59:13 2010 +0000 @@ -21,7 +21,7 @@ setlocal set __PYTHON__=%SBS_PYTHON% -if "%__PYTHON__%"=="" set __PYTHON__=%SBS_HOME%\win32\python252\python.exe +if "%__PYTHON__%"=="" set __PYTHON__=%SBS_HOME%\win32\python264\python.exe set __TEST_SUITE__=%SBS_HOME%\test\common\run_tests.pyc set __TEST_SUITE_PY__=%SBS_HOME%\test\common\run_tests.py diff -r d84e89d4dde4 -r befd82d9c937 sbsv2/raptor/test/smoke_suite/whatcomp.py --- a/sbsv2/raptor/test/smoke_suite/whatcomp.py Mon Jan 18 19:33:31 2010 +0000 +++ b/sbsv2/raptor/test/smoke_suite/whatcomp.py Mon Jan 18 20:59:13 2010 +0000 @@ -23,29 +23,35 @@ t.usebash = True result = SmokeTest.PASS - abs_epocroot = os.path.abspath(os.environ["EPOCROOT"]).replace("\\","/") + abs_epocroot = os.path.abspath(os.environ["EPOCROOT"]) cwd = os.getcwd().replace("\\","/") - relative_epocroot = os.path.relpath(abs_epocroot,cwd).replace("\\","/") + relative_epocroot = os.path.relpath(abs_epocroot.replace("\\","/"),cwd) - description = """This tests the whatcomp filter. As a byproduct it uses (and thus smoke-tests) sbs_filter.py""" command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c %s -m ${SBSMAKEFILE} -f ${SBSLOGFILE} what && " + \ - "EPOCROOT=%s sbs_filter --filters FilterWhatComp < ${SBSLOGFILE} &&" % relative_epocroot + \ - "EPOCROOT=%s sbs_filter --filters FilterWhatComp < ${SBSLOGFILE}" % abs_epocroot + "EPOCROOT='%s' sbs_filter --filters FilterWhatComp < ${SBSLOGFILE} &&" % relative_epocroot + \ + "EPOCROOT='%s' sbs_filter --filters FilterWhatComp < ${SBSLOGFILE}" % abs_epocroot targets = [ ] buildtargets = [ ] - mustmatch = [ + + mustmatch_pre = [ "-- abld -w", - "Chdir .*/smoke_suite/test_resources/simple", + ".*Chdir .*/smoke_suite/test_resources/simple.*", relative_epocroot + "/epoc32/release/armv5/urel/test.exe", relative_epocroot + "/epoc32/release/armv5/urel/test.exe.map", abs_epocroot + "/epoc32/release/armv5/urel/test.exe", abs_epocroot + "/epoc32/release/armv5/urel/test.exe.map", ] + + if os.sep == '\\': + mustmatch = [ i.replace("\\", "\\\\" ).replace("/","\\\\") for i in mustmatch_pre ] + else: + mustmatch = mustmatch_pre + mustnotmatch = [ "error: no (CHECK|WHAT) information found" ]