core_testing3/postfix_test.sh
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 01 May 2022 12:41:56 +0100
changeset 425 957808dcb367
parent 401 9471c3b7ea02
child 474 b528d1d3d3c3
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/bash
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
set -euo pipefail
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
out=${1:-output}
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
echo -e "" > $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
     9
echo -e "Below is the feedback for your submission postfix.scala and postfix2.scala" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
echo -e "" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
# compilation tests
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
function scala_compile {
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    15
  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -Xprint:parser "$1" 2> c$out 1> c$out)
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
}
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
# functional tests
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
function scala_assert {
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    21
  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" -e "" 2> /dev/null 1> /dev/null)
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
}
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
# purity test
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
function scala_vars {
376
6cc36d0ef79e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 352
diff changeset
    27
   (egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' c$out 2> /dev/null 1> /dev/null)
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
}
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    31
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    32
# compilation test
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    33
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    34
echo -e "postfix.scala runs?" >> $out
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    35
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    36
if (scala_compile postfix.scala)
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    37
then
352
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 346
diff changeset
    38
    echo -e "  --> passed" >> $out
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    39
    tsts=$(( 0 ))
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    40
  else
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    41
    echo -e "  --> SCALA DID NOT RUN postfix.scala\n" >> $out
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    42
    tsts=$(( 1 )) 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    43
fi
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    44
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    45
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
# var, return, ListBuffer test
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
#
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
echo -e "postfix.scala does not contain vars, returns etc?" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    50
if  [ $tsts -eq 0 ]
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    51
then 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    52
    if (scala_vars postfix.scala)
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    53
    then
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    54
	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    55
	tsts=$(( 1 ))
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    56
    else
352
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 346
diff changeset
    57
	echo -e "  --> passed" >> $out
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    58
	tsts=$(( 0 )) 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    59
    fi
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
### postfix tests
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    65
if [ $tsts -eq 0 ]
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
then
250
1b08b8ac13fd updated
Christian Urban <urbanc@in.tum.de>
parents: 249
diff changeset
    67
  echo -e " syard(split(\"3 + 4 * ( 2 - 1 )\")) == List(\"3\", \"4\", \"2\", \"1\", \"-\", \"\*\", \"+\")" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  echo -e " syard(split(\"( ( ( 3 ) ) + ( ( 4 + ( 5 ) ) ) )\")) == List(\"3\", \"4\", \"5\", \"+\", \"+\")" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
  echo -e " syard(split(\"5 + 7 / 2\")) == List(\"5\", \"7\", \"2\", \"/\", \"+\")" >> $out
250
1b08b8ac13fd updated
Christian Urban <urbanc@in.tum.de>
parents: 249
diff changeset
    70
  echo -e " syard(split(\"5 * 7 / 2\")) == List(\"5\", \"7\", \"\*\", \"2\", \"/\")" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
  
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  if (scala_assert "postfix.scala" "postfix_test7.scala")
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  then
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
    echo -e "  --> success" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  else
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
    echo -e "  --> \n ONE TEST FAILED\n" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
    82
if [ $tsts -eq 0 ]
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
then
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  echo -e " compute(syard(split(\"3 + 4 * ( 2 - 1 )\"))) == 7" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  echo -e " compute(syard(split(\"10 + 12 * 33\"))) == 406" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  echo -e " compute(syard(split(\"( 5 + 7 ) * 2\"))) == 24" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  echo -e " compute(syard(split(\"5 + 7 / 2\"))) == 8" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
  echo -e " compute(syard(split(\"5 * 7 / 2\"))) == 17" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  echo -e " compute(syard(split(\"9 + 24 / ( 7 - 3 )\"))) == 15" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  if (scala_assert "postfix.scala" "postfix_test8.scala")
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
  then
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
    echo -e "  --> success" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  else
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
    echo -e "  --> \n ONE TEST FAILED\n" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
300
72688efdf17c updated testing files
Christian Urban <urbanc@in.tum.de>
parents: 266
diff changeset
    99
echo -e "" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
### postfix2 tests
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   103
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   104
# compilation test
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   105
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   106
echo -e "postfix2.scala runs?" >> $out
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   107
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   108
if (scala_compile postfix2.scala)
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   109
then
352
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 346
diff changeset
   110
    echo -e "  --> passed" >> $out
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   111
    tsts1=$(( 0 ))
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   112
else
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   113
    echo -e "  --> SCALA DID NOT RUN postfix2.scala\n" >> $out
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   114
    tsts1=$(( 1 )) 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   115
fi
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   116
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   117
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
# var, return, ListBuffer test
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
#
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
echo -e "\n\npostfix2.scala does not contain vars, returns etc?" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   122
if [ $tsts1 -eq 0 ]
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
then
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   124
    if (scala_vars postfix2.scala)
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   125
    then
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   126
	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   127
	tsts1=$(( 1 ))
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   128
    else
352
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 346
diff changeset
   129
	echo -e "  --> passed" >> $out
346
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   130
	tsts1=$(( 0 )) 
663c2a9108d1 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 300
diff changeset
   131
    fi
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
if [ $tsts1 -eq 0 ]
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
then
250
1b08b8ac13fd updated
Christian Urban <urbanc@in.tum.de>
parents: 249
diff changeset
   137
  echo -e " syard(split(\"3 + 4 * ( 2 - 1 )\")) == List(\"3\", \"4\", \"2\", \"1\", \"-\", \"\*\", \"+\")" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  echo -e " syard(split(\"( ( ( 3 ) ) + ( ( 4 + ( 5 ) ) ) )\")) == List(\"3\", \"4\", \"5\", \"+\", \"+\")" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
  echo -e " syard(split(\"5 + 7 / 2\")) == List(\"5\", \"7\", \"2\", \"/\", \"+\")" >> $out
250
1b08b8ac13fd updated
Christian Urban <urbanc@in.tum.de>
parents: 249
diff changeset
   140
  echo -e " syard(split(\"5 * 7 / 2\")) == List(\"5\", \"7\", \"\*\", \"2\", \"/\")" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
  echo -e " syard(split(\"3 + 4 * 8 / ( 5 - 1 ) ^ 2 ^ 3\")) == " >> $out
250
1b08b8ac13fd updated
Christian Urban <urbanc@in.tum.de>
parents: 249
diff changeset
   142
  echo -e "         List(\"3\", \"4\", \"8\", \"\*\", \"5\", \"1\", \"-\", \"2\", \"3\", \"^\", \"^\", \"/\", \"+\")" >> $out
249
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
  echo -e " " >> $out 
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
  echo -e " compute(syard(split(\"3 + 4 * ( 2 - 1 )\"))) == 7" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
  echo -e " compute(syard(split(\"10 + 12 * 33\"))) == 406" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
  echo -e " compute(syard(split(\"( 5 + 7 ) * 2\"))) == 24" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  echo -e " compute(syard(split(\"5 + 7 / 2\"))) == 8" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
  echo -e " compute(syard(split(\"5 * 7 / 2\"))) == 17" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
  echo -e " compute(syard(split(\"9 + 24 / ( 7 - 3 )\"))) == 15" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  echo -e " compute(syard(split(\"4 ^ 3 ^ 2\"))) == 262144" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  echo -e " compute(syard(split(\"4 ^ ( 3 ^ 2 )\"))) == 262144" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
  echo -e " compute(syard(split(\"( 4 ^ 3 ) ^ 2\"))) == 4096" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
  echo -e " compute(syard(split(\"( 3 + 1 ) ^ 2 ^ 3\"))) == 65536" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  if (scala_assert "postfix2.scala" "postfix_test9.scala")
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
  then
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
    echo -e "  --> success" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
  else
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
    echo -e "  --> \n ONE TEST FAILED\n" >> $out
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
  fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
fi
1997cfcd6334 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162