[Zope-CVS] CVS: Packages/TestScripts - testzope:1.2
Shane Hathaway
shane@cvs.zope.org
Thu, 28 Feb 2002 12:21:17 -0500
Update of /cvs-repository/Packages/TestScripts
In directory cvs.zope.org:/tmp/cvs-serv26632
Modified Files:
testzope
Log Message:
Defined warnings as errors and added Zope 3X testing.
=== Packages/TestScripts/testzope 1.1.1.1 => 1.2 ===
if true; then
+ cd $HOME
+ rm -rf zopetest
+ export CVSROOT=:pserver:anonymous@cvs.zope.org:/cvs-repository
+ cvs co -d zopetest -r Zope-3x-branch Zope3
+ cd $HOME/zopetest
+ /usr/local/bin/python2.2 stupid_build.py
+ PYTHONPATH=$HOME/zopetest/lib/python /usr/local/bin/python2.2 -Werror \
+ /usr/local/lib/python2.2/unittest.py -q Zope.Testing.allZopeTests \
+ >$HOME/zope3Xresults 2>&1
+else
+ echo Tests disabled >$HOME/zope3Xresults
+fi
+
+if true; then
checkout
#cd $HOME/zopetest/lib/python/Products/ParsedXML/Expat
#python setup.py build
@@ -35,7 +49,7 @@
python wo_pcgi.py
rm -f inituser
cd $HOME/zopetest
-python utilities/testrunner.py -v0 -a >$HOME/headresults 2>&1
+python -Werror utilities/testrunner.py -v0 -a >$HOME/headresults 2>&1
else
echo Tests disabled >$HOME/headresults
fi
@@ -46,7 +60,7 @@
python wo_pcgi.py
rm -f inituser
cd $HOME/zopetest
-python utilities/testrunner.py -v0 -a >$HOME/z25results 2>&1
+python -Werror utilities/testrunner.py -v0 -a >$HOME/z25results 2>&1
else
echo Tests disabled >$HOME/z25results
fi
@@ -58,15 +72,14 @@
# for distutils to work.
cvs -q up -j distutils-config-branch setup.py
$PY22 setup.py build_ext --build-lib $HOME/zopetest/lib/python
-$PY22 utilities/testrunner.py -v0 -a >$HOME/py22results 2>&1
+$PY22 -Werror utilities/testrunner.py -v0 -a >$HOME/py22results 2>&1
else
echo Tests disabled >$HOME/py22results
fi
-
cd $HOME
mail -s 'Zope test results' $RECIPIENT <<END_OF_THE_MESSAGE
-Packages included in tests: Zope, CMF, ZEO, bsddb3Storage
+Zope2 tests include CMF, ZEO, and bsddb3Storage packages.
**********************************************************************
Zope CVS Head
@@ -82,5 +95,11 @@
Zope CVS Head with `$PY22 -V 2>&1` (plus distutils-config-branch)
**********************************************************************
`cat py22results`
+
+**********************************************************************
+Zope 3X with `$PY22 -V 2>&1`
+**********************************************************************
+`cat zope3Xresults`
+
END_OF_THE_MESSAGE