equal
deleted
inserted
replaced
3 # to make the script fail safely |
3 # to make the script fail safely |
4 set -euo pipefail |
4 set -euo pipefail |
5 |
5 |
6 |
6 |
7 |
7 |
8 #scalafile=${2:-danube.scala} |
8 scalafile=${1:-danube.scala} |
9 out=${1:-output} |
9 out=${2:-output} |
10 |
10 |
11 |
11 |
12 |
12 |
13 echo "" > $out |
13 echo "" > $out |
14 |
14 |
23 } |
23 } |
24 |
24 |
25 # functional tests |
25 # functional tests |
26 |
26 |
27 function scala_assert { |
27 function scala_assert { |
28 (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" -e "") # 2> /dev/null 1> /dev/null) |
28 (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" -e "" 2> /dev/null 1> /dev/null) |
29 } |
29 } |
30 |
30 |
31 # purity test |
31 # purity test |
32 |
32 |
33 function scala_vars { |
33 function scala_vars { |