From d9fcfcba9ff2aeaa5ee69429f0f0a24faed1bc52 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 10 Dec 2020 19:20:56 +0100 Subject: [PATCH] test.sh: skip hidden files and example.txt --- test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test.sh b/test.sh index e9a6f29..7027696 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"