Add new TESTALL flag for long tests.

This commit is contained in:
Bastian Kleineidam 2013-03-26 17:27:34 +01:00
parent bb69012660
commit 849699b402
2 changed files with 4 additions and 2 deletions

View file

@ -13,7 +13,6 @@ HOMEPAGE:=$(HOME)/public_html/$(LAPPNAME)-webpage.git
DEBUILDDIR:=$(HOME)/projects/debian/official DEBUILDDIR:=$(HOME)/projects/debian/official
DEBORIGFILE:=$(DEBUILDDIR)/$(LAPPNAME)_$(VERSION).orig.tar.gz DEBORIGFILE:=$(DEBUILDDIR)/$(LAPPNAME)_$(VERSION).orig.tar.gz
DEBPACKAGEDIR:=$(DEBUILDDIR)/$(LAPPNAME)-$(VERSION) DEBPACKAGEDIR:=$(DEBUILDDIR)/$(LAPPNAME)-$(VERSION)
PY2APPOPTS ?=
# Default pytest options # Default pytest options
# Note that using -n silently swallows test creation exceptions like # Note that using -n silently swallows test creation exceptions like
# import errors. # import errors.
@ -129,6 +128,9 @@ localbuild:
test: localbuild test: localbuild
env LANG=en_US.utf-8 http_proxy="" $(PYTHON) -m pytest $(PYTESTOPTS) $(TESTOPTS) $(TESTS) env LANG=en_US.utf-8 http_proxy="" $(PYTHON) -m pytest $(PYTESTOPTS) $(TESTOPTS) $(TESTS)
testall: localbuild
env LANG=en_UR.utf-8 http_proxy="" TESTALL=1 $(PYTHON) -m pytest $(PYTESTOPTS) $(TESTOPTS) $(TESTS)
deb: deb:
# Build an official .deb package; only useful for Debian maintainers. # Build an official .deb package; only useful for Debian maintainers.
# To build a local .deb package, use: # To build a local .deb package, use:

View file

@ -125,7 +125,7 @@ def make_comic_tester(name, **kwargs):
def generate_comic_testers(): def generate_comic_testers():
"""For each comic scraper, create a test class.""" """For each comic scraper, create a test class."""
g = globals() g = globals()
if "TRAVIS" in os.environ: if "TESTALL" not in os.environ:
# Get limited number of scraper tests on Travis builds. # Get limited number of scraper tests on Travis builds.
max_scrapers = 1 max_scrapers = 1
scraperclasses = islice(scraper.get_scraperclasses(), 0, max_scrapers) scraperclasses = islice(scraper.get_scraperclasses(), 0, max_scrapers)