##// END OF EJS Templates
tests: unify test-archive-symlinks
Martin Geisler -
r11854:aa2abde7 default
parent child Browse files
Show More
@@ -1,32 +1,38 b''
1 #!/bin/sh
1 $ "$TESTDIR/hghave" symlink || exit 80
2
3 $ origdir=`pwd`
2
4
3 "$TESTDIR/hghave" symlink || exit 80
5 $ hg init repo
4
6 $ cd repo
5 origdir=`pwd`
7 $ ln -s nothing dangling
6
8
7 hg init repo
9 avoid tar warnings about old timestamp
8 cd repo
10
9 ln -s nothing dangling
11 $ hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
10 # avoid tar warnings about old timestamp
11 hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
12
12
13 hg archive -t files ../archive
13 $ hg archive -t files ../archive
14 hg archive -t tar -p tar ../archive.tar
14 $ hg archive -t tar -p tar ../archive.tar
15 hg archive -t zip -p zip ../archive.zip
15 $ hg archive -t zip -p zip ../archive.zip
16
17 files
16
18
17 echo '% files'
19 $ cd "$origdir"
18 cd "$origdir"
20 $ cd archive
19 cd archive
21 $ $TESTDIR/readlink.py dangling
20 $TESTDIR/readlink.py dangling
22 dangling -> nothing
23
24 tar
21
25
22 echo '% tar'
26 $ cd "$origdir"
23 cd "$origdir"
27 $ tar xf archive.tar
24 tar xf archive.tar
28 $ cd tar
25 cd tar
29 $ $TESTDIR/readlink.py dangling
26 $TESTDIR/readlink.py dangling
30 dangling -> nothing
27
31
28 echo '% zip'
32 zip
29 cd "$origdir"
33
30 unzip archive.zip > /dev/null
34 $ cd "$origdir"
31 cd zip
35 $ unzip archive.zip > /dev/null
32 $TESTDIR/readlink.py dangling
36 $ cd zip
37 $ $TESTDIR/readlink.py dangling
38 dangling -> nothing
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now