# Invoke all tests in this directory.
#   Usage: python testall.py

import os
import regex
import sys

import Test
Test.initialise()

# Uncomment these to modify period between tests and how much output
# to print:
#Test.setdelay(1000)
#Test.setverbose(1)

allTestData = ()
files = os.listdir(os.curdir)
files.sort()

for file in files:
    if regex.search('^.+_test.py$', file) == 0:
	test = file[:-3]
	exec 'import ' + test
	exec 'allTestData = allTestData + ' + test + '.testData'

Test.runTests(allTestData)
