summaryrefslogtreecommitdiffstats
path: root/etc/TestSCons.py
diff options
context:
space:
mode:
Diffstat (limited to 'etc/TestSCons.py')
-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)