diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-25 14:24:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-25 14:24:52 +0000 |
commit | 89499f2124c13b9e85808f35f529a75427322d24 (patch) | |
tree | d298646a728dd3d1c431f4be98c691176817bf13 | |
parent | e3db837339959358ec5c8cb521ccac9ce09e1001 (diff) | |
download | coreutils-89499f2124c13b9e85808f35f529a75427322d24.tar.xz |
*** empty log message ***
-rw-r--r-- | tests/general/dd.at | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/general/dd.at b/tests/general/dd.at new file mode 100644 index 000000000..3be256cab --- /dev/null +++ b/tests/general/dd.at @@ -0,0 +1,50 @@ +# -*- autoconf -*- + +cat <<EOF + +Executables (autoheader, autoupdate...) + +EOF + +AT_SETUP([dd's skip, seek, and conv=notrunc options]) + +AT_DATA(in, [[12345*7 +]]) +AT_DATA(out, [[abcdefghijklmnop +]]) + +AT_CHECK([dd bs=1 skip=1 seek=2 conv=notrunc count=3 if=in of=out], 0, [], +[3+0 records in +3+0 records out +]) +AT_CHECK([cat out], 0, [ab234fghijklmnop +]) + +AT_CHECK([dd bskip=5 bseek=9 conv=notrunc count=1 if=in of=out], 0, [], +[0+1 records in +0+1 records out +]) +AT_CHECK([cat out], 0, [ab234fghi*7 +mnop +]) + +AT_CLEANUP + + +# ====================================================== +AT_SETUP([dd]) +AT_SETUP([dd's new bskip and bseek options]) + +AT_DATA(in, [[1*3 +]]) +AT_DATA(out, [[abcde +]]) + +AT_CHECK([dd bskip=1 bseek=2 count=1 if=in of=out], 0, [], +[0+1 records in +0+1 records out +]) +AT_CHECK([cat out], 0, [ab*3 +]) + +AT_CLEANUP |