mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Force unit tests to depend on the executable creation time
This commit is contained in:
parent
acc10c17a8
commit
deacb94c93
@ -58,8 +58,8 @@ def build(bld):
|
||||
# to execute all tests:
|
||||
# $ waf --alltests
|
||||
# to set this behaviour permanenly:
|
||||
bld.options.all_tests = True
|
||||
#bld.options.clear_failed_tests = True
|
||||
#bld.options.all_tests = True
|
||||
bld.options.clear_failed_tests = True
|
||||
|
||||
# debugging zone:
|
||||
# $ waf --zones=ut
|
||||
|
@ -231,6 +231,11 @@ class utest(Task.Task):
|
||||
def get_cwd(self):
|
||||
return getattr(self.generator, 'ut_cwd', self.inputs[0].parent)
|
||||
|
||||
def sig_explicit_deps(self):
|
||||
lst = [os.stat(node.abspath()).st_mtime for node in self.inputs]
|
||||
self.m.update(str(lst))
|
||||
return super(utest, self).sig_explicit_deps()
|
||||
|
||||
def summary(bld):
|
||||
"""
|
||||
Display an execution summary::
|
||||
|
Loading…
Reference in New Issue
Block a user