diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-06-13 19:22:03 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-06-13 19:22:03 +0000 |
commit | 6bfcfea7e39cd699671c4953ebf4ce1c770fe56d (patch) | |
tree | 5963900b9b98966215ff590ad7e0a66d167f63eb /regress/bin/pax | |
parent | 3b001c40708727fc6f548326531a81ac09db2d5a (diff) |
Add regression test for writing old-style tar headers containing names
that completely fill the header field. WIth help from jaredy@
Diffstat (limited to 'regress/bin/pax')
-rw-r--r-- | regress/bin/pax/Makefile | 4 | ||||
-rw-r--r-- | regress/bin/pax/t4.out | 7 | ||||
-rw-r--r-- | regress/bin/pax/t4.sh | 19 |
3 files changed, 28 insertions, 2 deletions
diff --git a/regress/bin/pax/Makefile b/regress/bin/pax/Makefile index 7343a1733d6..3f90d56e9c6 100644 --- a/regress/bin/pax/Makefile +++ b/regress/bin/pax/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.3 2005/04/30 17:36:58 otto Exp $ +# $OpenBSD: Makefile,v 1.4 2005/06/13 19:22:02 otto Exp $ -TESTSCRIPTS=t1 t2 t3 +TESTSCRIPTS=t1 t2 t3 t4 .for t in ${TESTSCRIPTS} REGRESS_TARGETS+=t-${t} diff --git a/regress/bin/pax/t4.out b/regress/bin/pax/t4.out new file mode 100644 index 00000000000..85ed00bb9d0 --- /dev/null +++ b/regress/bin/pax/t4.out @@ -0,0 +1,7 @@ +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888/a +999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 +f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +f99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 +z +zz diff --git a/regress/bin/pax/t4.sh b/regress/bin/pax/t4.sh new file mode 100644 index 00000000000..f9a728c28ca --- /dev/null +++ b/regress/bin/pax/t4.sh @@ -0,0 +1,19 @@ +# $OpenBSD: t4.sh,v 1.1 2005/06/13 19:22:02 otto Exp $ +# Test extraction and building of old style tar archives +# +CUR=$1 +mkdir -p t4 && cd t4 +uudecode -p << 'EOF' | tar -zx -f - +begin 644 t4.tar.gz +M'XL("&2>@T(``W0T9VYU+G1A<@#MULT-@S`,AN&,P@;8^2%TG%X8HM,W`7$G +MB+A*]3X7"P4).5\,K&MOLY,BIU2KYB3[M:@>]>!4?(AY"2%Y)UZRBIN2&\C9 +MR%D'T3W^=7[7_5ABO)1_N7//OQR7Z==[TV30_%_]S4WSG^O\J\;$_%O8Q$;3 +M_&L.,3#_%K;^\^^:\_<JD?>_B8_!,V[D'WSY_U.+P_EDDR/F;W``VO,ORWO^ +>U[\OMSW9Y(#Y`P``````````X+]\`:H?&NT`*``` +` +end +EOF +tar -cO -f - * | tar -tf - | cmp -s $CUR/t4.out - +ret=$? +cd .. && rm -rf t4 +exit $ret |