marking1/drumb_test.sh
changeset 281 87b9e3e2c1a7
parent 268 e43f7e92ba26
child 284 9a04eb6a2291
equal deleted inserted replaced
280:a057dc4457fc 281:87b9e3e2c1a7
     7 echo "" > $out
     7 echo "" > $out
     8 
     8 
     9 echo `date` >> $out
     9 echo `date` >> $out
    10 echo >> $out
    10 echo >> $out
    11 echo "Below is the feedback and provisional marks for your submission" >> $out
    11 echo "Below is the feedback and provisional marks for your submission" >> $out
    12 echo "for the Main Part of Assignment 6 .  Please note all marks are provisional until" >> $out
    12 echo "for the Core Part of Assignment 6 .  Please note all marks are provisional until" >> $out
    13 echo "ratified by the assessment board -- this is not an official" >> $out
    13 echo "ratified by the assessment board -- this is not an official" >> $out
    14 echo "results transcript." >> $out
    14 echo "results transcript." >> $out
    15 echo "" >> $out
    15 echo "" >> $out
    16 
    16 
    17 # marks for CW6 main part 
    17 # marks for CW6 main part 
    30 }
    30 }
    31 
    31 
    32 # functional tests
    32 # functional tests
    33 
    33 
    34 function scala_assert {
    34 function scala_assert {
    35     (ulimit -t 60; JAVA_OPTS="-Xmx4g" scala -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    35     (ulimit -t 60; JAVA_OPTS="-Xmx4g" scala -i "$1" -- "$2" -e "" 2> /dev/null 1> /dev/null)
    36 }
    36 }
    37 
    37 
    38 
    38 
    39 # purity test
    39 # purity test
    40 
    40 
   215   fi
   215   fi
   216 fi
   216 fi
   217 
   217 
   218 ## final marks
   218 ## final marks
   219 echo >> $out
   219 echo >> $out
   220 echo "Overall mark for CW 6, Main Part" | tee -a $out
   220 echo "Overall mark for CW 6, Core Part" | tee -a $out
   221 echo "$marks" | tee -a $out
   221 echo "$marks" | tee -a $out