From b8a80aadb6758843376fbff338a40abd7f4f50ba Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 18 Mar 2009 07:24:36 +0000 Subject: [PATCH] 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. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4075 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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 25f2370e..3dc18885 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 7772c572..2b1b5db0 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 -- 2.26.2