sbsv2/raptor/test/run.bat
author raptorbot <raptorbot@systemstesthead.symbian.intra>
Fri, 18 Dec 2009 19:57:42 +0000
branchwip
changeset 117 ecf683438dc6
parent 3 e1eecf4d390d
child 137 befd82d9c937
permissions -rwxr-xr-x
Don't mess around with EPOCROOT until actually entering raptor so we know what the original was Put the original epocroot back on the front of the whatcomp output. This allows what output to be either relative or absolute depending on what your epocroot is.

@rem
@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
@rem All rights reserved.
@rem This component and the accompanying materials are made available
@rem under the terms of the License "Eclipse Public License v1.0"
@rem which accompanies this distribution, and is available
@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
@rem
@rem Initial Contributors:
@rem Nokia Corporation - initial contribution.
@rem
@rem Contributors:
@rem
@rem Description: 
@rem

@echo off

set HOSTPLATFORM=win 32
set HOSTPLATFORM_DIR=win32

setlocal
set __PYTHON__=%SBS_PYTHON%
if "%__PYTHON__%"=="" set __PYTHON__=%SBS_HOME%\win32\python252\python.exe

set __TEST_SUITE__=%SBS_HOME%\test\common\run_tests.pyc
set __TEST_SUITE_PY__=%SBS_HOME%\test\common\run_tests.py

@REM Mount '/' in cygwin, in case it is not done automatically
set __CYGWIN__=%SBS_CYGWIN%
if "%__CYGWIN__%"=="" set __CYGWIN__=%SBS_HOME%\win32\cygwin
%__CYGWIN__%\bin\umount -u "/" >NUL  2>NUL
%__CYGWIN__%\bin\mount -u "%__CYGWIN__%" "/"

@REM If the Python source exists, use it. Else use the byte-compiled Python code
if exist %__TEST_SUITE_PY__% SET __TEST_SUITE__=%__TEST_SUITE_PY__%

@REM Then run the test suite with all the arguments
%__PYTHON__% -tt %__TEST_SUITE__% %*

endlocal
@echo on