main_testing1/drumb_test.sh
changeset 459 d59404a41d5f
parent 420 4edc1a308652
equal deleted inserted replaced
458:d9f8245d0861 459:d59404a41d5f
    21 function scala_assert {
    21 function scala_assert {
    22   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" -e "" 2> /dev/null 1> /dev/null)
    22   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" -e "" 2> /dev/null 1> /dev/null)
    23 }
    23 }
    24 
    24 
    25 # purity test
    25 # purity test
    26 
       
    27 function scala_vars {
    26 function scala_vars {
    28    (egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' c$out 2> /dev/null 1> /dev/null)
    27    (sed 's/immutable/ok/g' c$out > cb$out;
       
    28     egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' cb$out 2> /dev/null 1> /dev/null)
    29 }
    29 }
    30 
       
    31 
       
    32 
    30 
    33 
    31 
    34 
    32 
    35 # compilation test
    33 # compilation test
    36 echo -e "drumb.scala runs?" >> $out
    34 echo -e "drumb.scala runs?" >> $out