mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
testsuite/: Added cleanup file to initialize registry before running checks.
Original commit message from CVS: * testsuite/Makefile.am: * testsuite/runtests.py: * testsuite/cleanup.py: Added cleanup file to initialize registry before running checks. Added G_DEBUG=gc-friendly to valgrinding Only test test_*.py files
This commit is contained in:
parent
744d54fc59
commit
8c3aae3818
4 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2006-06-12 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* testsuite/Makefile.am:
|
||||||
|
* testsuite/runtests.py:
|
||||||
|
* testsuite/cleanup.py:
|
||||||
|
Added cleanup file to initialize registry before running checks.
|
||||||
|
Added G_DEBUG=gc-friendly to valgrinding
|
||||||
|
Only test test_*.py files
|
||||||
|
|
||||||
2006-06-11 Edward Hervey <edward@fluendo.com>
|
2006-06-11 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* .cvsignore:
|
* .cvsignore:
|
||||||
|
|
|
@ -33,17 +33,20 @@ tests = \
|
||||||
test_xml.py
|
test_xml.py
|
||||||
|
|
||||||
check-local: testhelper.la
|
check-local: testhelper.la
|
||||||
|
@PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/cleanup.py
|
||||||
@PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/runtests.py
|
@PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/runtests.py
|
||||||
@rm -fr *.pyc
|
@rm -fr *.pyc
|
||||||
|
|
||||||
check-verbose: testhelper.la
|
check-verbose: testhelper.la
|
||||||
|
@VERBOSE=yes PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/cleanup.py
|
||||||
@VERBOSE=yes PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/runtests.py
|
@VERBOSE=yes PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/runtests.py
|
||||||
@rm -fr *.pyc
|
@rm -fr *.pyc
|
||||||
|
|
||||||
EXTRA_DIST = $(tests) common.py runtests.py test-object.h python.supp gstpython.supp
|
EXTRA_DIST = $(tests) common.py cleanup.py runtests.py test-object.h python.supp gstpython.supp
|
||||||
|
|
||||||
if HAVE_VALGRIND
|
if HAVE_VALGRIND
|
||||||
check-valgrind:
|
check-valgrind:
|
||||||
|
$(PYTHON) cleanup.py
|
||||||
make valgrind
|
make valgrind
|
||||||
else
|
else
|
||||||
check-valgrind:
|
check-valgrind:
|
||||||
|
@ -65,7 +68,7 @@ TESTS_ENVIRONMENT = PYTHONPATH=$(top_srcdir)/:$(PYTHONPATH)
|
||||||
# valgrind any given test_x.py by running make test_x.py.valgrind
|
# valgrind any given test_x.py by running make test_x.py.valgrind
|
||||||
%.valgrind: %
|
%.valgrind: %
|
||||||
$(TESTS_ENVIRONMENT) \
|
$(TESTS_ENVIRONMENT) \
|
||||||
G_SLICE=always-malloc \
|
G_DEBUG=gc-friendly G_SLICE=always-malloc \
|
||||||
$(VALGRIND_PATH) -q \
|
$(VALGRIND_PATH) -q \
|
||||||
--suppressions=$(GSTSUPP) \
|
--suppressions=$(GSTSUPP) \
|
||||||
--suppressions=$(PYTHONSUPP) \
|
--suppressions=$(PYTHONSUPP) \
|
||||||
|
|
4
testsuite/cleanup.py
Normal file
4
testsuite/cleanup.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import pygst
|
||||||
|
pygst.require('0.10')
|
||||||
|
import gst
|
||||||
|
|
|
@ -31,7 +31,7 @@ SKIP_FILES = ['common', 'runtests']
|
||||||
def gettestnames(which):
|
def gettestnames(which):
|
||||||
if not which:
|
if not which:
|
||||||
dir = os.path.split(os.path.abspath(__file__))[0]
|
dir = os.path.split(os.path.abspath(__file__))[0]
|
||||||
which = [os.path.basename(p) for p in glob.glob('%s/*.py' % dir)]
|
which = [os.path.basename(p) for p in glob.glob('%s/test_*.py' % dir)]
|
||||||
|
|
||||||
names = map(lambda x: x[:-3], which)
|
names = map(lambda x: x[:-3], which)
|
||||||
for f in SKIP_FILES:
|
for f in SKIP_FILES:
|
||||||
|
|
Loading…
Reference in a new issue