X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/c91910cd7cf9a0fab1b015b67bc70e7468b9fa50..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/Makefile diff --git a/test/Makefile b/test/Makefile index 1519df2..9af1fed 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,8 +1,9 @@ CXXFLAGS=-I.. -g -Wall -# Uncomment this if you have a fixed event_base_free(). -# See http://www.mail-archive.com/libevent-users@monkey.org/msg00112.html -#CXXFLAGS+=-DEVENTXX_EVENT_BASE_FREE_FIX + +# Uncomment this if you have a libevent version previous to 1.3b. +#CXXFLAGS+=-DEVENTXX_NO_EVENT_BASE_FREE + LDFLAGS=-levent targets=bench test-eof test-time test-weof trivial c-way functor-way \ @@ -10,6 +11,17 @@ targets=bench test-eof test-time test-weof trivial c-way functor-way \ all: $(targets) +test: all + @echo Running tests... + @echo + @for f in $(targets); do \ + echo -------------------------------------------------------; \ + echo runnig $$f; \ + echo -------------------------------------------------------; \ + ./$$f; \ + echo; \ + done + clean: $(RM) -fv *.o $(targets)