Show More
@@ -38,10 +38,13 b' Tests of the file helper tool' | |||||
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 | |
@@ -51,6 +54,7 b' Tests of the file helper tool' | |||||
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 | |
@@ -58,6 +62,7 b' Tests of the file helper tool' | |||||
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 | |
@@ -65,6 +70,7 b' Tests of the file helper tool' | |||||
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 | |
@@ -73,6 +79,8 b' Tests of the file helper tool' | |||||
73 |
|
79 | |||
74 | $ cd .. |
|
80 | $ cd .. | |
75 |
|
81 | |||
|
82 | Yadda is a symlink | |||
|
83 | #if symlink | |||
76 |
$ |
|
84 | $ f -qr dir -HB 17 | |
77 | dir: directory with 4 files |
|
85 | dir: directory with 4 files | |
78 | dir/bar: |
|
86 | dir/bar: | |
@@ -85,3 +93,16 b' Tests of the file helper tool' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now