comparison tests/test-archive-symlinks.t @ 11854:aa2abde72da1

tests: unify test-archive-symlinks
author Martin Geisler <mg@lazybytes.net>
date Sat, 14 Aug 2010 02:26:53 +0200
parents tests/test-archive-symlinks@396c7010b0cd
children 4f795f5fbb0b
comparison
equal deleted inserted replaced
11853:afe19a1bf9d3 11854:aa2abde72da1
1 $ "$TESTDIR/hghave" symlink || exit 80
2
3 $ origdir=`pwd`
4
5 $ hg init repo
6 $ cd repo
7 $ ln -s nothing dangling
8
9 avoid tar warnings about old timestamp
10
11 $ hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
12
13 $ hg archive -t files ../archive
14 $ hg archive -t tar -p tar ../archive.tar
15 $ hg archive -t zip -p zip ../archive.zip
16
17 files
18
19 $ cd "$origdir"
20 $ cd archive
21 $ $TESTDIR/readlink.py dangling
22 dangling -> nothing
23
24 tar
25
26 $ cd "$origdir"
27 $ tar xf archive.tar
28 $ cd tar
29 $ $TESTDIR/readlink.py dangling
30 dangling -> nothing
31
32 zip
33
34 $ cd "$origdir"
35 $ unzip archive.zip > /dev/null
36 $ cd zip
37 $ $TESTDIR/readlink.py dangling
38 dangling -> nothing