#! /usr/bin/env python

"""Runs unit tests on all pyslet modules"""

import unittest, logging

import test_html40_19991224
import test_imsbltiv1p0
import test_imscc_profilev1p0
import test_imscc_profilev1p1
import test_imscpv1p2
import test_imsmdv1p2p1
import test_imsqtiv1p2p1
import test_imsqtiv2p1
import test_iso8601
import test_odata2_core
import test_odata2_client
import test_odata2_csdl
import test_odata2_edmx
import test_odata2_memds
import test_odata2_server
import test_odata2_sqlds
import test_qml420
import test_rfc2234
import test_rfc2396
import test_rfc2616
import test_rfc2617
import test_rfc4287
import test_rfc5023
import test_rtf_1p6
import test_unicode5
import test_vfs
import test_xml20081126
import test_xmlnames20091208
import test_xsdatatypes20041028

def suite():
	s=unittest.TestSuite()
	s.addTest(test_html40_19991224.suite())
	s.addTest(test_imsbltiv1p0.suite())
	s.addTest(test_imscc_profilev1p0.suite())
	s.addTest(test_imscc_profilev1p1.suite())
	s.addTest(test_imscpv1p2.suite())
	s.addTest(test_imsmdv1p2p1.suite())
	s.addTest(test_imsqtiv1p2p1.suite())
	s.addTest(test_imsqtiv2p1.suite())
	s.addTest(test_iso8601.suite())
	s.addTest(test_odata2_core.suite())
	s.addTest(test_odata2_client.suite())
	s.addTest(test_odata2_csdl.suite())
	s.addTest(test_odata2_edmx.suite())
	s.addTest(test_odata2_memds.suite())
	s.addTest(test_odata2_server.suite())
	s.addTest(test_odata2_sqlds.suite())
	s.addTest(test_rfc2234.suite())
	s.addTest(test_rfc2396.suite())
	s.addTest(test_rfc2616.suite())
	s.addTest(test_rfc2617.suite())
	s.addTest(test_rfc4287.suite())
	s.addTest(test_rfc5023.suite())
	s.addTest(test_rtf_1p6.suite())
	s.addTest(test_unicode5.suite())
	s.addTest(test_vfs.suite())
	s.addTest(test_xml20081126.suite())
	s.addTest(test_xmlnames20091208.suite())
	s.addTest(test_xsdatatypes20041028.suite())
	return s

def load_tests(loader, tests, pattern):
	return suite()
	
if __name__ == "__main__":
# 	runner=unittest.TextTestRunner()
# 	runner.run(suite())
	logging.basicConfig(level=logging.ERROR)
	unittest.main()
