diff --git a/test.sh b/test.sh index 3d68585..c4f3cac 100755 --- a/test.sh +++ b/test.sh @@ -25,11 +25,20 @@ run_solution() { fi } +shopt -s dotglob + for day in day*; do input=data/$day.input expected=data/$day.expected for solution in "$day"/*; do echo -n "$solution... " + + case "${solution##*/}" in + example.txt|.*) + echo SKIP + continue + esac + solution_output=$(mktemp) trap "rm -f '$solution_output'" EXIT run_solution "$solution" > "$solution_output"