Mercurial > evolve
comparison tests/test-discovery-obshashrange-cache.t @ 5860:ed0b6dd95d66 stable
tests: add a content check for evoext-* caches
After this patch this test will fail on certain platforms that don't have
array.array('l').itemsize == 8.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 17 Mar 2021 14:48:13 +0800 |
parents | b0f35c0a762f |
children | bf8a61f1c616 |
comparison
equal
deleted
inserted
replaced
5856:5e62f3db141f | 5860:ed0b6dd95d66 |
---|---|
167 main/.hg/cache/evoext-firstmerge-00: size=88 | 167 main/.hg/cache/evoext-firstmerge-00: size=88 |
168 main/.hg/cache/evoext-obscache-00: size=72 | 168 main/.hg/cache/evoext-obscache-00: size=72 |
169 main/.hg/cache/evoext-stablesortcache-00: size=92 | 169 main/.hg/cache/evoext-stablesortcache-00: size=92 |
170 main/.hg/cache/evoext_obshashrange_v2.sqlite: size=?* (glob) | 170 main/.hg/cache/evoext_obshashrange_v2.sqlite: size=?* (glob) |
171 main/.hg/cache/evoext_stablerange_v2.sqlite: size=?* (glob) | 171 main/.hg/cache/evoext_stablerange_v2.sqlite: size=?* (glob) |
172 | |
173 let's look at the contents of the caches | |
174 | |
175 the reason we're doing this is to make sure our serialization works the same | |
176 way on all platforms, see https://bz.mercurial-scm.org/show_bug.cgi?id=6354 | |
177 | |
178 we don't need to check sqlite caches | |
179 | |
180 $ f -H main/.hg/cache/evoext-* | |
181 main/.hg/cache/evoext-depthcache-00: | |
182 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......| | |
183 0010: 41 27 7a a7 ab ca 51 dd 01 00 00 00 00 00 00 00 |A'z...Q.........| | |
184 0020: 02 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 |................| | |
185 0030: 04 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 |................| | |
186 0040: 06 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 |................| | |
187 0050: 08 00 00 00 00 00 00 00 |........| | |
188 main/.hg/cache/evoext-firstmerge-00: | |
189 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......| | |
190 0010: 41 27 7a a7 ab ca 51 dd ff ff ff ff ff ff ff ff |A'z...Q.........| | |
191 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
192 0030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
193 0040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
194 0050: ff ff ff ff ff ff ff ff |........| | |
195 main/.hg/cache/evoext-obscache-00: | |
196 0000: 00 00 00 00 00 00 00 07 4d e3 2a 90 b6 6c d0 83 |........M.*..l..| | |
197 0010: eb f3 c0 0b 41 27 7a a7 ab ca 51 dd 00 00 00 00 |....A'z...Q.....| | |
198 0020: 00 00 00 08 00 00 00 00 00 00 02 29 4c 16 b4 10 |...........)L...| | |
199 0030: 03 f6 c1 57 8d 58 25 ef c7 73 cd 79 03 4b fb 46 |...W.X%..s.y.K.F| | |
200 0040: 00 00 00 00 00 00 00 00 |........| | |
201 main/.hg/cache/evoext-stablesortcache-00: | |
202 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......| | |
203 0010: 41 27 7a a7 ab ca 51 dd 00 00 00 40 00 00 00 00 |A'z...Q....@....| | |
204 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
205 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
206 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
207 0050: 00 00 00 00 00 00 00 00 00 00 00 00 |............| |