1
1
#!/usr/bin/env python
2
2
#
3
- # __COPYRIGHT__
3
+ # Copyright The SCons Foundation
4
4
#
5
5
# Permission is hereby granted, free of charge, to any person obtaining
6
6
# a copy of this software and associated documentation files (the
22
22
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
#
24
24
25
- __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
26
25
27
26
"""
28
27
Test the --cache-debug option to see if it prints the expected messages.
@@ -145,16 +144,16 @@ def cat(env, source, target):
145
144
146
145
expect = \
147
146
r"""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]+
149
148
requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
150
149
Retrieved `bbb.out' from cache
151
- CacheRetrieve\(bbb.out\): retrieving from [0-9a-fA-F]+
150
+ CacheRetrieve\(bbb.out\): retrieved from [0-9a-fA-F]+
152
151
requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
153
152
Retrieved `ccc.out' from cache
154
- CacheRetrieve\(ccc.out\): retrieving from [0-9a-fA-F]+
153
+ CacheRetrieve\(ccc.out\): retrieved from [0-9a-fA-F]+
155
154
requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
156
155
Retrieved `all' from cache
157
- CacheRetrieve\(all\): retrieving from [0-9a-fA-F]+
156
+ CacheRetrieve\(all\): retrieved from [0-9a-fA-F]+
158
157
requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
159
158
"""
160
159
@@ -179,13 +178,13 @@ def cat(env, source, target):
179
178
stdout = expect )
180
179
181
180
expect = \
182
- r"""CacheRetrieve\(aaa.out\): retrieving from [0-9a-fA-F]+
181
+ r"""CacheRetrieve\(aaa.out\): retrieved from [0-9a-fA-F]+
183
182
requests: [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]+
185
184
requests: [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]+
187
186
requests: [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]+
189
188
requests: [0-9]+, hits: [0-9]+, misses: [0-9]+, hit rate: [0-9]+\.[0-9]{2,}%
190
189
"""
191
190
0 commit comments