11556Srgrimes#	@(#)Makefile	8.1 (Berkeley) 5/31/93
250471Speter# $FreeBSD$
31556Srgrimes
41556SrgrimesPROG=	dd
51556SrgrimesSRCS=	args.c conv.c conv_tab.c dd.c misc.c position.c
61556Srgrimes
7126666Sphk#
8126666Sphk# Test the character conversion functions.  We have to be explicit about
9126666Sphk# which LC_LANG we use because the definition of upper and lower case
10126666Sphk# depends on it.
11128048Snjl#
12128048Snjl
13128048SnjlCLEANFILES=	gen
14128048Snjl
15128048Snjltest: ${PROG} gen
16126666Sphk.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \
17126667Sphk    pareven parnone parodd parset \
18126666Sphk    swab lcase ucase
19128048Snjl	@${ECHO} testing conv=${conv}
20128048Snjl	@./gen | \
21128048Snjl	    LC_ALL=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \
22128048Snjl	    LC_ALL=en_US.US-ASCII hexdump -C | \
23128048Snjl	    diff -I FreeBSD - ${.CURDIR}/ref.${conv}
24126666Sphk.endfor
25128048Snjl	@rm -f gen
26128048Snjl
27128048Snjl.include <bsd.prog.mk>
28