]> git.llucax.com Git - software/eventxx.git/blobdiff - test/Makefile
Fix an implicit cast from const char* (string literal) to char*.
[software/eventxx.git] / test / Makefile
index 091143aeb5106609b6d363af276e0d56606fccf0..9af1fed60c22f86ab263538df85e44252ab01e6d 100644 (file)
@@ -1,12 +1,8 @@
 
 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_BASE_FREE_FIX
-
-# Don't warn me about memory leaks
-CXXFLAGS+=-DEVENTXX_NO_WARNING
+# Uncomment this if you have a libevent version previous to 1.3b.
+#CXXFLAGS+=-DEVENTXX_NO_EVENT_BASE_FREE
 
 LDFLAGS=-levent
 
@@ -15,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)