From: François Pinard Date: Sun, 9 Mar 2008 02:37:54 +0000 (-0500) Subject: Add LIMIT= to make check X-Git-Tag: v3.7-beta2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a576194a75cecab7402de07cca645b523d2739a;p=recode Add LIMIT= to make check --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 55060f8..32e1b4c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -21,6 +21,7 @@ info_TEXINFOS = recode.texi MAKEINFO = LANG= LANGUAGE= @MAKEINFO@ EXTRA_DIST = rfc1345.texi File-Latin1 help2man +MOSTLYCLEANFILES = recode.ops # Relative to $(srcdir). KELD = ../keld @@ -30,8 +31,6 @@ MNEMONICS_DS = $(KELD)/iso10646.def $(KELD)/other.def $(KELD)/control.def PYTHON = python TABLES_PY = $(PYTHON) $(top_srcdir)/tables.py -MOSTLYCLEANFILES = recode.ops - $(srcdir)/recode.info: rfc1345.texi recode.dvi: rfc1345.texi diff --git a/doc/Makefile.in b/doc/Makefile.in index bd9affe..9244a03 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -219,6 +219,7 @@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = gnits info_TEXINFOS = recode.texi EXTRA_DIST = rfc1345.texi File-Latin1 help2man +MOSTLYCLEANFILES = recode.ops # Relative to $(srcdir). KELD = ../keld @@ -226,7 +227,6 @@ CHARSETS_DEF = $(KELD)/charsets.def MNEMONICS_DS = $(KELD)/iso10646.def $(KELD)/other.def $(KELD)/control.def PYTHON = python TABLES_PY = $(PYTHON) $(top_srcdir)/tables.py -MOSTLYCLEANFILES = recode.ops all: all-am .SUFFIXES: diff --git a/src/Makefile.am b/src/Makefile.am index a617790..a9e058a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,7 +26,9 @@ include_HEADERS = recode.h recodext.h noinst_HEADERS = argmatch.h charname.h common.h decsteps.h exit.h exitfail.h \ fr-charname.h hash.h inisteps.h iconvdecl.h quotearg.h rfc1345.h tersteps.h \ xalloc.h $(H_FALLBACKS) $(H_SURFACES) + EXTRA_DIST = stamp-steps $(L_STEPS) mergelex.py $(MANS) +CLEANFILES = iconvdecl.h C_STEPS = african.c afrtran.c applemac.c atarist.c bangbang.c cdcnos.c \ ebcdic.c ibmpc.c iconqnx.c lat1asci.c mule.c strip-data.c testdump.c \ @@ -74,8 +76,6 @@ PERL = perl PYTHON = python TABLES_PY = $(PYTHON) $(top_srcdir)/tables.py -CLEANFILES = iconvdecl.h - $(srcdir)/merged.c: mergelex.py $(L_STEPS) (cd $(srcdir) && cat $(L_STEPS)) \ | $(PYTHON) $(srcdir)/mergelex.py > merged.tm1 diff --git a/src/Makefile.in b/src/Makefile.in index e37bf4b..fe3008e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -270,6 +270,7 @@ fr-charname.h hash.h inisteps.h iconvdecl.h quotearg.h rfc1345.h tersteps.h \ xalloc.h $(H_FALLBACKS) $(H_SURFACES) EXTRA_DIST = stamp-steps $(L_STEPS) mergelex.py $(MANS) +CLEANFILES = iconvdecl.h C_STEPS = african.c afrtran.c applemac.c atarist.c bangbang.c cdcnos.c \ ebcdic.c ibmpc.c iconqnx.c lat1asci.c mule.c strip-data.c testdump.c \ ucs.c utf16.c utf7.c utf8.c varia.c vn.c $(C_FALLBACKS) $(C_SURFACES) \ @@ -304,7 +305,6 @@ TAGS_DEPENDENCIES = $(L_STEPS) PERL = perl PYTHON = python TABLES_PY = $(PYTHON) $(top_srcdir)/tables.py -CLEANFILES = iconvdecl.h all: all-am .SUFFIXES: diff --git a/tests/Makefile.am b/tests/Makefile.am index 2e5cd9c..d1f7022 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -19,19 +19,22 @@ AUTOMAKE_OPTIONS = gnits +# LIMIT= may limit testing. For example, "make check LIMIT='-l 1'" stops +# testing after the first error, "make check LIMIT='-k utf7' runs files +# matched by the "utf7" regexp. Try "./pytest -h" for a list of options. + SUITE = t21_names.py t22_lists.py t25_subsets.py t30_base64.py \ t30_dumps.py t30_quoted.py t40_african.py t40_combine.py t40_testdump.py \ t40_utf7.py t40_utf8.py t50_methods.py t90_bigauto.py EXTRA_DIST = NOTES Recode.c Recode.pyx pytest common.py $(SUITE) +CLEANFILES = Recode.so PYTHON = python -CLEANFILES = Recode.so - check-local: Recode.so RECODE=../src/recode PYTHONPATH=.:$(srcdir) \ - $(PYTHON) $(srcdir)/pytest $(srcdir)/t*.py + $(PYTHON) $(srcdir)/pytest $(LIMIT) $(srcdir)/t*.py Recode.so: Recode.c setup.py $(PYTHON) setup.py build diff --git a/tests/Makefile.in b/tests/Makefile.in index 4e96c02..4de41bb 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -198,13 +198,17 @@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = gnits + +# LIMIT= may limit testing. For example, "make check LIMIT='-l 1'" stops +# testing after the first error, "make check LIMIT='-k utf7' runs files +# matched by the "utf7" regexp. Try "./pytest -h" for a list of options. SUITE = t21_names.py t22_lists.py t25_subsets.py t30_base64.py \ t30_dumps.py t30_quoted.py t40_african.py t40_combine.py t40_testdump.py \ t40_utf7.py t40_utf8.py t50_methods.py t90_bigauto.py EXTRA_DIST = NOTES Recode.c Recode.pyx pytest common.py $(SUITE) -PYTHON = python CLEANFILES = Recode.so +PYTHON = python all: all-am .SUFFIXES: @@ -379,7 +383,7 @@ uninstall-am: check-local: Recode.so RECODE=../src/recode PYTHONPATH=.:$(srcdir) \ - $(PYTHON) $(srcdir)/pytest $(srcdir)/t*.py + $(PYTHON) $(srcdir)/pytest $(LIMIT) $(srcdir)/t*.py Recode.so: Recode.c setup.py $(PYTHON) setup.py build