From c0bfe8e36b53fd5e01601a344b89bcec54484f77 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Sat, 5 Dec 2020 15:04:12 +0100 Subject: [PATCH] allow creation of run in prepare and clean --- benchmark | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/benchmark b/benchmark index 7050750..8b06e97 100755 --- a/benchmark +++ b/benchmark @@ -4,11 +4,16 @@ part="$2" inputfile="../inputs/$day-input" [ -x "prepare" ] || exit 0 -[ -x "run" ] || exit 0 if ! ./prepare "$day" "$part" "$inputfile"; then echo 'eh ge hebt precies niet alles geïnstalleerd staan' exit fi +[ -x "run" ] || exit 0 + hyperfine "./run '$day' '$part' '$inputfile'" + +if [ -x "clean" ]; then + ./clean +fi