#!/bin/bash
export TestRoot=`pwd`/TestCaseSetSelection/
export ProblemsRoot=`pwd`/sources/
for problem in `ls $ProblemsRoot`
do
  for method in `ls $ProblemsRoot/$problem`
  do
    for result in `ls $ProblemsRoot/$problem/$method`
    do
      echo ${ProblemsRoot}${problem}/${method}/${result}
      java -jar ${TestRoot}compiled/TestCaseSetSelection.jar \
      ${ProblemsRoot}${problem}/${method}/${result} ';' \
      true 10 | grep "Test Cases:" | cut -d':' -f2 > testcases.txt
    done
  done
done
#!/bin/bash
export TestRoot=`pwd`/TestCaseSetSelection/
export ProblemsRoot=`pwd`/sources/
for problem in `ls $ProblemsRoot`
do
  for method in `ls $ProblemsRoot/$problem`
  do
    for result in `ls $ProblemsRoot/$problem/$method`
    do
      echo ${ProblemsRoot}${problem}/${method}/${result}
      java -jar ${TestRoot}compiled/TestCaseSetSelection.jar \
      ${ProblemsRoot}${problem}/${method}/${result} ';' \
      true 10 | grep "Test Cases:" | cut -d':' -f2 > ${ProblemsRoot}${problem}/${method}/testcases_${result}
    done
  done
done
Write test_cases to its problems roots
Write test_cases to its problems roots

Signed-off-by: Alan Peterson Carvalho Silva <0cbe4bec2de12d32e3201302395f4ec6001a8a78@gmail.com>
