From 3469e3b99156774d1f6cbd2efc12a477a2799faf Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Wed, 18 Mar 2009 07:24:36 +0000 Subject: Add a missing test.pass_test() line to test/Java nested-classes.py. Update src/test_strings.py to verify these files all have an appropriate '\.pass_test()' line. --- src/test_strings.py | 15 +++++++++++++++ test/Java/nested-classes.py | 2 ++ 2 files changed, 17 insertions(+) diff --git a/src/test_strings.py b/src/test_strings.py index 25f2370..3dc1888 100644 --- a/src/test_strings.py +++ b/src/test_strings.py @@ -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 = [ diff --git a/test/Java/nested-classes.py b/test/Java/nested-classes.py index 7772c57..2b1b5db 100644 --- a/test/Java/nested-classes.py +++ b/test/Java/nested-classes.py @@ -100,6 +100,8 @@ public class Test { test.run(arguments = '.') +test.pass_test() + # Local Variables: # tab-width:4 # indent-tabs-mode:nil -- cgit v0.12