main_testing2/wordle_test.sh
changeset 475 59e005dcf163
parent 463 0315d9983cd0
child 477 a4e1f63157d8
--- a/main_testing2/wordle_test.sh	Thu Nov 02 13:53:37 2023 +0000
+++ b/main_testing2/wordle_test.sh	Thu Nov 02 23:34:53 2023 +0000
@@ -16,15 +16,15 @@
 # compilation tests
 
 function scala_compile {
-  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -Xprint:parser "$1" 2> c$out 1> c$out)
+  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala-cli compile "$1" 2> c$out 1> c$out)
 }
 
 # functional tests
 
 function scala_assert {
-  (ulimit -t 35; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" -- "$2" -e "" 2> /dev/null 1> /dev/null)
+  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala-cli -i "$1" "$2" -e "urbanmain()" 2> /dev/null 1> /dev/null)
 }
- 
+
 # purity test
 function scala_vars {
    (sed 's/immutable/ok/g' c$out > cb$out;
@@ -42,6 +42,7 @@
     tsts0=$(( 0 ))
 else
     echo -e "  --> SCALA DID NOT RUN wordle.scala\n" >> $out
+    echo -e "  --> try running scala-cli compile wordle.scala on your own computer\n" >> $out
     tsts0=$(( 1 )) 
 fi