testing3/knight1_test.sh
changeset 261 8997430d9765
parent 220 3020f8c76baa
child 266 ca48ac1d3c3e
equal deleted inserted replaced
260:b4812c877b05 261:8997430d9765
    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 "$1" 2>> $out 1>> $out) 
    15   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc "$1" 2>> $out 1>> $out) 
    16 }
    16 }
    17 
    17 
    18 # functional tests
    18 # functional tests
    19 
    19 
    20 function scala_assert_slow {
    20 function scala_assert_slow {
    21   (ulimit -t 120; JAVA_OPTS="-Xmx1g" scala -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    21   (ulimit -t 120; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    22 }
    22 }
    23 
    23 
    24 function scala_assert_thirty {
    24 function scala_assert_thirty {
    25   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    25   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    26 }
    26 }
    27 
    27 
    28 function scala_assert_quick {
    28 function scala_assert_quick {
    29   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    29   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    30 }
    30 }