summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-04-27 08:29:50 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-04-27 08:29:50 -0400
commit06638389e5654a6fd3c78facf2d391dc21b74685 (patch)
tree4546cfa42251a1c3cbd002bbc941952848cccbbf
parent52184ab8be306ba998033fc70923fe657e0a930f (diff)
downloadpython-coveragepy-06638389e5654a6fd3c78facf2d391dc21b74685.tar.gz
Latest thinking on how to do testing on Windows.
-rw-r--r--alltests.cmd8
-rw-r--r--switchpy.cmd14
2 files changed, 18 insertions, 4 deletions
diff --git a/alltests.cmd b/alltests.cmd
index 425fe1c..213c71b 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 0000000..089df2a
--- /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