Make top-level 'check-torture' and 'check-valgrind' targets functional
authorTim-Philipp Müller <tim@centricular.com>
Tue, 2 Jun 2015 11:32:42 +0000 (12:32 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 2 Jun 2015 11:32:42 +0000 (12:32 +0100)
Makefile.am

index 5c62203..04ec52e 100644 (file)
@@ -16,18 +16,24 @@ ACLOCAL_AMFLAGS = -I m4 -I common/m4
 
 include $(top_srcdir)/common/release.mak
 
+if HAVE_GST_CHECK
 check-valgrind:
-       @true
+       $(MAKE) -C tests/check check-valgrind
 
 check-torture:
-       @true
+       $(MAKE) -C tests/check torture
 
-if HAVE_GST_CHECK
 build-checks:
-       cd tests/check && make build-checks
+       $(MAKE) -C tests/check build-checks
 else
+check-valgrind:
+       echo "'check' library not installed, skipping"
+
+check-torture:
+       echo "'check' library not installed, skipping"
+
 build-checks:
-       true
+       echo "'check' library not installed, skipping"
 endif
 
 CRUFT_FILES = \