Commits

Ned Batchelder  committed 2f3844f

Latest thinking on how to do testing on Windows.

  • Participants
  • Parent commits c13c9b6

Comments (0)

Files changed (2)

File alltests.cmd

 @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

File switchpy.cmd

+@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