bf233cc247
Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as bin/dd/tests Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used in validating the characters read from /dev/zero Sponsored by: EMC / Isilon Storage Division
34 lines
736 B
Makefile
34 lines
736 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
|
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= dd
|
|
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
|
|
|
#
|
|
# Test the character conversion functions. We have to be explicit about
|
|
# which LC_LANG we use because the definition of upper and lower case
|
|
# depends on it.
|
|
#
|
|
|
|
CLEANFILES= gen
|
|
|
|
test: ${PROG} gen
|
|
.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \
|
|
pareven parnone parodd parset \
|
|
swab lcase ucase
|
|
@${ECHO} testing conv=${conv}
|
|
@./gen | \
|
|
LC_ALL=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \
|
|
LC_ALL=en_US.US-ASCII hexdump -C | \
|
|
diff -I FreeBSD - ${.CURDIR}/ref.${conv}
|
|
.endfor
|
|
@rm -f gen
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|