File: buildtestall.bat

package info (click to toggle)
mpi4py 1.3%2Bhg20120611-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,020 kB
  • sloc: python: 9,503; ansic: 6,296; makefile: 571; f90: 158; sh: 146; cpp: 103
file content (54 lines) | stat: -rw-r--r-- 1,685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
setlocal ENABLEEXTENSIONS

set TEST_PY=25,26,27,30,31,32
set TEST_CC=msvc,mingw32
set TEST_MPI=mpich2,openmpi,deinompi,msmpi

for %%A in (%TEST_PY%)  do (
for %%B in (%TEST_CC%)  do (
for %%C in (%TEST_MPI%) do (
echo --------------------------------------------------------------------------------
call :Main %%A %%B %%C
echo --------------------------------------------------------------------------------
)))
goto :eof

:Main
set PYVERSION=%1
set COMPILER=%2
set MPICONF=%3

set PYTHONDIR=C:\Python%PYVERSION%
set PYTHON="%PYTHONDIR%\python.exe"

set MINGWDIR=C:\MinGW
set GCC=%MINGWDIR%\bin\gcc.exe

set MPIDIR==%ProgramFiles%\MPI
if %MPICONF%==mpich2   set MPIDIR=%ProgramFiles%\MPICH2
if %MPICONF%==openmpi  set MPIDIR=%ProgramFiles%\OpenMPI_v1.5.3-win32
if %MPICONF%==deinompi set MPIDIR=%ProgramFiles%\DeinoMPI
if %MPICONF%==msmpi    set MPIDIR=%ProgramFiles%\Microsoft HPC Pack 2008 SDK
set MPIEXEC="%MPIDIR%\bin\mpiexec.exe"

echo Py: %PYVERSION% - CC: %COMPILER% - MPI: %MPICONF%
if "%PYVERSION%-%COMPILER%"=="25-msvc" goto :eof
if not exist %PYTHON%  goto :eof
if not exist %MPIEXEC% goto :eof
if not exist %GCC% if %COMPILER%==mingw32 goto :eof
if %COMPILER%==mingw32 set PATH=%MINGWDIR%\bin;%PATH%

set INSTALLDIR=%TEMP%\mpi4py-buildtest
set PYPATHDIR=%INSTALLDIR%\lib\python
%PYTHON% setup.py -q clean --all
%PYTHON% setup.py -q build --mpi=%MPICONF% --compiler=%COMPILER% install --home=%INSTALLDIR%
%PYTHON% setup.py -q clean --all

set PATH_ORIG=%PATH%
set PATH=%MPIDIR%\bin;%PATH%
%MPIEXEC% -n 2 %PYTHON% test\runtests.py --path=%PYPATHDIR%
set PATH=%PATH_ORIG%

rmdir /S /Q %INSTALLDIR% > NUL
goto :eof