From aa7bd954cba086567c87b085a3ba1f5d045898a2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 27 Apr 2011 08:29:50 -0400 Subject: Latest thinking on how to do testing on Windows. --- alltests.cmd | 8 ++++---- switchpy.cmd | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 switchpy.cmd diff --git a/alltests.cmd b/alltests.cmd index 425fe1c1..213c71b9 100644 --- a/alltests.cmd +++ b/alltests.cmd @@ -1,11 +1,11 @@ @echo off @rem all the Python installs have a .pth pointing to the egg file created by -@rem 2.5, so install the testdata in 2.5 -call \ned\bin\switchpy c:\vpy\coverage\25 quiet +@rem 2.6, so install the testdata in 2.5 +call switchpy c:\vpy\coverage\26 quiet make --quiet testdata -for %%v in (23 24 25 26 27 31 32) do ( - call \ned\bin\switchpy c:\vpy\coverage\%%v +for %%v in (24 25 26 27 31 32) do ( + call switchpy c:\vpy\coverage\%%v python setup.py -q develop set COVERAGE_TEST_TRACER=c nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/switchpy.cmd b/switchpy.cmd new file mode 100644 index 00000000..089df2a5 --- /dev/null +++ b/switchpy.cmd @@ -0,0 +1,14 @@ +@echo off +set PATH=.;%HOME%\bin +set PATH=%PATH%;c:\windows\system32;c:\windows +set PATH=%PATH%;%1\scripts;%1 +set PATH=%PATH%;C:\Program Files\Mercurial\bin +set PATH=%PATH%;c:\cygwin\bin +set PATH=%PATH%;c:\app\MinGW\bin +set PYTHONPATH=;c:\ned\py +set PYHOME=%1 +rem title Py %1 +if "%2"=="quiet" goto done +python -c "import sys; print ('\n=== Python %%s %%s' %% (sys.version.split()[0], '='*80))" + +:done -- cgit v1.2.1