testing5/bf_test.sh
changeset 266 ca48ac1d3c3e
parent 261 8997430d9765
child 286 5c57c407e27b
equal deleted inserted replaced
265:59779ce322a6 266:ca48ac1d3c3e
    10 
    10 
    11 
    11 
    12 # compilation tests
    12 # compilation tests
    13 
    13 
    14 function scala_compile {
    14 function scala_compile {
    15    (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc "$1" 2>> $out 1>> $out)
    15    (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala "$1" 2>> $out 1>> $out)
    16 }
    16 }
    17 
    17 
    18 # functional tests
    18 # functional tests
    19 
    19 
    20 function scala_assert {
    20 function scala_assert {
    21   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)   
    21   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)   
    22 }
    22 }
    23 
    23 
    24 # purity test
    24 # purity test
    25 
    25 
    26 function scala_vars {
    26 function scala_vars {