## Runs all tests in the current directory## Execute like:# python runalltests.py## Alternatively use the testrunner: # python /path/to/Zope/utilities/testrunner.py -qa#importos,sysif__name__=='__main__':execfile(os.path.join(sys.path[0],'framework.py'))importunittestTestRunner=unittest.TextTestRunnersuite=unittest.TestSuite()tests=os.listdir(os.curdir)tests=[n[:-3]fornintestsifn.startswith('test')andn.endswith('.py')]fortestintests:m=__import__(test)ifhasattr(m,'test_suite'):suite.addTest(m.test_suite())if__name__=='__main__':TestRunner().run(suite)