Mercurial > hg
comparison tests/test-tools.t @ 23867:049a9e3a078d
tests: conditionalize test-tools.t for Windows support
I still get the following diff on Windows 7 with NTFS. I'm not sure if it is
expected and we should wildcard the link count, or if something needs to be
fixed.
@@ -58,7 +58,7 @@
$ ln bar baz
$ f bar -n baz -l --hexdump -t --sha1 --lines=9 -B 20
- bar: file, links=2, newer than baz, sha1=612ca68d0305c821750a
+ bar: file, links=0, newer than baz, sha1=612ca68d0305c821750a\r (esc)
0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.|
0010: 39 0a |9.|
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 14 Jan 2015 22:40:39 -0500 |
parents | bead0c7b4f68 |
children | 0760f023a34b |
comparison
equal
deleted
inserted
replaced
23866:9dd442148301 | 23867:049a9e3a078d |
---|---|
36 | 36 |
37 $ echo foo > foo | 37 $ echo foo > foo |
38 $ f foo | 38 $ f foo |
39 foo: | 39 foo: |
40 | 40 |
41 #if symlink | |
41 $ f foo --mode | 42 $ f foo --mode |
42 foo: mode=644 | 43 foo: mode=644 |
44 #endif | |
43 | 45 |
44 $ seq 10 > bar | 46 $ seq 10 > bar |
47 #if unix-permissions symlink | |
45 $ chmod +x bar | 48 $ chmod +x bar |
46 $ f bar --newer foo --mode --type --size --dump --links --bytes 7 | 49 $ f bar --newer foo --mode --type --size --dump --links --bytes 7 |
47 bar: file, size=21, mode=755, links=1, newer than foo | 50 bar: file, size=21, mode=755, links=1, newer than foo |
48 >>> | 51 >>> |
49 1 | 52 1 |
50 2 | 53 2 |
51 3 | 54 3 |
52 4 | 55 4 |
53 <<< no trailing newline | 56 <<< no trailing newline |
57 #endif | |
54 | 58 |
55 $ ln bar baz | 59 $ ln bar baz |
56 $ f bar -n baz -l --hexdump -t --sha1 --lines=9 -B 20 | 60 $ f bar -n baz -l --hexdump -t --sha1 --lines=9 -B 20 |
57 bar: file, links=2, newer than baz, sha1=612ca68d0305c821750a | 61 bar: file, links=2, newer than baz, sha1=612ca68d0305c821750a |
58 0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.| | 62 0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.| |
59 0010: 39 0a |9.| | 63 0010: 39 0a |9.| |
60 | 64 |
65 #if unix-permissions symlink | |
61 $ ln -s yadda l | 66 $ ln -s yadda l |
62 $ f . --recurse -MStmsB4 | 67 $ f . --recurse -MStmsB4 |
63 .: directory with 4 files, size=120, mode=755 | 68 .: directory with 4 files, size=120, mode=755 |
64 ./bar: file, size=21, mode=755, md5=3b03, sha1=612c | 69 ./bar: file, size=21, mode=755, md5=3b03, sha1=612c |
65 ./baz: file, size=21, mode=755, md5=3b03, sha1=612c | 70 ./baz: file, size=21, mode=755, md5=3b03, sha1=612c |
66 ./foo: file, size=4, mode=644, md5=d3b0, sha1=f1d2 | 71 ./foo: file, size=4, mode=644, md5=d3b0, sha1=f1d2 |
67 ./l: link, size=5, mode=777, md5=2faa, sha1=af93 | 72 ./l: link, size=5, mode=777, md5=2faa, sha1=af93 |
73 #endif | |
68 | 74 |
69 $ f --quiet bar -DL 3 | 75 $ f --quiet bar -DL 3 |
70 1 | 76 1 |
71 2 | 77 2 |
72 3 | 78 3 |
73 | 79 |
74 $ cd .. | 80 $ cd .. |
75 | 81 |
82 Yadda is a symlink | |
83 #if symlink | |
76 $ f -qr dir -HB 17 | 84 $ f -qr dir -HB 17 |
77 dir: directory with 4 files | 85 dir: directory with 4 files |
78 dir/bar: | 86 dir/bar: |
79 0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.| | 87 0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.| |
80 0010: 39 |9| | 88 0010: 39 |9| |
83 0010: 39 |9| | 91 0010: 39 |9| |
84 dir/foo: | 92 dir/foo: |
85 0000: 66 6f 6f 0a |foo.| | 93 0000: 66 6f 6f 0a |foo.| |
86 dir/l: | 94 dir/l: |
87 0000: 79 61 64 64 61 |yadda| | 95 0000: 79 61 64 64 61 |yadda| |
96 #else | |
97 $ f -qr dir -HB 17 | |
98 dir: directory with 3 files | |
99 dir/bar: (glob) | |
100 0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.| | |
101 0010: 39 |9| | |
102 dir/baz: (glob) | |
103 0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.| | |
104 0010: 39 |9| | |
105 dir/foo: (glob) | |
106 0000: 66 6f 6f 0a |foo.| | |
107 #endif | |
108 |