overrides: fix callback setter overrides (bis)
[platform/upstream/gstreamer.git] / testsuite / Makefile.am
1 # Don't try to use wildcards to replace the list of tests below.
2 # http://www.gnu.org/software/automake/manual/automake.html#Wildcards
3 # Keep this list sorted!
4
5 TEST_ENVIRONMENT = \
6         GST_OVERRIDE_SRC_PATH="$(abs_top_srcdir)/gi/overrides" \
7         GST_OVERRIDE_BUILD_PATH="$(abs_top_builddir)/gi/overrides"
8
9 tests = \
10         test_gst.py \
11         test_types.py
12
13 EXTRA_DIST = \
14         __init__.py \
15         cleanup.py \
16         common.py \
17         gstpython.supp \
18         meson.build \
19         overrides_hack.py \
20         python.supp \
21         runtests.py \
22         $(tests)
23
24 clean-local:
25         rm -rf *.pyc *.pyo
26
27 check-local:
28         $(TEST_ENVIRONMENT) $(PYTHON) $(srcdir)/runtests.py $(tests)
29
30 %.check: %
31         $(TEST_ENVIRONMENT) $(PYTHON) $(srcdir)/runtests.py $*
32 %.forever: %
33         $(srcdir)/cleanup.py
34         @while true; do \
35         $(PYTHON) $(srcdir)/runtests.py $* || break; done
36         @rm -fr *.pyc
37
38 # valgrind all tests
39 valgrind: $(tests)
40         @echo "Valgrinding tests ..."
41         @failed=0;                                                      \
42         for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(tests)); do   \
43                 make $$t.valgrind;                                      \
44                 if test "$$?" -ne 0; then                               \
45                         echo "Valgrind error for test $$t";             \
46                         failed=`expr $$failed + 1`;                     \
47                         whicht="$$whicht $$t";                          \
48                 fi;                                                     \
49         done;                                                           \
50         if test "$$failed" -ne 0; then                                  \
51                 echo "$$failed tests had leaks under valgrind:";        \
52                 echo "$$whicht";                                        \
53                 false;                                                  \
54         fi