From 533619c27d9cc3919bed540ea7f04bebddc71cbe Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 29 Nov 2022 21:02:16 +0100 Subject: Add first unit test This should kick off the infrastructure for unit tests. This can still be improved but getting started is important to make it easier to add unit tests and thus improving the quality. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 18bde1e..f692264 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,16 @@ .PHONY: all clean -all: build +all: build/limox build/tests/get_domainpart + ./build/tests/get_domainpart + +build/limox: build gcc main.c gui.c xmpp.c -o build/limox -lSDL2 +build/tests/get_domainpart: build + gcc tests/get_domainpart.c xmpp.c -o build/tests/get_domainpart -I. + build: - mkdir -p build + mkdir -p build/tests clean: rm -rf build -- cgit v1.2.3-70-g09d2