diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-30 17:36:59 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-30 17:36:59 +0000 |
commit | 1e847c284b019337949c054c2c9260469e06ce5f (patch) | |
tree | 0fe5f8012ae3c6cae032d694b3561b17753dfbc2 | |
parent | 8df10ba80f4574965fbfc7971e0a86e75dae2103 (diff) |
Test various edge cases reading ustar archives.
-rw-r--r-- | regress/bin/pax/Makefile | 4 | ||||
-rw-r--r-- | regress/bin/pax/t3.out | 33 | ||||
-rw-r--r-- | regress/bin/pax/t3.sh | 24 |
3 files changed, 59 insertions, 2 deletions
diff --git a/regress/bin/pax/Makefile b/regress/bin/pax/Makefile index 107981e6333..7343a1733d6 100644 --- a/regress/bin/pax/Makefile +++ b/regress/bin/pax/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.2 2005/04/15 07:06:35 markus Exp $ +# $OpenBSD: Makefile,v 1.3 2005/04/30 17:36:58 otto Exp $ -TESTSCRIPTS=t1 t2 +TESTSCRIPTS=t1 t2 t3 .for t in ${TESTSCRIPTS} REGRESS_TARGETS+=t-${t} diff --git a/regress/bin/pax/t3.out b/regress/bin/pax/t3.out new file mode 100644 index 00000000000..182dda13bb9 --- /dev/null +++ b/regress/bin/pax/t3.out @@ -0,0 +1,33 @@ +0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/a +0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/bb +0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/ccc +0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/dddd +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111/a +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111/bb +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111/ccc +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111/dddd +222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 +222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222/a +222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222/bb +222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222/ccc +222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222/dddd +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888/a +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888/bb +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888/ccc +88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888/dddd +999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 +999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/a +999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/bb +999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/ccc +999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/dddd +f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +f99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 +p33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 +p33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333/a +p444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 +p444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444/b +p5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 +p5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555/c diff --git a/regress/bin/pax/t3.sh b/regress/bin/pax/t3.sh new file mode 100644 index 00000000000..b35ab715a4f --- /dev/null +++ b/regress/bin/pax/t3.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# $OpenBSD: t3.sh,v 1.1 2005/04/30 17:36:58 otto Exp $ +# +# Test filled prefix and empty name, plus various other edgae cases. +# +CUR=$1 +OBJ=$2 +uudecode -p << '_EOF' | tar ztf - 2> /dev/null | cmp -s $CUR/t3.out /dev/stdin +begin 644 t3.tar.gz +M'XL("$&5:D("`W0S+G1A<@#MF\%NPC`,AO,HO`&.'<?;XP`35Z:-O?^:!"38 +M8:,2M>S.'X<>RJ'5US_Y$[4I+0],"',[9F&X/5Y)&9"R2*Y%$B`6Q+1AA6M+ +M7Y_GW<=T*:?S^?3;__XZ?[V1'\=%><+M[Y3\UU(>\T^U^6?.:0/A?W'_^[TQ +M_P6:?P$)_QK^#X>#,?_3/($$-?*OXO]MPI;_-O_3]`O_&OXUF-7_*K;QOSTN +MOOM?UF"%_6_X%V'G^7?BWUS_Z_XI3S4P_"OX-]?_AG^"R+^*?W/];_@O7,*_ +MAG]S_4]R7_\).>]_J,+Z^M_PC^@]_T[\F^M_PS]5"?\:_LWUO^&?*?*OXM]< +M_QO^!2C\:_A_69SMS/Y7N__JO?\Y0<'_;E[^F_^2L_?QWPGV^E_WC^!]_V_Y +M8#WE]NWUO^Z?"H=_#?_V^E_WS^['?R?^7Y=G.Z?_"?`8_R7ZGP;6]O^N_MV_ +M_Z,0K#7VOXO_XG[_UXE_:_WOXI\E\J_BWUK_N_@7]^]_./%_!!T>](\9<__^ +MH\;^CPI'A<=TGO^Q_R<4_M?"H^L_1.(BDH"@N%__O9-1[*[_;ORS^_G?B7]K +M^><,S;_XSW^QROWZWUC^A_\,Q?OZSXE_<_EO_9\RHOO\LUGN]G^LY7_XI^K] +9^S\G_H,@"((@"((@"(+_P3=C<CD]`%`````` +` +end +_EOF |