equal
deleted
inserted
replaced
1 @rem |
1 @rem |
2 @rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 @rem Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 @rem All rights reserved. |
3 @rem All rights reserved. |
4 @rem This component and the accompanying materials are made available |
4 @rem This component and the accompanying materials are made available |
5 @rem under the terms of the License "Eclipse Public License v1.0" |
5 @rem under the terms of the License "Eclipse Public License v1.0" |
6 @rem which accompanies this distribution, and is available |
6 @rem which accompanies this distribution, and is available |
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
12 @rem Contributors: |
12 @rem Contributors: |
13 @rem |
13 @rem |
14 @rem Description: |
14 @rem Description: |
15 @rem |
15 @rem |
16 |
16 |
17 @echo off |
17 @SETLOCAL |
|
18 @CALL %SBS_HOME%\bin\sbs_env.bat |
18 |
19 |
19 set HOSTPLATFORM=win 32 |
20 @SET __TEST_SUITE__=%~dp0common\run_tests.pyc |
20 set HOSTPLATFORM_DIR=win32 |
21 @SET __TEST_SUITE_PY__=%~dp0common\run_tests.py |
21 |
|
22 setlocal |
|
23 set __PYTHON__=%SBS_PYTHON% |
|
24 if "%__PYTHON__%"=="" set __PYTHON__=%SBS_HOME%\win32\python264\python.exe |
|
25 |
|
26 set __TEST_SUITE__=%SBS_HOME%\test\common\run_tests.pyc |
|
27 set __TEST_SUITE_PY__=%SBS_HOME%\test\common\run_tests.py |
|
28 |
|
29 @REM Mount '/' in cygwin, in case it is not done automatically |
|
30 set __CYGWIN__=%SBS_CYGWIN% |
|
31 if "%__CYGWIN__%"=="" set __CYGWIN__=%SBS_HOME%\win32\cygwin |
|
32 %__CYGWIN__%\bin\umount -u "/" >NUL 2>NUL |
|
33 %__CYGWIN__%\bin\mount -u "%__CYGWIN__%" "/" |
|
34 |
22 |
35 @REM If the Python source exists, use it. Else use the byte-compiled Python code |
23 @REM If the Python source exists, use it. Else use the byte-compiled Python code |
36 if exist %__TEST_SUITE_PY__% SET __TEST_SUITE__=%__TEST_SUITE_PY__% |
24 @IF EXIST %__TEST_SUITE_PY__% SET __TEST_SUITE__=%__TEST_SUITE_PY__% |
37 |
25 |
38 @REM Then run the test suite with all the arguments |
26 @REM Then run the test suite with all the arguments |
39 %__PYTHON__% -tt %__TEST_SUITE__% %* |
27 @%__PYTHON__% -tt %__TEST_SUITE__% %* |
40 |
28 |
41 endlocal |
29 @ENDLOCAL |
42 @echo on |
|