summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-07-05 13:57:49 -0600
committermo khan <mo.khan@gmail.com>2020-07-05 13:57:49 -0600
commitc42e9f9fe8c96677452ce4549b219aa6a5a17383 (patch)
tree868b0ba10027b23b8e44f705bcec852e924b413d
parentf2162bbaa853a0af7766e60efdc7e935fd28720b (diff)
Add targets to run all tests
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2954da2..327492c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,11 @@
+SHELL := /bin/bash
+objects := $(shell find src -mindepth 2 -maxdepth 2 -type d)
+
+run :
+ for i in $(objects); do cd $$i && make run && cd -; done
+
+test :
+ for i in $(objects); do cd $$i && make run_test && cd -; done
+
fmt :
clang-format -i src/**/**/*.c