From c9f0de12be31eea463bf022f3eee76490b30f8dc Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 24 Jan 2020 05:15:35 +0000 Subject: Initial commit --- test/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/Makefile (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..6605f50 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,23 @@ +CFLAGS = -Werror -Wall -Wextra -Wpedantic -std=c89 -ggdb3 -O1 -L.. -I.. +LDLIBS = -lpthread -lparapat +OUTPUT_OPTION := -MMD -MP $(OUTPUT_OPTION) +TRGT = farm-tests pipeline-tests fib + +LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(PWD)/.. + +.PHONY: default test clean + +default: test + +test: test.time + +%-tests: ../libparapat.so + +test.time: $(TRGT) + for x in $(TRGT) ; do ./$$x ; done + touch test.time + +clean: + $(RM) *.d *.o $(TRGT) + +-include $(wildcard *.d) -- cgit v1.2.1