- Make -DINTREE works again.

- Compare test results with diff -w rather than cmp as we won't care about
  whitespace diffrences of df output.
This commit is contained in:
enami 2007-03-16 01:29:40 +00:00
parent f094fdf1e6
commit f1787e0a5d
1 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2004/07/27 01:50:35 enami Exp $
# $NetBSD: Makefile,v 1.4 2007/03/16 01:29:40 enami Exp $
NOMAN= # defined
@ -12,12 +12,13 @@ SRCS= df.c strpct.c getmntinfo.c
# Pass -DINTREE to make to test using humanize_number.c in source tree
# directly instead of the one in libc.
.if defined(INTREE)
.PATH: ${NETBSDSRCDIR}/lib/libc/gen
SRCS+= humanize_number.c
.PATH: ${NETBSDSRCDIR}/lib/libc/gen
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/include
SRCS+= humanize_number.c
.endif
regress:
env BLOCKSIZE=1k ./df | cmp ${.CURDIR}/df.out -
env BLOCKSIZE=1k ./df -h | cmp ${.CURDIR}/df-h.out -
env BLOCKSIZE=1k ./df | diff -w ${.CURDIR}/df.out -
env BLOCKSIZE=1k ./df -h | diff -w ${.CURDIR}/df-h.out -
.include <bsd.prog.mk>