From 7397af60fbc8642c3a91b79ae362d6547c8c4e84 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Wed, 14 Jun 2023 13:39:50 +0200 Subject: [PATCH 1/2] add unit test to gitignore Signed-off-by: Jean-Pierre De Jesus DIAZ --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3017290..044f524 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ toml_cat toml_json toml_sample +unittest/t1 # Debug files *.dSYM/ From 2dfeb45b6d90325a1301ebaeb16c26cd67f2d107 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Wed, 14 Jun 2023 13:40:12 +0200 Subject: [PATCH 2/2] add check target to Makefile Signed-off-by: Jean-Pierre De Jesus DIAZ --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 599f7db..9431256 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,10 @@ libtoml.so.$(LIB_VERSION): toml.o $(EXEC): $(LIB) +check: + make -C unittest + ./unittest/t1 + install: all install -d ${prefix}/include ${prefix}/lib install toml.h ${prefix}/include