tests/test-archive
changeset 2114 98cc126f9f3f
parent 1929 85daa4e03b4c
child 2187 09d3eebdd9b2
--- a/tests/test-archive	Fri Apr 21 15:28:50 2006 -0700
+++ b/tests/test-archive	Fri Apr 21 15:47:27 2006 -0700
@@ -36,3 +36,18 @@
 
 kill `cat hg.pid`
 sleep 1 # wait for server to scream and die
+
+hg archive -t tar test.tar
+tar tf test.tar
+
+hg archive -t tbz2 -X baz test.tar.bz2
+bunzip2 -dc test.tar.bz2 | tar tf -
+
+hg archive -t tgz -p %b-%h test-%h.tar.gz
+gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/"
+
+hg archive -t zip -p /illegal test.zip
+hg archive -t zip -p very/../bad test.zip
+
+hg archive -t zip -r 2 test.zip
+unzip -t test.zip