3 # Copyright (C) 2000 Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 Executables (autoheader, autoupdate...)
26 AT_SETUP([dd's skip, seek, and conv=notrunc options])
30 AT_DATA(out, [[abcdefghijklmnop
33 AT_CHECK([dd bs=1 skip=1 seek=2 conv=notrunc count=3 if=in of=out], 0, [],
37 AT_CHECK([cat out], 0, [ab234fghijklmnop
40 AT_CHECK([dd bskip=5 bseek=9 conv=notrunc count=1 if=in of=out], 0, [],
44 AT_CHECK([cat out], 0, [ab234fghi*7
51 # ======================================================
53 AT_SETUP([dd's new bskip and bseek options])
60 AT_CHECK([dd bskip=1 bseek=2 count=1 if=in of=out], 0, [],
64 AT_CHECK([cat out], 0, [ab*3