From 4a4e956c26d2f73534e504c36e2ca6a2617644b8 Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Sun, 13 Oct 2024 19:57:49 -0300 Subject: adding tests for the main library --- test/Makefile.am | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/Makefile.am (limited to 'test/Makefile.am') diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 0000000..4800141 --- /dev/null +++ b/test/Makefile.am @@ -0,0 +1,33 @@ +check_PROGRAMS = +TESTS = +check_HEADERS = test.h + +if TESTS + +if ITCTEST +check_PROGRAMS += test_itc +if VALGRIND +TESTS += test_itc_valgrind +else +TESTS += test_itc +endif +test_itc_SOURCES = test_itc.c test.h +test_itc_LDADD = ../src/libtuberia.a +test_itc_LDFLAGS = -lpthread +endif + +if TUBERIATEST +check_PROGRAMS += test_tuberia +if VALGRIND +TESTS += test_tuberia_valgrind +else +TESTS += test_tuberia +endif + +test_tuberia_SOURCES = test_tuberia.c test.h +test_tuberia_LDADD = ../src/libtuberia.a +test_tuberia_LDFLAGS = -lpthread +endif + +endif + -- cgit v1.2.3