Attic/bfc_test.sh
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 08 Nov 2021 00:17:50 +0000
changeset 400 e48ea8300b2d
parent 333 24bc76d97db2
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/bash
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
# to make the script fail safely
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
set -euo pipefail
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
out=${1:-output}
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
echo "" > $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
echo "Below is the feedback and provisional marks for your submission" >> $out
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
    13
echo "for assignment 10 Part 2.  Please note all marks are provisional until" >> $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
echo "ratified by the assessment board -- this is not an official" >> $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
echo "results transcript." >> $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
echo "" >> $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
# marks for CW10 part 2
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
marks=$(( 0 ))
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
# compilation tests
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
function scala_compile {
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
    24
    (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala "$1" 2> /dev/null 1> /dev/null)
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
}
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
# functional tests
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
function scala_assert {
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
    30
    (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" 2> /dev/null 1> /dev/null)
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
}
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
# purity test
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
function scala_vars {
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
   (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
}
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
# var, return, ListBuffer test
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
#
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
echo "bfc.scala does not contain vars, returns, Arrays, ListBuffers etc?" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
if (scala_vars bfc.scala)
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
then
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
    48
  echo "  --> FAIL (make triple-sure your program conforms to the required format)" | tee -a $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
  tsts0=$(( 1 ))
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
else
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
  echo "  --> success" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
  tsts0=$(( 0 )) 
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
# compilation test
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
if  [ $tsts0 -eq 0 ]
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
then    
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
  echo "bfc.scala runs?" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  if (scala_compile bfc.scala)
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
    echo "  --> success" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
    tsts1=$(( 0 ))
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  else
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
    66
    echo "  --> SCALA DID NOT RUN BFC.SCALA\n" | tee -a $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
    tsts1=$(( 1 )) 
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
else
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  tsts1=$(( 1 ))     
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
### bfc5 test
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
if [ $tsts1 -eq 0 ]
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
  echo -e " val p1 = \"\"\"+++++[->++++++++++<]>--<+++[->>++++++++++<<]>>++<<----------[+>.>.<+<]\"\"\"" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
  echo -e " jtable(p1) == Map(69 -> 61, 5 -> 20, 60 -> 70, 27 -> 44, 43 -> 28, 19 -> 6)" | tee -a $out  
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
  echo -e " val p2 = \"\"\"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\"\"\"" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
  echo -e " jtable(p2) == Map(14 -> 34, 33 -> 15, 45 -> 44, 48 -> 9, 43 -> 46, 8 -> 49)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
  echo -e " run2(\"[-]\", Map(0 -> 100)) == Map(0 -> 0)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
  echo -e " run2(\"[->+<]\", Map(0 -> 10)) == Map(0 -> 0, 1 -> 10)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  echo -e " run2(\"[>>+>>+<<<<-]\", Map(0 -> 42)) == Map(0 -> 0, 2 -> 42, 4 -> 42)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  echo -e " run2(\"\"\"+++++[->++++++++++<]>--<+++[->>++++++++++" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  echo -e "        <<]>>++<<----------[+>.>.<+<]\"\"\") == Map(0 -> 0, 1 -> 58, 2 -> 32)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  echo -e " val hello = \"\"\"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---." | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
  echo -e "               +++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\"\"\"" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  echo -e " run2(hello, Map()) == " | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  echo -e "       Map(0 -> 0, 5 -> 33, 1 -> 0, 6 -> 10, 2 -> 72, 3 -> 100, 4 -> 87)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
  if (scala_assert "bfc.scala" "bf_test5.scala")
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
  then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
      echo "  --> success" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
      marks=$(( marks + 1 ))
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  else
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
    97
    echo "  --> \n ONE TEST FAILED\n" | tee -a $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
  fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
### bfc6 test
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
if [ $tsts1 -eq 0 ]
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
  echo -e " optimise(load_bff(\"benchmark.bf\")).length == 181" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
  echo -e " optimise(load_bff(\"mandelbrot.bf\")).length == 11203" | tee -a $out  
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
  echo -e " run3(\"[-]\", Map(0 -> 100)) == Map(0 -> 0)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   109
  echo -e " run3(\"[->+<]\", Map(0 -> 10)) == Map(0 -> 0, 1 -> 10)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
  echo -e " run3(\"[>>+>>+<<<<-]\", Map(0 -> 42)) == Map(0 -> 0, 2 -> 42, 4 -> 42)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
  echo -e " run3(\"\"\"+++++[->++++++++++<]>--<+++[->>++++++++++" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
  echo -e "        <<]>>++<<----------[+>.>.<+<]\"\"\") == Map(0 -> 0, 1 -> 58, 2 -> 32)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
  echo -e " val hello = \"\"\"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---." | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
  echo -e "               +++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\"\"\"" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
  echo -e " run3(hello, Map()) == " | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  echo -e "       Map(0 -> 0, 5 -> 33, 1 -> 0, 6 -> 10, 2 -> 72, 3 -> 100, 4 -> 87)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
  
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  if (scala_assert "bfc.scala" "bf_test6.scala")
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
  then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
      echo "  --> success" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
      marks=$(( marks + 1 ))
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  else
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
   123
      echo "  --> \n ONE TEST FAILED\n" | tee -a $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
### bfc7 test
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
if [ $tsts1 -eq 0 ]
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  echo -e " combine(optimise(load_bff(\"benchmark.bf\"))).length == 134" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  echo -e " combine(optimise(load_bff(\"mandelbrot.bf\"))).length == 6509" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  echo -e " run4(\"[-]\", Map(0 -> 100)) == Map(0 -> 0)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  echo -e " run4(\"[->+<]\", Map(0 -> 10)) == Map(0 -> 0, 1 -> 10)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  echo -e " run4(\"[>>+>>+<<<<-]\", Map(0 -> 42)) == Map(0 -> 0, 2 -> 42, 4 -> 42)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
  echo -e " run4(\"\"\"+++++[->++++++++++<]>--<+++[->>++++++++++" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  echo -e "        <<]>>++<<----------[+>.>.<+<]\"\"\") == Map(0 -> 0, 1 -> 58, 2 -> 32)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  echo -e " val hello = \"\"\"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---." | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
  echo -e "               +++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\"\"\"" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
  echo -e " run4(hello, Map()) == " | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
  echo -e "       Map(0 -> 0, 5 -> 33, 1 -> 0, 6 -> 10, 2 -> 72, 3 -> 100, 4 -> 87)" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
  
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
  if (scala_assert "bfc.scala" "bf_test7.scala")
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
  then
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
      echo "  --> success" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
      marks=$(( marks + 2 ))
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  else
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
   148
      echo "  --> \n ONE TEST FAILED\n" | tee -a $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
  fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
fi
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
## final marks
286
5c57c407e27b updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
   154
echo "Overall mark for CW 10, Part 2" | tee -a $out
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
echo "$marks" | tee -a $out
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156