[Midnightbsd-cvs] src [10638] trunk/lib/libthr/tests: add tests

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jun 9 12:47:03 EDT 2018


Revision: 10638
          http://svnweb.midnightbsd.org/src/?rev=10638
Author:   laffer1
Date:     2018-06-09 12:47:03 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
add tests

Added Paths:
-----------
    trunk/lib/libthr/tests/
    trunk/lib/libthr/tests/Makefile
    trunk/lib/libthr/tests/dlopen/
    trunk/lib/libthr/tests/dlopen/Makefile
    trunk/lib/libthr/tests/dlopen/dso/
    trunk/lib/libthr/tests/dlopen/dso/Makefile

Added: trunk/lib/libthr/tests/Makefile
===================================================================
--- trunk/lib/libthr/tests/Makefile	                        (rev 0)
+++ trunk/lib/libthr/tests/Makefile	2018-06-09 16:47:03 UTC (rev 10638)
@@ -0,0 +1,56 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/lib/libthr/tests/Makefile 313535 2017-02-10 07:13:16Z ngie $
+
+TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread
+
+# TODO: t_name (missing pthread_getname_np support in FreeBSD)
+NETBSD_ATF_TESTS_C=	barrier_test
+NETBSD_ATF_TESTS_C+=	cond_test
+NETBSD_ATF_TESTS_C+=	condwait_test
+NETBSD_ATF_TESTS_C+=	detach_test
+NETBSD_ATF_TESTS_C+=	equal_test
+NETBSD_ATF_TESTS_C+=	fork_test
+NETBSD_ATF_TESTS_C+=	fpu_test
+NETBSD_ATF_TESTS_C+=	join_test
+NETBSD_ATF_TESTS_C+=	kill_test
+NETBSD_ATF_TESTS_C+=	mutex_test
+NETBSD_ATF_TESTS_C+=	once_test
+NETBSD_ATF_TESTS_C+=	preempt_test
+NETBSD_ATF_TESTS_C+=	rwlock_test
+NETBSD_ATF_TESTS_C+=	sem_test
+NETBSD_ATF_TESTS_C+=	sigmask_test
+NETBSD_ATF_TESTS_C+=	sigsuspend_test
+NETBSD_ATF_TESTS_C+=	siglongjmp_test
+NETBSD_ATF_TESTS_C+=	sleep_test
+NETBSD_ATF_TESTS_C+=	swapcontext_test
+NETBSD_ATF_TESTS_C+=	timedmutex_test
+
+NETBSD_ATF_TESTS_SH=	atexit_test
+NETBSD_ATF_TESTS_SH+=	cancel_test
+NETBSD_ATF_TESTS_SH+=	exit_test
+NETBSD_ATF_TESTS_SH+=	resolv_test
+
+DPADD+=		${LIBPTHREAD}
+LDADD+=		-lpthread
+DPADD.fpu_test+=	${LIBM}
+LDADD.fpu_test+=	-lm
+DPADD.sem_test+=	${LIBRT}
+LDADD.sem_test+=	-lrt
+
+BINDIR=		${TESTSDIR}
+
+PROGS=		h_atexit
+PROGS+=		h_cancel
+PROGS+=		h_exit
+PROGS+=		h_resolv
+
+FILESDIR=	${TESTSDIR}
+FILES=		d_mach
+
+TESTS_SUBDIRS=		dlopen
+
+.include <netbsd-tests.test.mk>
+
+CFLAGS.condwait_test+=	-I${SRCTOP}/contrib/netbsd-tests/lib/libc/gen
+
+.include <bsd.test.mk>


Property changes on: trunk/lib/libthr/tests/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lib/libthr/tests/dlopen/Makefile
===================================================================
--- trunk/lib/libthr/tests/dlopen/Makefile	                        (rev 0)
+++ trunk/lib/libthr/tests/dlopen/Makefile	2018-06-09 16:47:03 UTC (rev 10638)
@@ -0,0 +1,29 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/lib/libthr/tests/dlopen/Makefile 313488 2017-02-09 22:49:48Z ngie $
+
+TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
+
+.include <bsd.own.mk>
+
+TESTSDIR=	${TESTSBASE}/lib/libthr/dlopen
+
+CFLAGS+=	-DTESTDIR=\"${TESTSDIR:Q}/\"
+LDFLAGS+=	-L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR}
+
+.if !defined(NO_PIC)
+SUBDIR+=	dso
+
+NETBSD_ATF_TESTS_C=	dlopen_test
+NETBSD_ATF_TESTS_C+=	main_pthread_create_test
+# XXX: this blocks running the testcase
+#NETBSD_ATF_TESTS_C+=	dso_pthread_create_test
+
+.for t in dlopen_test main_pthread_create_test
+DPADD.$t+=	${LIBPTHREAD}
+LDADD.$t+=	-lpthread
+.endfor
+.endif
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.test.mk>


Property changes on: trunk/lib/libthr/tests/dlopen/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lib/libthr/tests/dlopen/dso/Makefile
===================================================================
--- trunk/lib/libthr/tests/dlopen/dso/Makefile	                        (rev 0)
+++ trunk/lib/libthr/tests/dlopen/dso/Makefile	2018-06-09 16:47:03 UTC (rev 10638)
@@ -0,0 +1,18 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/lib/libthr/tests/dlopen/dso/Makefile 313488 2017-02-09 22:49:48Z ngie $
+
+TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen/dso
+
+SHLIB=		h_pthread_dlopen
+SHLIB_MAJOR=    1
+SHLIB_NAME=	h_pthread_dlopen.so.${SHLIB_MAJOR}
+SRCS=		h_pthread_dlopen.c
+
+DPADD+=		${LIBPTHREAD}
+LDADD+=		-lpthread
+
+LIBDIR=         ${TESTSBASE}/lib/libthr/dlopen
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.lib.mk>


Property changes on: trunk/lib/libthr/tests/dlopen/dso/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list