updated
authorChristian Urban <urbanc@in.tum.de>
Fri, 14 Dec 2018 20:01:49 +0000
changeset 246 178438912e5f
parent 245 975d34506e88
child 247 50a3b874008a
updated
marking4/compare
marking4/mk
marking4/re_test.sh
marking4/tails
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/marking4/compare	Fri Dec 14 20:01:49 2018 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+###set -e
+
+trap "exit" INT
+
+files=${1:-assignment20189-*}
+
+for sd in $files; do
+  cd $sd
+  cp output output1
+  #cmp -s output output1 > /dev/null
+  #if [ $? -eq 1 ]; then
+  #    echo $sd + "is different"
+  #fi
+  cd ..
+done
+
+
--- a/marking4/mk	Fri Dec 14 14:41:54 2018 +0000
+++ b/marking4/mk	Fri Dec 14 20:01:49 2018 +0000
@@ -3,7 +3,7 @@
 
 trap "exit" INT
 
-files=${1:-assignment20179-*}
+files=${1:-assignment20189-*}
 
 for sd in $files; do
   cd $sd
--- a/marking4/re_test.sh	Fri Dec 14 14:41:54 2018 +0000
+++ b/marking4/re_test.sh	Fri Dec 14 20:01:49 2018 +0000
@@ -26,7 +26,7 @@
 # functional tests
 
 function scala_assert {
-    (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "") # 2> /dev/null 1> /dev/null)
+    (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
 }
 
 function scala_assert_long {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/marking4/tails	Fri Dec 14 20:01:49 2018 +0000
@@ -0,0 +1,19 @@
+#!/bin/sh
+###set -e
+
+trap "exit" INT
+
+files=${1:-assignment20189-*}
+
+for sd in $files; do
+  cd $sd
+  #echo $sd
+  marksone=$(( `tail -1 output` ))
+  markstwo=$(( `tail -1 output1` ))
+  if [ "$marksone" != "$markstwo" ]; then
+      echo $sd + "is different"
+  fi
+  cd ..
+done
+
+