A RAMFile is stored in a list of Buffer object to support arbitrary large files.
[jnode:svn-mirror.git] / test.sh
1 #!/bin/sh
2
3 dir=`dirname $0`
4
5 if [ $# -eq 0 ] ; then
6     echo "usage: ./test.sh <project> [ <test> ... ]"
7     echo " where <project> is \"all\" or a JNode component project, and"
8     echo " the <test>s are targets in the respective \"build-tests.xml\" files"
9     exit
10 fi
11
12 if [ $1 = all ] ; then 
13     PROJECTS=`find . -maxdepth 2 -name build-tests.xml -exec dirname {} \;` 
14 else
15     PROJECTS=$1
16 fi
17 shift
18
19 for PROJECT in $PROJECTS ; do
20     java -Xmx768M -Xms256M -jar $dir/core/lib/ant-launcher.jar \
21         -lib $JAVA_HOME/lib -lib $dir/core/lib \
22         -f $dir/$PROJECT/build-tests.xml $*
23 done
24