mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
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:
parent
427e964177
commit
1778100f64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=313487
@ -310,6 +310,8 @@
|
||||
..
|
||||
libnv
|
||||
..
|
||||
libpam
|
||||
..
|
||||
librt
|
||||
..
|
||||
libthr
|
||||
|
@ -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>
|
||||
|
19
lib/libpam/libpam/tests/Makefile
Normal file
19
lib/libpam/libpam/tests/Makefile
Normal 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>
|
Loading…
Reference in New Issue
Block a user