diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-04-27 08:29:50 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-04-27 08:29:50 -0400 |
commit | aa7bd954cba086567c87b085a3ba1f5d045898a2 (patch) | |
tree | bf45900d7b61995ab82ee13d9e4fc8ec9fac2771 | |
parent | 7082b0742fb2c60177831ca02f485494d394137e (diff) | |
download | python-coveragepy-git-aa7bd954cba086567c87b085a3ba1f5d045898a2.tar.gz |
Latest thinking on how to do testing on Windows.
-rw-r--r-- | alltests.cmd | 8 | ||||
-rw-r--r-- | switchpy.cmd | 14 |
2 files changed, 18 insertions, 4 deletions
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
|