2008-08-06 02:13:06 +08:00
|
|
|
"""
|
|
|
|
Module for executing all of the GDAL tests. None
|
|
|
|
of these tests require the use of the database.
|
|
|
|
"""
|
2012-05-18 23:06:25 +08:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2010-10-11 20:55:17 +08:00
|
|
|
from django.utils.unittest import TestSuite, TextTestRunner
|
2008-08-06 02:13:06 +08:00
|
|
|
|
|
|
|
# Importing the GDAL test modules.
|
2012-05-18 23:06:25 +08:00
|
|
|
from . import test_driver, test_ds, test_envelope, test_geom, test_srs
|
2008-08-06 02:13:06 +08:00
|
|
|
|
2009-03-08 07:02:48 +08:00
|
|
|
test_suites = [test_driver.suite(),
|
|
|
|
test_ds.suite(),
|
|
|
|
test_envelope.suite(),
|
|
|
|
test_geom.suite(),
|
|
|
|
test_srs.suite(),
|
2008-08-06 02:13:06 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
def suite():
|
|
|
|
"Builds a test suite for the GDAL tests."
|
|
|
|
s = TestSuite()
|
2012-08-15 18:02:50 +08:00
|
|
|
for test_suite in test_suites:
|
|
|
|
s.addTest(test_suite)
|
2008-08-06 02:13:06 +08:00
|
|
|
return s
|
|
|
|
|
|
|
|
def run(verbosity=1):
|
|
|
|
"Runs the GDAL tests."
|
|
|
|
TextTestRunner(verbosity=verbosity).run(suite())
|