Commit f7586035 authored by Thibault Saunier's avatar Thibault Saunier

tests: Run the still image testsuite when running check-integration

This testsuite is based on sample files, and can not be runned when running distcheck
parent 69c1568a
......@@ -28,4 +28,4 @@ check-local:
check-integration:
@PYTHONPATH=$(top_srcdir):$(PYTHONPATH) TEST_INTEGRATION=1 $(PYTHON)\
$(srcdir)/test_integration.py
$(srcdir)/runtests.py
......@@ -4,9 +4,17 @@ import sys
import unittest
import tests
SKIP_FILES = ['common', 'runtests', 'test_integration']
SKIP_FILES = ['common', 'runtests'] #They are not testsuites
#Those files need sample files, and therefore shoud not be tested
#when running distcheck
INTEGRATION_FILES=['test_still_image', 'test_integration']
def gettestnames(which):
if os.getenv("TEST_INTEGRATION"):
return INTEGRATION_FILES
else:
SKIP_FILES.extend(INTEGRATION_FILES)
if not which:
dir = os.path.split(os.path.abspath(__file__))[0]
which = [os.path.basename(p) for p in glob.glob('%s/test_*.py' % dir)]
......
......@@ -1076,17 +1076,3 @@ class TestTransitions(Base):
def testSaveAndLoadWithTransitions(self):
pass
# Readable code ends here <-
if not os.getenv("TEST_INTEGRATION"):
import inspect
for symbol_name in list(globals().keys()):
symbol = globals()[symbol_name]
if inspect.isclass(symbol) and symbol.__name__.startswith('Test') \
and symbol.__module__ == __name__:
del globals()[symbol_name]
if __name__ == "__main__":
unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment