Mercurial > hg
diff tests/test-archive @ 2114:98cc126f9f3f
update tests after changing archival code.
test-archive now contains tests for archive command.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 21 Apr 2006 15:47:27 -0700 |
parents | 85daa4e03b4c |
children | 09d3eebdd9b2 |
line wrap: on
line diff
--- 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