diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-17 07:29:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-17 07:29:02 -0400 |
commit | bc3bcdfe254470db22cfdf4379bc2087554d9d6c (patch) | |
tree | 40ced3bfd6baa4c8970d97220496f4ada1ab5094 | |
parent | 3f47edc7e961895dfeac410e940edc712c42c4e8 (diff) | |
download | python-coveragepy-git-bc3bcdfe254470db22cfdf4379bc2087554d9d6c.tar.gz |
Better 3.x testing, etc.
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | notsource.txt | 4 | ||||
-rw-r--r-- | three.cmd | 17 |
3 files changed, 20 insertions, 4 deletions
@@ -41,11 +41,12 @@ lint: python /Python25/Lib/tabnanny.py coverage scripts test setup.py python checkeol.py -testready: $(TEST_ZIP) devinst +testready: testdata devinst tests: testready nosetests +testdata: $(TEST_ZIP) $(TEST_ZIP): test/covmodzip1.py zip -j $@ $+ diff --git a/notsource.txt b/notsource.txt new file mode 100644 index 00000000..a037cd17 --- /dev/null +++ b/notsource.txt @@ -0,0 +1,4 @@ +.pyc
+\.hg\
+\build\
+.egg-info
@@ -1,9 +1,20 @@ @REM Copy the sources, convert to Py3k, and run the tests.
rmdir/s/q ..\three
-xcopy /s/h/i/e . ..\three
+xcopy /s/h/i/e /exclude:notsource.txt . ..\three
cd ..\three
call switchpy 31
python \python31\Tools\Scripts\2to3.py -w coverage test setup.py mock.py
-make clean testready
-python \python31\Scripts\nosetests3
+make clean
+make testdata
+
+@REM We run coverage out of the source directory, so put built stuff there.
+python setup.py build
+copy build\lib.win32-3.1\coverage\tracer.pyd coverage
+
+@REM Run both modes of tracer
+set COVERAGE_TEST_TRACER=c
+python \python31\Scripts\nosetests3 %1
+del coverage\tracer.pyd
+set COVERAGE_TEST_TRACER=py
+python \python31\Scripts\nosetests3 %1
|