• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:-

9 name: unzip -l
10 command: unzip -l $FILES/example.zip d1/d2/x.txt
11 after: [ ! -f d1/d2/x.txt ]
12 expected-stdout:
15 --------- ---------- ----- ----
16 1024 2017-06-04 08:45 d1/d2/x.txt
17 --------- -------
19 ---
21 name: unzip -lq
22 command: unzip -lq $FILES/example.zip d1/d2/x.txt
23 after: [ ! -f d1/d2/x.txt ]
24 expected-stdout:
26 --------- ---------- ----- ----
27 1024 2017-06-04 08:45 d1/d2/x.txt
28 --------- -------
30 ---
32 name: unzip -lv
33 command: unzip -lv $FILES/example.zip d1/d2/x.txt
34 after: [ ! -f d1/d2/file ]
35 expected-stdout:
37 Length Method Size Cmpr Date Time CRC-32 Name
38 -------- ------ ------- ---- ---------- ----- -------- ----
39 1024 Defl:N 11 99% 2017-06-04 08:45 48d7f063 d1/d2/x.txt
40 -------- ------- --- -------
42 ---
44 name: unzip -v
45 command: unzip -v $FILES/example.zip d1/d2/x.txt
46 after: [ ! -f d1/d2/file ]
47 expected-stdout:
49 Length Method Size Cmpr Date Time CRC-32 Name
50 -------- ------ ------- ---- ---------- ----- -------- ----
51 1024 Defl:N 11 99% 2017-06-04 08:45 48d7f063 d1/d2/x.txt
52 -------- ------- --- -------
54 ---
57 command: unzip -q $FILES/example.zip d1/d2/a.txt && cat d1/d2/a.txt
58 after: [ ! -f d1/d2/b.txt ]
59 expected-stdout:
61 ---
64 command: unzip -q $FILES/example.zip
65 after: [ -f d1/d2/a.txt ]
66 after: [ -f d1/d2/b.txt ]
67 after: [ -f d1/d2/c.txt ]
68 after: [ -f d1/d2/empty.txt ]
69 after: [ -f d1/d2/x.txt ]
70 after: [ -d d1/d2/dir ]
71 expected-stdout:
72 ---
74 name: unzip -o
75 before: mkdir -p d1/d2
77 command: unzip -q -o $FILES/example.zip d1/d2/a.txt && cat d1/d2/a.txt
78 expected-stdout:
80 ---
82 name: unzip -n
83 before: mkdir -p d1/d2
85 command: unzip -q -n $FILES/example.zip d1/d2/a.txt && cat d1/d2/a.txt
86 expected-stdout:
88 ---
92 name: unzip -d shallow non-existent
93 command: unzip -q -d will-be-created $FILES/example.zip d1/d2/a.txt
94 after: [ -d will-be-created ]
95 after: [ -f will-be-created/d1/d2/a.txt ]
96 ---
100 name: unzip -d deep non-existent
101 command: unzip -q -d oh-no/will-not-be-created $FILES/example.zip d1/d2/a.txt 2> stderr ; echo $? >…
102 after: [ ! -d oh-no ]
103 after: [ ! -d oh-no/will-not-be-created ]
104 after: [ ! -f oh-no/will-not-be-created/d1/d2/a.txt ]
105 after: grep -q "oh-no/will-not-be-created" stderr
106 after: grep -q "No such file or directory" stderr
107 # The reference implementation has *lots* of non-zero exit values, but we stick to 0 and 1.
108 after: [ $(cat status) -gt 0 ]
109 ---
111 name: unzip -d exists
113 command: unzip -q -d dir $FILES/example.zip d1/d2/a.txt && cat dir/d1/d2/a.txt
114 after: [ ! -f d1/d2/a.txt ]
115 expected-stdout:
117 ---
119 name: unzip -p
120 command: unzip -p $FILES/example.zip d1/d2/a.txt
121 after: [ ! -f d1/d2/a.txt ]
122 expected-stdout:
124 ---
126 name: unzip -x FILE...
127 # Note: the RI ignores -x DIR for some reason, but it's not obvious we should.
128 command: unzip -q $FILES/example.zip -x d1/d2/a.txt d1/d2/b.txt d1/d2/empty.txt d1/d2/x.txt && cat …
129 after: [ ! -f d1/d2/a.txt ]
130 after: [ ! -f d1/d2/b.txt ]
131 after: [ ! -f d1/d2/empty.txt ]
132 after: [ ! -f d1/d2/x.txt ]
133 after: [ -d d1/d2/dir ]
134 expected-stdout:
136 ---
138 name: unzip FILE -x FILE...
139 command: unzip -q $FILES/example.zip d1/d2/a.txt d1/d2/b.txt -x d1/d2/a.txt && cat d1/d2/b.txt
140 after: [ ! -f d1/d2/a.txt ]
141 after: [ -f d1/d2/b.txt ]
142 after: [ ! -f d1/d2/c.txt ]
143 after: [ ! -f d1/d2/empty.txt ]
144 after: [ ! -f d1/d2/x.txt ]
145 after: [ ! -d d1/d2/dir ]
146 expected-stdout:
148 ---
150 name: unzip -j
152 command: unzip -j $FILES/example.zip d1/d2/x.txt | sed 's/ *$//'
153 after: [ ! -f d1/d2/x.txt ]
154 after: [ -f x.txt ]
155 expected-stdout:
158 ---
160 name: unzip -t one
161 command: unzip -t $FILES/example.zip d1/d2/x.txt
162 after: [ ! -d d1 ]
163 expected-stdout:
167 ---
169 name: unzip -tq all
170 command: unzip -tq $FILES/example.zip
171 after: [ ! -f d1/d2/x.txt ]
172 expected-stdout:
174 ---
176 name: unzip -tq one
177 command: unzip -tq $FILES/example.zip d1/d2/x.txt
178 after: [ ! -f d1/d2/x.txt ]
179 expected-stdout:
182 ---
184 name: unzip -tq two
185 command: unzip -tq $FILES/example.zip d1/d2/x.txt d1/d2/b.txt
186 after: [ ! -f d1/d2/x.txt ]
187 expected-stdout:
190 ---
192 name: unzip -t one bad
193 command: unzip -t $FILES/bad_crc.zip a.txt
194 after: [ ! -f a.txt ]
195 expected-stdout:
199 expected-exit-status: 2
201 #---
204 #name: unzip -tq all bad
205 #command: unzip -tq $FILES/bad_crc.zip
206 #after: [ ! -f a.txt ]
207 #after: [ ! -f b.txt ]
208 #expected-stdout:
212 #expected-exit-status: 2
214 ---
216 name: unzip -tq one bad
217 command: unzip -tq $FILES/bad_crc.zip a.txt
218 after: [ ! -f a.txt ]
219 expected-stdout:
222 expected-exit-status: 2
224 #---
227 #name: unzip -tq two bad
228 #command: unzip -tq $FILES/bad_crc.zip a.txt b.txt
229 #after: [ ! -f a.txt ]
230 #after: [ ! -f b.txt ]
231 #expected-stdout:
235 #expected-exit-status: 2
237 ---