Makefile revision 126667
1290650Shselasky# @(#)Makefile 8.1 (Berkeley) 5/31/93 2290650Shselasky# $FreeBSD: head/bin/dd/Makefile 126667 2004-03-05 19:35:51Z phk $ 3290650Shselasky 4290650ShselaskyPROG= dd 5290650ShselaskySRCS= args.c conv.c conv_tab.c dd.c misc.c position.c 6290650Shselasky 7290650ShselaskyMAINTAINER= green@FreeBSD.org 8290650Shselasky 9290650Shselasky.include <bsd.prog.mk> 10290650Shselasky 11290650Shselasky# 12290650Shselasky# Test the character conversion functions. We have to be explicit about 13290650Shselasky# which LC_LANG we use because the definition of upper and lower case 14290650Shselasky# depends on it. 15290650Shselaskytest: ${PROG} 16290650Shselasky cc ${.CURDIR}/gen.c 17290650Shselasky.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \ 18290650Shselasky pareven parnone parodd parset \ 19290650Shselasky swab lcase ucase 20290650Shselasky @echo testing conv=${conv} 21290650Shselasky @./a.out | \ 22290650Shselasky /usr/bin/env -i LC_CTYPE=ASCII ./dd conv=${conv} 2>/dev/null | \ 23290650Shselasky /usr/bin/env -i LC_CTYPE=ASCII hexdump -C | \ 24290650Shselasky diff -IFreeBSD - ${.CURDIR}/ref.${conv} 25290650Shselasky.endfor 26290650Shselasky