Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libevent Add new tests sources for event2.
details: https://anonhg.NetBSD.org/src/rev/a317b7a4c570
branches: trunk
changeset: 786018:a317b7a4c570
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 11 17:00:12 2013 +0000
description:
Add new tests sources for event2.
diffstat:
tests/lib/libevent/Makefile | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diffs (43 lines):
diff -r 877f560bb06c -r a317b7a4c570 tests/lib/libevent/Makefile
--- a/tests/lib/libevent/Makefile Thu Apr 11 16:59:16 2013 +0000
+++ b/tests/lib/libevent/Makefile Thu Apr 11 17:00:12 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2009/11/02 10:15:45 plunky Exp $
+# $NetBSD: Makefile,v 1.2 2013/04/11 17:00:12 christos Exp $
TESTSDIR= ${TESTSBASE}/lib/libevent
@@ -7,20 +7,25 @@
.include <bsd.own.mk>
.include <../../../external/bsd/libevent/Makefile.inc>
-.PATH: ${LIBEVENT_DIR}/dist/test
+.PATH: ${LIBEVENT_DIST}/test
BINDIR= ${TESTSDIR}
PROG= h_event
MAN= # defined
SRCS= regress.c regress.gen.c regress_dns.c regress_http.c \
- regress_rpc.c
+ regress_rpc.c regress_main.c tinytest.c regress_testutils.c \
+ regress_minheap.c regress_util.c regress_thread.c \
+ regress_buffer.c regress_bufferevent.c regress_listener.c \
+ regress_zlib.c regress_et.c
-DPADD+= ${LIBEVENT}
-LDADD+= -levent
-
-CPPFLAGS.regress.c+= -Wno-cast-qual -Wno-sign-compare -Wno-shadow
-CPPFLAGS.regress_http.c+= -Wno-cast-qual -Wno-sign-compare -Wno-shadow
-CPPFLAGS.regress_rpc.c+= -Wno-cast-qual -Wno-shadow
+.if ${MKCRYPTO} == "yes"
+SRCS+= regress_ssl.c
+DPADD+= ${LIBEVENT_OPENSSL} ${LIBSSL} ${LIBCRYPTO}
+LDADD+= -levent_openssl -lssl -lcrypto
+CPPFLAGS+= -DLIBEVENT_CRYPTO
+.endif
+DPADD+= ${LIBEVENT} ${LIBEVENT_PTHREADS} ${LIBZ} ${LIBPTHREAD}
+LDADD+= -levent_pthreads -levent -lz -lpthread
.include <bsd.test.mk>
Home |
Main Index |
Thread Index |
Old Index