Add a missing test.pass_test() line to test/Java nested-classes.py.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 18 Mar 2009 07:24:36 +0000 (07:24 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 18 Mar 2009 07:24:36 +0000 (07:24 +0000)
Update src/test_strings.py to verify these files all have an appropriate
'\.pass_test()' line.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4075 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/test_strings.py
test/Java/nested-classes.py

index 25f2370e44e0d231592f9615981db28403a75881..3dc1888505916cec36def7b25adf6e823b32b34a 100644 (file)
@@ -111,6 +111,13 @@ class CheckUnexpandedStrings(Checker):
     def must_be_built(self):
         return None
 
+class CheckPassTest(Checker):
+    expressions = [
+        re.compile(r'\.pass_test()'),
+    ]
+    def must_be_built(self):
+        return None
+
 class CheckExpandedCopyright(Checker):
     expressions = [
         re.compile('Copyright.*The SCons Foundation'),
@@ -140,6 +147,14 @@ check_list = [
         search_list = [ '*.py' ],
     ),
 
+    CheckPassTest(
+        'test',
+        search_list = [ '*.py' ],
+        remove_list = [
+            'Fortran/common.py',
+        ],
+    ),
+
     CheckExpandedCopyright(
         build_scons,
         remove_list = [
index 7772c572f5e7e2782478072beea38377706ba359..2b1b5db02db238eab2b7f5e5af4981a118795f23 100644 (file)
@@ -100,6 +100,8 @@ public class Test {
 
 test.run(arguments = '.')
 
+test.pass_test()
+
 # Local Variables:
 # tab-width:4
 # indent-tabs-mode:nil