gstreamer/testsuite/Makefile.am
Thibault Saunier b80ea319cd tests: Add test_fraction back in the testsuite
Properly porting it and adding a small test about getting fraction
from a Gst.Structure
2015-04-24 11:21:44 +02:00

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