mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
d88ae9c476
Original commit message from CVS: Changelog and testsuite
25 lines
530 B
Python
25 lines
530 B
Python
#!/usr/bin/env python
|
|
import glob
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
SKIP_FILES = ['common', 'runtests']
|
|
|
|
dir = os.path.split(os.path.abspath(__file__))[0]
|
|
os.chdir(dir)
|
|
|
|
def gettestnames():
|
|
files = glob.glob('*.py')
|
|
names = map(lambda x: x[:-3], files)
|
|
map(names.remove, SKIP_FILES)
|
|
return names
|
|
|
|
suite = unittest.TestSuite()
|
|
loader = unittest.TestLoader()
|
|
|
|
for name in gettestnames():
|
|
suite.addTest(loader.loadTestsFromName(name))
|
|
|
|
testRunner = unittest.TextTestRunner()
|
|
testRunner.run(suite)
|