classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kissme and Classpath


From: Alex Lau
Subject: Re: Kissme and Classpath
Date: Mon, 24 Jun 2002 11:58:43 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3

Here is a script file I make for testing under Mauve.

It will generate all the test class into a single file
e.g  ./buildtest.sh all  --------> create all-classes
or it will generate all subdirector files
e.g ./buildtest.sh sub --------> java-io-classes include all the test in /gnu/testlet/java/io/

Also there is mauveTest file that will allow you to feeb the generated (e.g. java-io-classess )
into the test directly.

Example 1
cd kissme
build kissme... and classpath and mauve :)
mkdir mauve-test
cd mauve-test
../useful_scripts/buildtest.sh sub #( this will generate all the sub directory file )
../useful_scripts/mauveTest java-io-classes  #( this will hang! :) )

I'm not sure I'm doing the right thing or not.. but this help my to create all the existing test in mauve. Let me know it is right or not. I put it in autoconfig format just incase it work. :)
Thanks
Alex

p.s. Reason I'm not putting it in mauve.. is they don't get no respon from the list... hehe :)
hard to understand where they are going....




#!/bin/sh
export address@hidden@/gnu/testlet
export AllClass=all-classes

buildme () {
  for allfile in $1/*; do
    if [ -d $allfile ]; then
      echo "directory "$allfile;
      buildme $allfile;
    fi
  done
  for allfile in $1/*.java; do
    if [ -f $allfile ]; then 
      echo $allfile | mawk '{ gsub(/^.*\/testlet\/|.java/, ""); gsub(/\//, 
"."); print ("gnu.testlet"$1)}' >> $AllClass;
    fi
  done
}

toFile () {
  for allfile in $1/*; do
    if [ -d $allfile ]; then
      echo "directory "$allfile;
      export AllClass=`echo $allfile | mawk '{ gsub(/^.*\//, ""); 
print("java-"$1"-classes")}'`;
      buildme $allfile;
    fi
  done
}

if [ $1 ]; then 
  case "$1" in
    all)
      if [ "$MAUVEPATH" != "" ]; then
        rm $AllClass
        buildme $MAUVEPATH/java;
        buildme $MAUVEPATH/javax;
      fi
                ;;
                sub)
      if [ "$MAUVEPATH" != "" ]; then
        rm java*classes
        toFile $MAUVEPATH/java;
        toFile $MAUVEPATH/javax;
      fi
                ;;
                clean)
      if [ "$MAUVEPATH" != "" ]; then
        rm *classes
                        fi
  esac
else
        echo "Usage: buildtest [ all | sub | clean ]";
fi

#!/bin/sh

export address@hidden@
export address@hidden@

if [ $1 ]; then 
        $KISSME_HOME/useful_scripts/kissme -classpath 
$KISSME_HOME/classes.zip:$MAUVE_HOME/ gnu.testlet.SimpleTestHarness < $1 
else
        echo "useage: mauveTest classfile"

fi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]