[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-dev
Subject:    Update to test.sh
From:       "Kevin O'Neill" <kevin () rocketred ! com>
Date:       2001-01-28 10:05:54
[Download RAW message or body]

This is an updateed test.sh that puts the current directory in junits class 
path so that the classes in client/* and transaction/* can be accessed. It 
also includes the various classes I have linked into my lib directory (eg 
jaxp). 

I've also been unable to get anything but the cookie test to succeed. I'm 
sure its a configuration issue but I'm a little stumped. It seems that most 
of the scripts to run or build slide assume certain classes to be available 
in the operators classpath. I tend not to have a CLASSPATH variable defined 
due to clashes between applications, which is where I think I'm running into 
problems.

If somebody has a working configuration for the test cases that they would 
like to share would you be kind enough to email the details to me. I'll 
update my configuration and put some documentation together for other newbies.

k.
["test.sh" (application/x-shellscript)]

#! /bin/sh

# $Id: test.sh,v 1.1 2001/01/21 21:29:28 remm Exp $

if [ -z "$JAVA_HOME" ] ; then
  JAVA=`which java`
  if [ -z "$JAVA" ] ; then
    echo "Cannot find JAVA. Please set your PATH."
    exit 1
  fi
  JAVA_BIN=`dirname $JAVA`
  JAVA_HOME=$JAVA_BIN/..
fi

JAVA=$JAVA_HOME/bin/java

LOCALCLASSPATH=$CLASSPATH

# convert the existing path to unix
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
   LOCALCLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi

LOCALCLASSPATH=./:../classes:`echo ../lib/*.jar | tr ' ' ':'`:./junit.jar:./webdavlib.jar:$LOCALCLASSPATH

# convert the unix path to windows
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi

if [ -z $1 ] ; then
  echo "Usage: test <pkg>";
  exit;
fi

$JAVA -cp $LOCALCLASSPATH junit.swingui.TestRunner $1


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic