From 90c6ad5f8759f91e70d659f2842cd63a3e5e665f Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sun, 26 Mar 2023 19:49:08 -0600 Subject: [PATCH] test: use make to run the tests Signed-off-by: Felipe Contreras --- .github/workflows/main.yml | 2 +- t/Makefile | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 t/Makefile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd1b98c..e4d1217 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,4 +18,4 @@ jobs: submodules: 'recursive' - name: Run tests - run: ./run-tests + run: make -C t diff --git a/t/Makefile b/t/Makefile new file mode 100644 index 0000000..0d2faad --- /dev/null +++ b/t/Makefile @@ -0,0 +1,12 @@ +T = $(wildcard *.t) + +test: $(T) + @$(MAKE) --silent clean + +$(T): clean + ./$@ $(TEST_OPTS) + +clean: + @rm -fr test-results + +.PHONY: test $(T) clean