2015-04-15 17:57:43 +00:00
|
|
|
# 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!
|
2018-10-30 23:41:31 +00:00
|
|
|
|
|
|
|
TEST_ENVIRONMENT = \
|
|
|
|
GST_OVERRIDE_SRC_PATH="$(abs_top_srcdir)/gi/overrides" \
|
|
|
|
GST_OVERRIDE_BUILD_PATH="$(abs_top_builddir)/gi/overrides"
|
|
|
|
|
2015-04-15 17:57:43 +00:00
|
|
|
tests = \
|
2015-04-24 07:37:24 +00:00
|
|
|
test_gst.py \
|
2017-07-25 18:29:19 +00:00
|
|
|
test_types.py
|
2003-10-04 13:37:45 +00:00
|
|
|
|
2015-04-15 17:57:43 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
__init__.py \
|
2018-02-18 15:00:48 +00:00
|
|
|
cleanup.py \
|
2015-04-15 17:57:43 +00:00
|
|
|
common.py \
|
2018-02-18 15:00:48 +00:00
|
|
|
gstpython.supp \
|
|
|
|
meson.build \
|
2015-04-15 17:57:43 +00:00
|
|
|
overrides_hack.py \
|
2018-02-18 15:00:48 +00:00
|
|
|
python.supp \
|
|
|
|
runtests.py \
|
2015-04-15 17:57:43 +00:00
|
|
|
$(tests)
|
2004-11-23 10:16:58 +00:00
|
|
|
|
2015-04-15 17:57:43 +00:00
|
|
|
clean-local:
|
|
|
|
rm -rf *.pyc *.pyo
|
2005-10-07 07:19:17 +00:00
|
|
|
|
2015-04-15 17:57:43 +00:00
|
|
|
check-local:
|
2018-10-30 23:41:31 +00:00
|
|
|
$(TEST_ENVIRONMENT) $(PYTHON) $(srcdir)/runtests.py $(tests)
|
2009-02-09 12:23:45 +00:00
|
|
|
|
2008-12-06 15:39:01 +00:00
|
|
|
%.check: %
|
2018-10-30 23:41:31 +00:00
|
|
|
$(TEST_ENVIRONMENT) $(PYTHON) $(srcdir)/runtests.py $*
|
2011-01-12 14:01:39 +00:00
|
|
|
%.forever: %
|
2012-07-30 20:24:10 +00:00
|
|
|
$(srcdir)/cleanup.py
|
2011-01-12 14:01:39 +00:00
|
|
|
@while true; do \
|
|
|
|
$(PYTHON) $(srcdir)/runtests.py $* || break; done
|
|
|
|
@rm -fr *.pyc
|
|
|
|
|
2005-10-07 07:19:17 +00:00
|
|
|
# valgrind all tests
|
2005-10-11 12:42:53 +00:00
|
|
|
valgrind: $(tests)
|
2005-10-07 07:19:17 +00:00
|
|
|
@echo "Valgrinding tests ..."
|
|
|
|
@failed=0; \
|
2005-10-11 12:42:53 +00:00
|
|
|
for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(tests)); do \
|
2005-10-07 07:19:17 +00:00
|
|
|
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
|