From d1b350f6ec820dd29a9906a9fb308fb711aaec69 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Thu, 24 Oct 2024 13:36:22 +0100 Subject: [PATCH] Create test script and run from entr.sh --- scripts/entr.sh | 2 +- scripts/test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 scripts/test.sh diff --git a/scripts/entr.sh b/scripts/entr.sh index f506c10..6f654c5 100644 --- a/scripts/entr.sh +++ b/scripts/entr.sh @@ -1,3 +1,3 @@ cd "$(git rev-parse --show-toplevel)" find . -not \( -path build -prune \) \ - | entr -s 'clear && sh scripts/build.sh' + | entr -s 'clear && sh scripts/build.sh && sh scripts/test.sh' diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100644 index 0000000..5723764 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,2 @@ +cd "$(git rev-parse --show-toplevel)" +echo ":: Reader tests ::" && build/reader_tests