Link in NetBSD's unifdef(1) tests

Skip one, is it currently fails.
This commit is contained in:
cem 2019-11-18 04:03:11 +00:00
parent 0ab69270f3
commit 6bdf20c3a4
4 changed files with 23 additions and 0 deletions

View File

@ -51,6 +51,10 @@ lastline_body() {
printf '#ifdef foo\n#endif\n' >input
atf_check -o file:input unifdef -Ubar input
# Begin FreeBSD
atf_skip "our version doesn't have this behavior"
# Endif
# Without newline after cpp directive
printf '#ifdef foo\n#endif' >input
atf_check -o file:input unifdef -Ubar input

View File

@ -1064,6 +1064,8 @@
..
uuencode
..
unifdef
..
uniq
..
vmstat

View File

@ -1,8 +1,13 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
.include <src.opts.mk>
PROG= unifdef
SCRIPTS=unifdefall.sh
MLINKS= unifdef.1 unifdefall.1
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -0,0 +1,12 @@
# $FreeBSD$
PACKAGE= tests
NETBSD_ATF_TESTS_SH= basic_test
${PACKAGE}FILES+= d_basic.in
${PACKAGE}FILES+= d_basic.out
.include <netbsd-tests.test.mk>
.include <bsd.test.mk>