summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-04-14 15:17:08 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-04-14 15:17:08 +0000
commit97150a907af5da45347122ab22d5411d30b7b3b8 (patch)
tree54458eb619c6e24835cd09494a45c88ac9120732 /regress
parent0376f10f6c035e7fa72d59fdf7b92fb4ec4f2c26 (diff)
Initial pax regression tests. OK otto
Diffstat (limited to 'regress')
-rw-r--r--regress/bin/Makefile4
-rw-r--r--regress/bin/pax/Makefile15
-rw-r--r--regress/bin/pax/t1.out1
-rw-r--r--regress/bin/pax/t1.sh36
4 files changed, 54 insertions, 2 deletions
diff --git a/regress/bin/Makefile b/regress/bin/Makefile
index 814fa02c0e9..bc5937509bb 100644
--- a/regress/bin/Makefile
+++ b/regress/bin/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.4 2004/01/15 17:14:42 sturm Exp $
+# $OpenBSD: Makefile,v 1.5 2005/04/14 15:17:07 cloder Exp $
-SUBDIR+= md5 ksh systrace
+SUBDIR+= md5 ksh pax systrace
install:
diff --git a/regress/bin/pax/Makefile b/regress/bin/pax/Makefile
new file mode 100644
index 00000000000..d57de23c1be
--- /dev/null
+++ b/regress/bin/pax/Makefile
@@ -0,0 +1,15 @@
+# $OpenBSD: Makefile,v 1.1 2005/04/14 15:17:07 cloder Exp $
+
+TESTSCRIPTS=t1
+
+.for t in ${TESTSCRIPTS}
+REGRESS_TARGETS+=t-${t}
+CLEANFILES+=${t}.tar
+
+t-${t}:
+ sh ${.CURDIR}/${t}.sh ${.CURDIR} ${.OBJDIR}
+.endfor
+
+.PHONY: ${REGRESS_TARGETS}
+
+.include <bsd.regress.mk>
diff --git a/regress/bin/pax/t1.out b/regress/bin/pax/t1.out
new file mode 100644
index 00000000000..8a7aadbe618
--- /dev/null
+++ b/regress/bin/pax/t1.out
@@ -0,0 +1 @@
+-rw-r--r-- 1 501 500 342 Feb 2 21:10 digikamimageplugins-0.7.2/digikamimageplugins/antivignetting/digikamimageplugin_antivignetting_ui.rc
diff --git a/regress/bin/pax/t1.sh b/regress/bin/pax/t1.sh
new file mode 100644
index 00000000000..991e2d49c49
--- /dev/null
+++ b/regress/bin/pax/t1.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# $OpenBSD: t1.sh,v 1.1 2005/04/14 15:17:07 cloder Exp $
+
+# pax was assuming ustar entries were always NUL terminated
+CUR=$1
+OBJ=$2
+uudecode -o $OBJ/t1.tar << '_EOF'
+begin 644 t1.tar
+M9&EG:6MA;6EM86=E<&QU9VEN<RTP+C<N,B]D:6=I:V%M:6UA9V5P;'5G:6YS
+M+V%N=&EV:6=N971T:6YG+V1I9VEK86UI;6%G97!L=6=I;E]A;G1I=FEG;F5T
+M=&EN9U]U:2YR8S`P,#`V-#0`,#`P,#<V-0`P,#`P-S8T`#`P,#`P,#`P-3(V
+M`#$P,C`P,S,Q,#<T`#`S-3,T-``@,```````````````````````````````
+M````````````````````````````````````````````````````````````
+M``````````````````````````````````````````!U<W1A<B`@`&=I;&QE
+M<P``````````````````````````````````9VEL;&5S````````````````
+M```````````````````P,#`P,#`P`#`P,#`P,#``````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M```````````````````````\(41/0U194$4@:W!A<G1G=6D@4UE35$5-(")K
+M<&%R=&=U:2YD=&0B/@H\:W!A<G1G=6D@=F5R<VEO;CTB,2(@;F%M93TB9&EG
+M:6MA;6EM86=E<&QU9VEN7V%N=&EV:6=N971T:6YG(B`^"@H@/$UE;G5"87(^
+M"@H@(#Q-96YU(&YA;64](D9I>"(@/@H@("`\=&5X=#Y&:29A;7`[>#PO=&5X
+M=#X*("`@/$%C=&EO;B!N86UE/2)I;6%G97!L=6=I;E]A;G1I=FEG;F5T=&EN
+M9R(@+SX@"B`@/"]-96YU/@H*(#PO365N=4)A<CX*(`H@/%1O;VQ"87(@;F%M
+M93TB5&]O;$)A<B(@/@H@(#QT97AT/DUA:6X@5&]O;&)A<CPO=&5X=#X*(#PO
+M5&]O;$)A<CX*"B`\06-T:6]N4')O<&5R=&EE<R\^"@H\+VMP87)T9W5I/@H`
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+B````````````````````````````````````````````````
+`
+end
+_EOF
+
+tar tvf $OBJ/t1.tar 2> /dev/null | cmp -s $CUR/t1.out /dev/stdin