Ticket #355: scan-makefile.diff

File scan-makefile.diff, 1.2 KB (added by vorner, 9 years ago)
  • src/bin/tests/process_rename_test.py.in

    diff --git a/src/bin/tests/process_rename_test.py.in b/src/bin/tests/process_rename_test.py.in
    index 239ebef..e5a79c6 100644
    a b class TestRename(unittest.TestCase): 
    3434        """
    3535        Test if every script renames itself.
    3636
    37         Scan all Makefile.in and look for scripts.
     37        Scan all Makefile and look for scripts.
    3838        Then scan them by looking at the source text
    3939        (without actually running them)
    4040        """
    class TestRename(unittest.TestCase): 
    4848        fun = re.compile(r'^\s*isc\.utils\.process\.rename\s*\(.*\)\s*(|#.*)$',
    4949            re.MULTILINE)
    5050
    51         # Find all Makefile.in and extract names of scripts
     51        # Find all Makefile and extract names of scripts
    5252        for (d, _, fs) in os.walk('@top_builddir@'):
    53             if 'Makefile.in' in fs:
     53            if 'Makefile' in fs:
    5454                makefile = ''.join(open(os.path.join(d,
    55                     "Makefile.in")).readlines())
     55                    "Makefile")).readlines())
    5656                for (var, _) in lines.findall(makefile):
    5757                    for (script, _) in scripts.findall(var):
    5858                        self.__scan(d, script, fun)