gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r201504 - /gump/branches/Gump3/gump
Date Thu, 23 Jun 2005 21:48:25 GMT
Author: leosimons
Date: Thu Jun 23 14:48:24 2005
New Revision: 201504

URL: http://svn.apache.org/viewcvs?rev=201504&view=rev
Log:
Replace testrunner.py with pylid as our testrunner of choice within the main gump script.

* gump: simplify the 'test' option by just leaving it all up to pylid, getting rid of the
need for testrunner.

Modified:
    gump/branches/Gump3/gump

Modified: gump/branches/Gump3/gump
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/gump?rev=201504&r1=201503&r2=201504&view=diff
==============================================================================
--- gump/branches/Gump3/gump (original)
+++ gump/branches/Gump3/gump Thu Jun 23 14:48:24 2005
@@ -110,8 +110,8 @@
       
       Available options include:"
       # This is a little wacky way to get just the option list from the
-      # testrunner.py script. It works for now :-D
-      python $GUMP_HOME/bin/testrunner.py -h 2>&1 | grep '       '
+      # pylid.py script. It works for now :-D
+      python $GUMP_HOME/bin/pylid-0.3/pylid.py -h 2>&1 | grep '  '
         ;;
     dynagump)
       echo "
@@ -657,36 +657,14 @@
 {
   lock
   
-  # add pygump to python path
-  if [[ -z "$oldpythonpath" ]]; then
-    if [[ ! -z "$GUMP_CYGWIN" ]]; then
-      export PYTHONPATH="`cygpath -w $GUMP_HOME/pygump/python`;`cygpath -w $GUMP_HOME/pygump`"
-    else
-      export PYTHONPATH="$GUMP_HOME/pygump/python:$GUMP_HOME/pygump"
-    fi
-  else
   if [[ ! -z "$GUMP_CYGWIN" ]]; then
-      export PYTHONPATH="`cygpath -w $GUMP_HOME/pygump/python`;`cygpath -w $GUMP_HOME/pygump`:$PYTHONPATH"
-    else
-      export PYTHONPATH="$GUMP_HOME/pygump/python:$GUMP_HOME/pygump:$PYTHONPATH"
-    fi
-  fi
-
-  local current=`pwd`
-  cd "$GUMP_HOME/pygump/python"
-  pycompile
-  
-  # Run the pygump tests
-  if [[ ! -z "$GUMP_CYGWIN" ]]; then
-    $GUMP_PYTHON `cygpath -w $GUMP_HOME/bin/testrunner.py` -d `cygpath -w $GUMP_HOME/pygump/python/gump/test`
$@
+    $GUMP_PYTHON `cygpath -w $GUMP_HOME/bin/pylid-0.3/pylid.py` \
+      -c -v -b `cygpath -w $GUMP_HOME/pygump:$GUMP_HOME/pygump/python` \
+      `cygpath -w $GUMP_HOME/pygump/python/gump/test` $@
   else
-    $GUMP_PYTHON $GUMP_HOME/bin/testrunner.py -d $GUMP_HOME/pygump/python/gump/test $@
-  fi
-  cd "$current"
-  
-  # restore python path
-  if [[ ! -z "$oldpythonpath" ]]; then
-    export PYTHONPATH="$oldpythonpath"
+    $GUMP_PYTHON $GUMP_HOME/bin/pylid-0.3/pylid.py -c -v -b \
+      $GUMP_HOME/pygump:$GUMP_HOME/pygump/python \
+      $GUMP_HOME/pygump/python/gump/test $@
   fi
   
   unlock



Mime
View raw message