summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-21 21:04:14 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-21 21:04:14 (GMT)
commit21a368c1a8d22330a27381978984f1c7a33f4db6 (patch)
tree9c4d43b6b5c60aa4c4bb6851515a9f72cac789f4 /etc
parentf407037c97df685b54882142784d2f353aaac6b6 (diff)
downloadSCons-21a368c1a8d22330a27381978984f1c7a33f4db6.zip
SCons-21a368c1a8d22330a27381978984f1c7a33f4db6.tar.gz
SCons-21a368c1a8d22330a27381978984f1c7a33f4db6.tar.bz2
Have SCons report when something is up-to-date.
Diffstat (limited to 'etc')
-rw-r--r--etc/TestSCons.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index b6f2c68..3141989 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -17,6 +17,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
import os.path
+import string
import TestCmd
class TestFailed(Exception):
@@ -110,3 +111,11 @@ class TestSCons(TestCmd.TestCmd):
print "Actual STDERR ============"
print self.stderr()
raise TestFailed
+
+ def up_to_date(self, arguments = None, **kw):
+ kw['arguments'] = arguments
+ s = ""
+ for arg in string.split(arguments):
+ s = s + 'scons: "%s" is up to date.\n' % arg
+ kw['stdout'] = s
+ apply(self.run, [], kw)