Permalink
Browse files

Check multi-module examples. Dont use sed.

  • Loading branch information...
1 parent eb26847 commit 11b5a6187999c24ea6d887110749d12f3c2aa5eb @jschueller jschueller committed Jun 10, 2014
Showing with 9 additions and 1 deletion.
  1. +9 −1 Examples/test-suite/python/Makefile.in
@@ -126,6 +126,7 @@ VALGRIND_OPT += --suppressions=pythonswig.supp
+$(convert_testcase)
$(setup)
+$(swig_and_compile_multi_cpp)
+ $(check_pep8_multi_cpp)
$(run_testcase)
@@ -139,7 +140,14 @@ py3_runme = $(SCRIPTPREFIX)$*$(PY3SCRIPTSUFFIX)
check_pep8 = \
if [ -n "$(PEP8)" ]; then \
- $(PEP8) --ignore=E501,E30,W291,W391 `echo $(py2_runme)|sed "s|_runme||g"`;\
+ $(PEP8) --ignore=E501,E30,W291,W391 $(SCRIPTPREFIX)$*.py;\
+ fi
+
+check_pep8_multi_cpp = \
+ if [ -n "$(PEP8)" ]; then \
+ for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
+ $(PEP8) --ignore=E501,E30,W291,W391 $$f.py; \
+ done \
fi
run_python = env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=.:$(srcdir):$$PYTHONPATH $(RUNTOOL) $(PYTHON) $(py_runme)

0 comments on commit 11b5a61

Please sign in to comment.