marking3/mk-advanced
changeset 332 703c7e42bf46
parent 258 ebe71908b13e
equal deleted inserted replaced
331:e3878cdd38bc 332:703c7e42bf46
     1 #!/bin/sh
     1 #!/bin/sh
     2 ###set -e
     2 ###set -e
     3 
     3 
     4 trap "exit" INT
     4 trap "exit" INT
     5 
     5 
     6 files=${1:-assignment20188-*}
     6 files=${1:-assignment2019scala-*/Part8}
     7 
     7 
     8 for sd in $files; do
     8 for sd in $files; do
     9   cd $sd
     9   cd $sd
    10   echo $sd
    10   echo $sd
       
    11   sleep 5
    11   touch .
    12   touch .
    12   cp ../../../marking3/knight3_test.sh .
    13   cp ../../../../../marking3/knight2_test.sh .
    13   cp ../../../marking3/knight_test6.scala .
    14   cp ../../../../../marking3/knight1_test4.scala .
    14   cp ../../../marking3/knight_test7.scala .
    15   cp ../../../../../marking3/knight1_test5.scala .
    15   cp ../../../marking3/knight_test8.scala .
    16   cp ../../../../../marking3/knight2_test6.scala .
    16   cp ../../../marking3/knight_test9.scala .
    17   cp ../../../../../marking3/knight2_test7.scala .
    17   ./knight3_test.sh output
    18   cp ../../../../../marking3/knight2_test8.scala .
    18   rm knight3_test.sh
    19   cp ../../../../../marking3/knight3_test9.scala .
    19   rm knight_test6.scala
    20   ./knight2_test.sh output
    20   rm knight_test7.scala
    21   rm knight2_test.sh
    21   rm knight_test8.scala
    22   rm knight1_test4.scala
    22   rm knight_test9.scala
    23   rm knight1_test5.scala
       
    24   rm knight2_test6.scala
       
    25   rm knight2_test7.scala
       
    26   rm knight2_test8.scala
       
    27   rm knight3_test9.scala
       
    28   cd ..
    23   cd ..
    29   cd ..
    24 done
    30 done
    25 
    31 
    26 
    32