diff options
author | phk <phk@FreeBSD.org> | 2004-03-05 19:30:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-05 19:30:13 +0000 |
commit | 99a4684d724673ae90d63adc80a14fa2b42d2bb5 (patch) | |
tree | 34855761f9af2dd7f63813acf1f8656091d2417c /bin/dd/Makefile | |
parent | 702f89fc5dbe8535fbcdb4944f08a5135c5fa9a6 (diff) | |
download | FreeBSD-src-99a4684d724673ae90d63adc80a14fa2b42d2bb5.zip FreeBSD-src-99a4684d724673ae90d63adc80a14fa2b42d2bb5.tar.gz |
Add a test-target and reference vectors for the character converions.
Diffstat (limited to 'bin/dd/Makefile')
-rw-r--r-- | bin/dd/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/dd/Makefile b/bin/dd/Makefile index 0cbd238..ab33aed 100644 --- a/bin/dd/Makefile +++ b/bin/dd/Makefile @@ -7,3 +7,18 @@ SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c MAINTAINER= green@FreeBSD.org .include <bsd.prog.mk> + +# +# 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. +test: ${PROG} + cc ${.CURDIR}/gen.c +.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \ + swab lcase ucase + @echo testing conv=${conv} + @./a.out | \ + /usr/bin/env -i LC_CTYPE=ASCII ./dd conv=${conv} 2>/dev/null | \ + /usr/bin/env -i LC_CTYPE=ASCII hexdump -C | \ + diff -IFreeBSD - ${.CURDIR}/ref.${conv} +.endfor |