diff options
author | michelou <michelou@epfl.ch> | 2007-11-20 18:35:24 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-11-20 18:35:24 +0000 |
commit | c8fab9ec7d779b4adcebab6ae6294ee7be37a5d2 (patch) | |
tree | a81773eb7a15606a66a4ca1eecf73b1710a5338f /test | |
parent | c5ef189ab9f5584214370ac6c59a00c062094a90 (diff) | |
download | scala-c8fab9ec7d779b4adcebab6ae6294ee7be37a5d2.tar.gz scala-c8fab9ec7d779b4adcebab6ae6294ee7be37a5d2.tar.bz2 scala-c8fab9ec7d779b4adcebab6ae6294ee7be37a5d2.zip |
splitted CLDC library (un-/preverified)
Diffstat (limited to 'test')
-rw-r--r-- | test/files/cldc/randoms.scala | 4 | ||||
-rwxr-xr-x | test/scalatest | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/test/files/cldc/randoms.scala b/test/files/cldc/randoms.scala index b9f46250c9..5d3380fef9 100644 --- a/test/files/cldc/randoms.scala +++ b/test/files/cldc/randoms.scala @@ -9,8 +9,8 @@ class Test extends MIDlet with CommandListener { val mainForm = new Form("randoms") mainForm append "Welcome to the world of MIDlets!" mainForm append "(build with Scala)" - //val rnd = new Random - //for (i <- 0 until 10) mainForm append rnd.nextInt.toString + val rnd = new Random + for (i <- 0 until 10) mainForm append rnd.nextInt.toString val exitCommand = new Command("Exit", Command.EXIT, 0) mainForm addCommand exitCommand diff --git a/test/scalatest b/test/scalatest index 04f896521d..b5ae675aa0 100755 --- a/test/scalatest +++ b/test/scalatest @@ -335,7 +335,7 @@ test_run_cldc() { echo MIDlet-Jar-Size: $jarsize; echo MicroEdition-Profile: MIDP-1.0; echo MicroEdition-Configuration: CLDC-1.0 ) > "$dstbase".jad && - cpath=`get_os_pathlist $SCALA_CLDC:"$dstbase".jar` && + cpath=`get_os_pathlist $SCALA_CLDC_API:"$dstbase".jar` && $KVEM_EMULATOR -cp $cpath -Xdescriptor:"$dstbase".jad 2> /dev/null && head $logfile -n 4 | tail -n 1 > $logfile.0 && mv $logfile.0 $logfile @@ -633,7 +633,8 @@ QUICK="$PREFIX/build/quick/bin" QUICK_LIB="$PREFIX/build/quick/lib/library" QUICK_COMP="$PREFIX/build/quick/lib/compiler" QUICK_ACT="$PREFIX/build/quick/lib/actors" -QUICK_CLDC="$PREFIX/build/cldc/lib/library" +QUICK_CLDC="$PREFIX/build/cldc/lib/scala-cldc-library.jar" # unverified +QUICK_CLDC_API="$PREFIX/build/cldc/lib/scala-cldc-api.jar" # preverified JVM_EXT_CLASSPATH=`get_ext_classpath $TESTROOT/files/lib` @@ -666,6 +667,7 @@ SCALA_LIB="$LATEST_LIB"; SCALA_COMP="$LATEST_COMP"; SCALA_ACT="$LATEST_ACT"; SCALA_CLDC="$QUICK_CLDC"; +SCALA_CLDC_API="$QUICK_CLDC_API"; [ -x "$JAVACMD" ] || JAVACMD=java; [ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms16M"; @@ -863,8 +865,11 @@ else KVEM_CLDC=$PREFIX/lib/cldcapi10.jar; KVEM_MIDP=$KVEM_HOME/lib/midpapi10.jar; JARCMD=$bin_dir/jar; + elif [ -d "/home/linuxsoft/apps/" ]; then + error "option '--cldc' requires variable KVEM_HOME to be set" + abort "(eg. export KVEM_HOME=/home/linuxsoft/apps/java-wtk)"; else - abort "option 'cldc' requires variable KVEM_HOME to be set"; + abort "option '--cldc' requires variable KVEM_HOME to be set"; fi kvem_version=`$KVEM_EMULATOR -version | head -1`; printf_outline "Emulator version is : $kvem_version\\n"; |