You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2004/11/30 12:15:47 UTC
svn commit: r106995 - /gump/trunk/gump
Author: leosimons
Date: Tue Nov 30 03:15:45 2004
New Revision: 106995
URL: http://svn.apache.org/viewcvs?view=rev&rev=106995
Log:
Fix experimental-tests target
Modified:
gump/trunk/gump
Modified: gump/trunk/gump
Url: http://svn.apache.org/viewcvs/gump/trunk/gump?view=diff&rev=106995&p1=gump/trunk/gump&r1=106994&p2=gump/trunk/gump&r2=106995
==============================================================================
--- gump/trunk/gump (original)
+++ gump/trunk/gump Tue Nov 30 03:15:45 2004
@@ -236,12 +236,17 @@
local oldpythonpath=$PYTHONPATH
if [[ -z $oldpythonpath ]]; then
- export PYTHONPATH=`pwd`/python
+ export PYTHONPATH=`pwd`/python:`pwd`
else
- export PYTHONPATH=`pwd`/python:$PYTHONPATH
+ export PYTHONPATH=`pwd`/python:`pwd`:$PYTHONPATH
fi
- ./test/gumptest.sh
+ #./test/gumptest.sh
+ cd python
+ python ../bin/testrunner.py -f ../python/gump/test/pyunit.py $@
+ cd ..
+
+ export PYTHONPATH=$oldpythonpath
}
# Run gumpy integration tests
@@ -322,6 +327,13 @@
{
check_env "python" "http://www.python.org/"
+ local oldpythonpath=$PYTHONPATH
+ if [[ -z $oldpythonpath ]]; then
+ export PYTHONPATH=`pwd`/src/py:`pwd`
+ else
+ export PYTHONPATH=`pwd`/src/py:`pwd`:$PYTHONPATH
+ fi
+
local dir=$1
if [[ -z "$dir" ]]; then
dir='src/py'
@@ -331,6 +343,8 @@
find $dir -name *.pyc | xargs rm -Rf # get rid of compiled files
python bin/testrunner.py -d $dir $@ # run the tests
+
+ export PYTHONPATH=$oldpythonpath
}
#############################################################################