Makefile revision 126667
11556Srgrimes#	@(#)Makefile	8.1 (Berkeley) 5/31/93
250471Speter# $FreeBSD: head/bin/dd/Makefile 126667 2004-03-05 19:35:51Z phk $
31556Srgrimes
41556SrgrimesPROG=	dd
51556SrgrimesSRCS=	args.c conv.c conv_tab.c dd.c misc.c position.c
61556Srgrimes
754245SgreenMAINTAINER=	green@FreeBSD.org
854245Sgreen
91556Srgrimes.include <bsd.prog.mk>
10126666Sphk
11126666Sphk#
12126666Sphk# Test the character conversion functions.  We have to be explicit about
13126666Sphk# which LC_LANG we use because the definition of upper and lower case
14126666Sphk# depends on it.
15126666Sphktest:	${PROG}
16126666Sphk	cc ${.CURDIR}/gen.c
17126666Sphk.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \
18126667Sphk    pareven parnone parodd parset \
19126666Sphk    swab lcase ucase
20126666Sphk	@echo testing conv=${conv}
21126666Sphk	@./a.out | \
22126666Sphk	  /usr/bin/env -i LC_CTYPE=ASCII ./dd conv=${conv} 2>/dev/null | \
23126666Sphk	  /usr/bin/env -i LC_CTYPE=ASCII hexdump -C | \
24126666Sphk	  diff -IFreeBSD - ${.CURDIR}/ref.${conv}
25126666Sphk.endfor
26