MFC r274138,r274149:

r274138 (by des):

Hook up OpenPAM's own unit tests to the build.

r274149 (by markj):

Create a directory for the PAM tests.
This commit is contained in:
Enji Cooper 2017-02-09 22:14:17 +00:00
parent 427e964177
commit 1778100f64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=313487
3 changed files with 25 additions and 0 deletions

View File

@ -310,6 +310,8 @@
..
libnv
..
libpam
..
librt
..
libthr

View File

@ -198,4 +198,8 @@ DPSRCS= openpam_static.c
INCS= ${HEADERS} ${ADD_HEADERS}
INCSDIR= ${INCLUDEDIR}/security
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
.include <bsd.lib.mk>

View File

@ -0,0 +1,19 @@
# $FreeBSD$
OPENPAM = ${.CURDIR}/../../../../contrib/openpam
.PATH: ${OPENPAM}/t
TESTSDIR = ${TESTSBASE}/lib/libpam
COMMONSRC = t_file.c t_main.c
.for test in t_openpam_ctype t_openpam_readlinev t_openpam_readword
TAP_TESTS_C += ${test}
SRCS.${test} = ${test}.c ${COMMONSRC}
.endfor
CFLAGS +=-I${OPENPAM}/include -I${OPENPAM}/lib/libpam -I${OPENPAM}/t
WARNS ?= 6
DPADD = ${LIBPAM}
LDADD = ${MINUSLPAM}
.include <bsd.test.mk>