#!/bin/sh
###set -e
trap "exit" INT
files=${1:-assignment20186-*}
for sd in $files; do
cd $sd
echo $sd
touch .
cp ../../../marking1/*.sh .
cp ../../../marking1/collatz_test1.scala .
cp ../../../marking1/collatz_test2.scala .
cp ../../../marking1/drumb_test1.scala .
cp ../../../marking1/drumb_test2.scala .
cp ../../../marking1/drumb_test3.scala .
cp ../../../marking1/*.csv .
./collatz_test.sh output
./drumb_test.sh output
rm *.sh
rm collatz_test1.scala
rm collatz_test2.scala
rm drumb_test1.scala
rm drumb_test2.scala
rm drumb_test3.scala
rm *.csv
cd ..
done