You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2002/02/20 19:03:09 UTC
cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/system/test ContainerProfile.java
bloritsch 02/02/20 10:03:09
Modified: src/scratchpad/org/apache/avalon/excalibur/system/test
ContainerProfile.java
Added: . test.sh
Log:
add script test harness so that we can play with VM settings on profile tests
Revision Changes Path
1.1 jakarta-avalon-excalibur/test.sh
Index: test.sh
===================================================================
#!/bin/sh
LOCAL_AVALON_TOOLS=$AVALON_TOOLS
if [ "$AVALON_TOOLS" = "" ] ; then
if [ -d ../jakarta-avalon/tools ] ; then
LOCAL_AVALON_TOOLS=../jakarta-avalon/tools
elif [ -d tools ] ; then
LOCAL_AVALON_TOOLS=tools
else
echo "Unable to locate tools directory at "
echo "../jakarta-avalon/tools/ or tools/. "
echo "Aborting."
exit 1
fi
fi
CLASSPATH="./build/scratchpad/;./build/classes/;./build/testclasses/;$CLASSPATH"
for i in $LOCAL_AVALON_TOOLS/ext/*.jar; do
CLASSPATH="$CLASSPATH;$i"
done
for i in $LOCAL_AVALON_TOOLS/lib/*.jar; do
CLASSPATH="$CLASSPATH;$i"
done
for i in lib/*.jar; do
CLASSPATH="$CLASSPATH;$i"
done
java -classpath $CLASSPATH $@
1.4 +7 -1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/system/test/ContainerProfile.java
Index: ContainerProfile.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/system/test/ContainerProfile.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ContainerProfile.java 20 Feb 2002 15:24:22 -0000 1.3
+++ ContainerProfile.java 20 Feb 2002 18:03:09 -0000 1.4
@@ -23,6 +23,7 @@
import org.apache.avalon.framework.configuration.*;
import org.apache.avalon.framework.parameters.*;
import org.apache.avalon.framework.logger.*;
+import junit.texti.TestRunner;
import java.net.URL;
@@ -30,7 +31,7 @@
* Used as a basis for the PoolComparisonProfile Tests
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
- * @version $Id: ContainerProfile.java,v 1.3 2002/02/20 15:24:22 bloritsch Exp $
+ * @version $Id: ContainerProfile.java,v 1.4 2002/02/20 18:03:09 bloritsch Exp $
*/
public final class ContainerProfile
extends TestCase
@@ -397,6 +398,11 @@
}
}
}
+ }
+
+ public static final void main(String[] args)
+ {
+ TestRunner.run( ContainerProfile.class );
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>