From 34f37d60d974ea9d148d92ca35a4707ee22fdbb1 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 28 Aug 2024 20:56:29 +0100 Subject: [PATCH] missed adding this --- pkgs/anoia/run-tests.fnl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pkgs/anoia/run-tests.fnl diff --git a/pkgs/anoia/run-tests.fnl b/pkgs/anoia/run-tests.fnl new file mode 100644 index 0000000..a07a3d7 --- /dev/null +++ b/pkgs/anoia/run-tests.fnl @@ -0,0 +1,10 @@ +(local fennel (require :fennel)) +(local specials (require :fennel.specials)) + +(local compiler-env + (doto (. (specials.make-compiler-env) :_G) + (tset "RUNNING_TESTS" true))) + +(each [_ f (ipairs arg)] + (print :testing f) + (fennel.dofile f { :correlate true :compilerEnv compiler-env }))