comparison tests/test-walk.t @ 12316:4134686b83e1

tests: add exit codes to unified tests
author Matt Mackall <mpm@selenic.com>
date Thu, 16 Sep 2010 17:51:32 -0500
parents 4c94b6d0fb1c
children 5163e3c8aa52
comparison
equal deleted inserted replaced
12315:ca58f6475f1d 12316:4134686b83e1
158 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi 158 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
159 f mammals/Procyonidae/raccoon Procyonidae/raccoon 159 f mammals/Procyonidae/raccoon Procyonidae/raccoon
160 f mammals/skunk skunk 160 f mammals/skunk skunk
161 $ hg debugwalk .hg 161 $ hg debugwalk .hg
162 abort: path 'mammals/.hg' is inside repo 'mammals' 162 abort: path 'mammals/.hg' is inside repo 'mammals'
163 [255]
163 $ hg debugwalk ../.hg 164 $ hg debugwalk ../.hg
164 abort: path contains illegal component: .hg 165 abort: path contains illegal component: .hg
166 [255]
165 $ cd .. 167 $ cd ..
166 168
167 $ hg debugwalk -Ibeans 169 $ hg debugwalk -Ibeans
168 f beans/black beans/black 170 f beans/black beans/black
169 f beans/borlotti beans/borlotti 171 f beans/borlotti beans/borlotti
185 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi 187 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
186 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon 188 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
187 f mammals/skunk mammals/skunk 189 f mammals/skunk mammals/skunk
188 $ hg debugwalk .. 190 $ hg debugwalk ..
189 abort: .. not under root 191 abort: .. not under root
192 [255]
190 $ hg debugwalk beans/../.. 193 $ hg debugwalk beans/../..
191 abort: beans/../.. not under root 194 abort: beans/../.. not under root
195 [255]
192 $ hg debugwalk .hg 196 $ hg debugwalk .hg
193 abort: path contains illegal component: .hg 197 abort: path contains illegal component: .hg
198 [255]
194 $ hg debugwalk beans/../.hg 199 $ hg debugwalk beans/../.hg
195 abort: path contains illegal component: .hg 200 abort: path contains illegal component: .hg
201 [255]
196 $ hg debugwalk beans/../.hg/data 202 $ hg debugwalk beans/../.hg/data
197 abort: path contains illegal component: .hg/data 203 abort: path contains illegal component: .hg/data
204 [255]
198 $ hg debugwalk beans/.hg 205 $ hg debugwalk beans/.hg
199 abort: path 'beans/.hg' is inside repo 'beans' 206 abort: path 'beans/.hg' is inside repo 'beans'
207 [255]
200 208
201 Test absolute paths: 209 Test absolute paths:
202 210
203 $ hg debugwalk `pwd`/beans 211 $ hg debugwalk `pwd`/beans
204 f beans/black beans/black 212 f beans/black beans/black
207 f beans/navy beans/navy 215 f beans/navy beans/navy
208 f beans/pinto beans/pinto 216 f beans/pinto beans/pinto
209 f beans/turtle beans/turtle 217 f beans/turtle beans/turtle
210 $ hg debugwalk `pwd`/.. 218 $ hg debugwalk `pwd`/..
211 abort: .*/.. not under root 219 abort: .*/.. not under root
220 [255]
212 221
213 Test patterns: 222 Test patterns:
214 223
215 $ hg debugwalk glob:\* 224 $ hg debugwalk glob:\*
216 f fennel fennel 225 f fennel fennel