From 0f29ac59c2bf0e5eafc2a6fa436e3070085e3a1d Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Sun, 10 Mar 2024 19:58:50 +0100 Subject: improvde tests --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 718e966..10adf28 100644 --- a/Makefile +++ b/Makefile @@ -7,21 +7,25 @@ all: pdf test test: $(TESTS:.test=.ok) -clean: +clean: cleanpdf cleantest + +cleanpdf: latexmk -c tcr rm -f *.thm + +cleantest: rm -f $(TESTS) $(TESTS:.test=.ok) %.ok: %.test timeout -v 1 ./$< @touch $@ -%.test: %.cpp - g++ -std=gnu++20 -Wall -Wextra -Wpedantic -Werror \ +%.test: %.cpp test.h + g++ -include test.h -std=gnu++20 -Wall -Wextra -Wpedantic -Werror \ -fsanitize=address,undefined -g -o $@ $< graph/test/binary_lifting.test: graph/test/binary_lifting.cpp \ - graph/binary_lifting.cpp + graph/binary_lifting.cpp graph/test/util.cpp graph/test/LCA_sparse.test: graph/test/LCA_sparse.cpp \ - graph/LCA_sparse.cpp datastructures/sparseTable.cpp + graph/LCA_sparse.cpp datastructures/sparseTable.cpp graph/test/util.cpp -.PHONY: all pdf test clean +.PHONY: all pdf test clean cleanpdf cleantest -- cgit v1.2.3