Adding gst-python package
[platform/upstream/gst-python.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 tests = \
5         test_gst.py \
6         test_fraction.py
7
8 EXTRA_DIST = \
9         __init__.py \
10         common.py \
11         runtests.py \
12         overrides_hack.py \
13         $(tests)
14
15 clean-local:
16         rm -rf *.pyc *.pyo
17
18 check-local:
19         $(PYTHON) $(srcdir)/runtests.py $(tests)
20
21 %.check: %
22         $(PYTHON) $(srcdir)/runtests.py $*
23 %.forever: %
24         $(srcdir)/cleanup.py
25         @while true; do \
26         $(PYTHON) $(srcdir)/runtests.py $* || break; done
27         @rm -fr *.pyc
28
29 # valgrind all tests
30 valgrind: $(tests)
31         @echo "Valgrinding tests ..."
32         @failed=0;                                                      \
33         for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(tests)); do   \
34                 make $$t.valgrind;                                      \
35                 if test "$$?" -ne 0; then                               \
36                         echo "Valgrind error for test $$t";             \
37                         failed=`expr $$failed + 1`;                     \
38                         whicht="$$whicht $$t";                          \
39                 fi;                                                     \
40         done;                                                           \
41         if test "$$failed" -ne 0; then                                  \
42                 echo "$$failed tests had leaks under valgrind:";        \
43                 echo "$$whicht";                                        \
44                 false;                                                  \
45         fi