11#!/usr/bin/env python
22#
3- # __COPYRIGHT__
3+ # Copyright The SCons Foundation
44#
55# Permission is hereby granted, free of charge, to any person obtaining
66# a copy of this software and associated documentation files (the
2222# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323#
2424
25- __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
2625
2726"""
2827Test the --cache-debug option to see if it prints the expected messages.
@@ -145,16 +144,16 @@ def cat(env, source, target):
145144
146145expect = \
147146r"""Retrieved `aaa.out' from cache
148- CacheRetrieve\(aaa.out\): retrieving from [0-9a-fA-F]+
147+ CacheRetrieve\(aaa.out\): retrieved from [0-9a-fA-F]+
149148requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
150149Retrieved `bbb.out' from cache
151- CacheRetrieve\(bbb.out\): retrieving from [0-9a-fA-F]+
150+ CacheRetrieve\(bbb.out\): retrieved from [0-9a-fA-F]+
152151requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
153152Retrieved `ccc.out' from cache
154- CacheRetrieve\(ccc.out\): retrieving from [0-9a-fA-F]+
153+ CacheRetrieve\(ccc.out\): retrieved from [0-9a-fA-F]+
155154requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
156155Retrieved `all' from cache
157- CacheRetrieve\(all\): retrieving from [0-9a-fA-F]+
156+ CacheRetrieve\(all\): retrieved from [0-9a-fA-F]+
158157requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
159158"""
160159
@@ -179,13 +178,13 @@ def cat(env, source, target):
179178 stdout = expect )
180179
181180expect = \
182- r"""CacheRetrieve\(aaa.out\): retrieving from [0-9a-fA-F]+
181+ r"""CacheRetrieve\(aaa.out\): retrieved from [0-9a-fA-F]+
183182requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
184- CacheRetrieve\(bbb.out\): retrieving from [0-9a-fA-F]+
183+ CacheRetrieve\(bbb.out\): retrieved from [0-9a-fA-F]+
185184requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
186- CacheRetrieve\(ccc.out\): retrieving from [0-9a-fA-F]+
185+ CacheRetrieve\(ccc.out\): retrieved from [0-9a-fA-F]+
187186requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
188- CacheRetrieve\(all\): retrieving from [0-9a-fA-F]+
187+ CacheRetrieve\(all\): retrieved from [0-9a-fA-F]+
189188requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
190189"""
191190
0 commit comments