From 3377b056df2d2bac19ab228a6ef656ef2772f2f4 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Sat, 17 Oct 2020 01:14:57 +0200 Subject: [PATCH] Added tests to CI --- .github/workflows/test-build.yml | 2 +- src/create_makefile.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 7d22a09..d616b1e 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -16,4 +16,4 @@ jobs: - name: install dependencies run: sudo apt-get install emacs - name: make - run: make -C src/ + run: make -C src/ test diff --git a/src/create_makefile.sh b/src/create_makefile.sh index 7562bba..08fa2b5 100755 --- a/src/create_makefile.sh +++ b/src/create_makefile.sh @@ -67,6 +67,7 @@ test_%: test_%.c -I../munit/ ../munit/munit.c test_\$*.c -lqmckl -o test_\$* test: libqmckl.so \$(TESTS) + for i in \$(TESTS) ; do ./\$\$i ; done .PHONY: test EOF