summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-09-09 22:33:36 +0300
committerStefan Kost <ensonic@users.sf.net>2010-09-09 22:33:36 +0300
commit8623c31bae04b56995511cbe998f1f7f96df0a81 (patch)
tree78e55eefbf40dcbabc58f9c53a86f9b8a2224378 /tests
parent30d07e262c0574f398577d705091acb68ddbb892 (diff)
tests: allow running state tests for all elements
Now one can use GST_NO_STATE_IGNORE_ELEMENTS=1 make generic/states.check to try elements that would normaly be skipped.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/Makefile.am2
-rw-r--r--tests/check/generic/states.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index 76af725b..a7eaba9d 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -10,7 +10,7 @@ TESTS_ENVIRONMENT = \
GST_PLUGIN_SYSTEM_PATH= \
GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR) \
GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-ugly@$(top_builddir)" \
- STATE_IGNORE_ELEMENTS="siddec dvdreadsrc cdiocddasrc"
+ GST_STATE_IGNORE_ELEMENTS="siddec dvdreadsrc cdiocddasrc"
# ths core dumps of some machines have PIDs appended
CLEANFILES = core.* test-registry.*
diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c
index 62f557a8..4d80acce 100644
--- a/tests/check/generic/states.c
+++ b/tests/check/generic/states.c
@@ -39,8 +39,8 @@ setup ()
const gchar *STATE_IGNORE_ELEMENTS = NULL;
GST_DEBUG ("getting elements for package %s", PACKAGE);
- STATE_IGNORE_ELEMENTS = g_getenv ("STATE_IGNORE_ELEMENTS");
- if (STATE_IGNORE_ELEMENTS) {
+ STATE_IGNORE_ELEMENTS = g_getenv ("GST_STATE_IGNORE_ELEMENTS");
+ if (!g_getenv ("GST_NO_STATE_IGNORE_ELEMENTS") && STATE_IGNORE_ELEMENTS) {
GST_DEBUG ("Will ignore element factories: '%s'", STATE_IGNORE_ELEMENTS);
ignorelist = g_strsplit (STATE_IGNORE_ELEMENTS, " ", 0);
}