mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
b80ea319cd
Properly porting it and adding a small test about getting fraction from a Gst.Structure
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
# Don't try to use wildcards to replace the list of tests below.
|
|
# http://www.gnu.org/software/automake/manual/automake.html#Wildcards
|
|
# Keep this list sorted!
|
|
tests = \
|
|
test_gst.py \
|
|
test_fraction.py
|
|
|
|
EXTRA_DIST = \
|
|
__init__.py \
|
|
common.py \
|
|
runtests.py \
|
|
overrides_hack.py \
|
|
$(tests)
|
|
|
|
clean-local:
|
|
rm -rf *.pyc *.pyo
|
|
|
|
check-local:
|
|
$(PYTHON) $(srcdir)/runtests.py $(tests)
|
|
|
|
%.check: %
|
|
$(PYTHON) $(srcdir)/runtests.py $*
|
|
%.forever: %
|
|
$(srcdir)/cleanup.py
|
|
@while true; do \
|
|
$(PYTHON) $(srcdir)/runtests.py $* || break; done
|
|
@rm -fr *.pyc
|
|
|
|
# valgrind all tests
|
|
valgrind: $(tests)
|
|
@echo "Valgrinding tests ..."
|
|
@failed=0; \
|
|
for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(tests)); do \
|
|
make $$t.valgrind; \
|
|
if test "$$?" -ne 0; then \
|
|
echo "Valgrind error for test $$t"; \
|
|
failed=`expr $$failed + 1`; \
|
|
whicht="$$whicht $$t"; \
|
|
fi; \
|
|
done; \
|
|
if test "$$failed" -ne 0; then \
|
|
echo "$$failed tests had leaks under valgrind:"; \
|
|
echo "$$whicht"; \
|
|
false; \
|
|
fi
|