##// END OF EJS Templates
tests: guard test-archive-symlink with unziplinks check...
Augie Fackler -
r29844:c4d03b6d default
parent child Browse files
Show More
@@ -1,40 +1,42 b''
1 #require symlink
1 #require symlink
2
2
3 $ origdir=`pwd`
3 $ origdir=`pwd`
4
4
5 $ hg init repo
5 $ hg init repo
6 $ cd repo
6 $ cd repo
7 $ ln -s nothing dangling
7 $ ln -s nothing dangling
8
8
9 avoid tar warnings about old timestamp
9 avoid tar warnings about old timestamp
10
10
11 $ hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
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
16
17 files
17 files
18
18
19 $ cd "$origdir"
19 $ cd "$origdir"
20 $ cd archive
20 $ cd archive
21 $ readlink.py dangling
21 $ readlink.py dangling
22 dangling -> nothing
22 dangling -> nothing
23
23
24 tar
24 tar
25
25
26 $ cd "$origdir"
26 $ cd "$origdir"
27 $ tar xf archive.tar
27 $ tar xf archive.tar
28 $ cd tar
28 $ cd tar
29 $ readlink.py dangling
29 $ readlink.py dangling
30 dangling -> nothing
30 dangling -> nothing
31
31
32 #if unziplinks
32 zip
33 zip
33
34
34 $ cd "$origdir"
35 $ cd "$origdir"
35 $ unzip archive.zip > /dev/null 2>&1
36 $ unzip archive.zip > /dev/null 2>&1
36 $ cd zip
37 $ cd zip
37 $ readlink.py dangling
38 $ readlink.py dangling
38 dangling -> nothing
39 dangling -> nothing
40 #endif
39
41
40 $ cd ..
42 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now