From 73cbd0758c86a2642837d8c4c4561873972ee574 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test.sh b/test.sh index be01a51..afd0c18 100755 --- a/test.sh +++ b/test.sh @@ -27,6 +27,8 @@ run_solution() { fi } +shopt -s dotglob + for n in $(seq 1 25); do input=$YEAR/data/day$n.input expected=$YEAR/data/day$n.expected @@ -34,6 +36,12 @@ for n in $(seq 1 25); do for solution in "$YEAR/day$n"/*; do echo -n "$solution... " + case "${solution##*/}" in + example.txt) + echo SKIP + continue + esac + solution_output=$(mktemp) trap "rm -f '$solution_output'" EXIT