tests: tune skipping checks if we have disabled subsystems
authorStefan Kost <ensonic@users.sf.net>
Mon, 6 Sep 2010 11:32:00 +0000 (14:32 +0300)
committerStefan Kost <ensonic@users.sf.net>
Mon, 6 Sep 2010 11:35:26 +0000 (14:35 +0300)
Skip ABI tests if some subsystems are off. Remove DISABLE_GST_DEBUG from
skipping export checks as this is safe now.

Makefile.am
tests/check/Makefile.am

index 6f20a24..e82c7e2 100644 (file)
@@ -142,7 +142,6 @@ include $(top_srcdir)/common/coverage/lcov.mak
 
 # Do not run the check-exports test in case any option which causes the API to
 # change has been used
-if !GST_DISABLE_GST_DEBUG
 if !GST_DISABLE_LOADSAVE
 if !GST_DISABLE_REGISTRY
 if !GST_DISABLE_TRACE
@@ -150,7 +149,6 @@ CHECK_EXPORTS = check-exports
 endif
 endif
 endif
-endif
 
 check: $(CHECK_EXPORTS) check-enum-gettypes
 
index db23384..535a2e5 100644 (file)
@@ -33,6 +33,17 @@ else
 PARSE_CHECKS = pipelines/simple-launch-lines pipelines/cleanup pipelines/parse-launch
 endif
 
+# Do not run the abi test in case any option which causes the API to change has
+# been used
+if !GST_DISABLE_LOADSAVE
+if !GST_DISABLE_REGISTRY
+if !GST_DISABLE_TRACE
+ABI_CHECKS = gst/gstabi
+endif
+endif
+endif
+
+
 # if it's calling gst_element_factory_make(), it will probably not work without
 # a registry
 if GST_DISABLE_REGISTRY
@@ -73,7 +84,7 @@ REGISTRY_CHECKS =                             \
 endif
 
 check_PROGRAMS =                               \
-       gst/gstabi                              \
+       $(ABI_CHECKS)                           \
        gst/gstbuffer                           \
        gst/gstbufferlist                       \
        gst/gstbus                              \