[svn] commit: r3096 - in /trunk/src/bin/tests: Makefile.am process_rename_test.py.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 1 09:21:19 UTC 2010
Author: jinmei
Date: Fri Oct 1 09:21:18 2010
New Revision: 3096
Log:
merged patches in trac #355
Modified:
trunk/src/bin/tests/Makefile.am
trunk/src/bin/tests/process_rename_test.py.in
Modified: trunk/src/bin/tests/Makefile.am
==============================================================================
--- trunk/src/bin/tests/Makefile.am (original)
+++ trunk/src/bin/tests/Makefile.am Fri Oct 1 09:21:18 2010
@@ -1,5 +1,6 @@
PYTESTS = process_rename_test.py
-EXTRA_DIST = $(PYTESTS)
+# .py will be generated by configure, so we don't have to include it
+# in EXTRA_DIST.
# later will have configure option to choose this, like: coverage run --branch
PYCOVERAGE = $(PYTHON)
@@ -8,5 +9,5 @@
for pytest in $(PYTESTS) ; do \
echo Running test: $$pytest ; \
env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/lib/dns/python/.libs \
- $(PYCOVERAGE) $(abs_srcdir)/$$pytest || exit ; \
+ $(PYCOVERAGE) $(abs_builddir)/$$pytest || exit ; \
done
Modified: trunk/src/bin/tests/process_rename_test.py.in
==============================================================================
--- trunk/src/bin/tests/process_rename_test.py.in (original)
+++ trunk/src/bin/tests/process_rename_test.py.in Fri Oct 1 09:21:18 2010
@@ -34,7 +34,7 @@
"""
Test if every script renames itself.
- Scan all Makefile.in and look for scripts.
+ Scan all Makefile and look for scripts.
Then scan them by looking at the source text
(without actually running them)
"""
@@ -48,11 +48,11 @@
fun = re.compile(r'^\s*isc\.utils\.process\.rename\s*\(.*\)\s*(|#.*)$',
re.MULTILINE)
- # Find all Makefile.in and extract names of scripts
- for (d, _, fs) in os.walk('@top_srcdir@'):
- if 'Makefile.in' in fs:
+ # Find all Makefile and extract names of scripts
+ for (d, _, fs) in os.walk('@top_builddir@'):
+ if 'Makefile' in fs:
makefile = ''.join(open(os.path.join(d,
- "Makefile.in")).readlines())
+ "Makefile")).readlines())
for (var, _) in lines.findall(makefile):
for (script, _) in scripts.findall(var):
self.__scan(d, script, fun)
More information about the bind10-changes
mailing list