equal
deleted
inserted
replaced
16 #echo -e "" >> $out |
16 #echo -e "" >> $out |
17 |
17 |
18 # compilation tests |
18 # compilation tests |
19 |
19 |
20 function scala_compile { |
20 function scala_compile { |
21 (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala-cli compile -color never -Xprint:parser "$1" 2> c$out 1> c$out) |
21 (scala-cli compile -color never -Xprint:parser "$1" 2> c$out 1> c$out) |
22 } |
22 } |
23 |
23 |
24 # functional tests |
24 # functional tests |
25 |
25 |
26 function scala_assert { |
26 function scala_assert { |
27 (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala-cli -i "$1" "$2" -e "urbanmain()" 2> /dev/null 1> /dev/null) |
27 (scala-cli --server=false --java-opt -Xmx1g -i project.scala "$1" "$2" -e "urbanmain()" 2> /dev/null 1> /dev/null) |
28 } |
28 } |
29 |
29 |
30 # purity test |
30 # purity test |
31 function scala_vars { |
31 function scala_vars { |
32 (sed 's/immutable/ok/g' c$out > cb$out; |
32 (sed 's/immutable/ok/g' c$out > cb$out; |