(hopefully) fixes #110707 - not respecting GST_REGISTRY env var and bad testsuite handling

Original commit message from CVS:
(hopefully) fixes #110707 - not respecting GST_REGISTRY env var and
bad testsuite handling
This commit is contained in:
Thomas Vander Stichele 2003-04-13 21:56:57 +00:00
parent 2cad5ffc59
commit eb8cdb1c1e
19 changed files with 75 additions and 54 deletions

View file

@ -394,8 +394,15 @@ init_pre (void)
gst_registry_add_path (_global_registry, PLUGINS_DIR);
#endif /* PLUGINS_USE_BUILDDIR */
homedir = g_get_home_dir ();
user_reg = g_strjoin ("/", homedir, LOCAL_REGISTRY_FILE, NULL);
if (g_getenv ("GST_REGISTRY"))
{
user_reg = g_strdup (g_getenv ("GST_REGISTRY"));
}
else
{
homedir = g_get_home_dir ();
user_reg = g_strjoin ("/", homedir, LOCAL_REGISTRY_FILE, NULL);
}
_user_registry = gst_xml_registry_new ("user_registry", user_reg);
#ifndef GST_DISABLE_REGISTRY

View file

@ -1,8 +1,8 @@
# FIXME : threads bytestream
SUBDIRS = caps plugin elements clock refcounting threads indexers ## cleanup dynparams
GST_PLUGIN_PATH = $(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`/test-registry.xml
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
testprogs = test_gst_init
@ -12,7 +12,10 @@ testprogs =
inspectcheck =
endif
TESTS = $(top_builddir)/tools/gst-register $(testprogs) $(inspectcheck)
# since these TESTS are only run after recursing into subdirs,
# gst-register should be run before that, in the first subdir that uses it
# TESTS = $(top_builddir)/tools/gst-register $(testprogs) $(inspectcheck)
TESTS = $(testprogs) $(inspectcheck)
check_PROGRAMS = $(testprogs)
@ -21,7 +24,7 @@ LIBS = $(GST_LIBS)
AM_CFLAGS = $(GST_CFLAGS)
# we makes them, we gots to clean them
CLEANFILES = test-registry.xml elementstest-registry.xml threadstest-registry.xml
CLEANFILES = test-registry.xml
DIST_SUBDIRS = bytestream caps cleanup clock dynparams elements indexers \
plugin refcounting threads

View file

@ -1,9 +1,12 @@
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=$(GST_PLUGIN_PATH)/testsuite/test-registry.xml
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = intersection compatibility normalisation
TESTS = $(testprogs)
# we run gst-register here, which is a HACK to generate the test registry
# before we actually run the real tests
# a better fix is welcome :)
TESTS = $(top_builddir)/tools/gst-register $(testprogs)
check_PROGRAMS = $(testprogs)

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
FAILING = cleanup3 cleanup4
else
@ -6,9 +9,6 @@ endif
testprogs = cleanup1 cleanup2 $(FAILING) cleanup5
GST_PLUGIN_PATH = $(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`/test-registry.xml
TESTS = $(testprogs)
check_PROGRAMS = $(testprogs)

View file

@ -1,5 +1,5 @@
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=$(GST_PLUGIN_PATH)/testsuite/test-registry.xml
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = clock1 clock2

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
tests_failing = fake
else
@ -5,10 +8,6 @@ tests_failing =
endif
tests_working = name tee property
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`test-registry.xml
TESTS = $(tests_working)
check_PROGRAMS = $(tests_failing) $(tests_working)

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = cache1 indexdump
TESTS = $(testprogs)

View file

@ -1,7 +1,7 @@
plugindir = $(shell cd $(top_builddir)/testsuite/plugin/ && pwd)
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=$(GST_PLUGIN_PATH)/testsuite/test-registry.xml
plugindir = $(shell cd $(top_builddir)/testsuite/plugin/ && pwd)
plugin_LTLIBRARIES = libtestplugin.la libtestplugin2.la

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
tests_failing = element bin element_pad pad
else
@ -11,9 +14,6 @@ pad_SOURCES = pad.c mem.c
element_pad_SOURCES = element_pad.c mem.c
bin_SOURCES = bin.c mem.c
GST_PLUGIN_PATH = $(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`/test-registry.xml
TESTS = $(tests_working)
check_PROGRAMS = $(TESTS)

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = thread1 thread2 thread3 thread5
testsfailing = threadb threadc threadd threade threadf thread4
@ -7,10 +10,6 @@ check_PROGRAMS = $(testprogs)
noinst_PROGRAMS = $(testsfailing)
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`test-registry.xml
LDADD = $(GST_LIBS)
AM_CFLAGS = $(GST_CFLAGS)

View file

@ -1,8 +1,8 @@
# FIXME : threads bytestream
SUBDIRS = caps plugin elements clock refcounting threads indexers ## cleanup dynparams
GST_PLUGIN_PATH = $(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`/test-registry.xml
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
testprogs = test_gst_init
@ -12,7 +12,10 @@ testprogs =
inspectcheck =
endif
TESTS = $(top_builddir)/tools/gst-register $(testprogs) $(inspectcheck)
# since these TESTS are only run after recursing into subdirs,
# gst-register should be run before that, in the first subdir that uses it
# TESTS = $(top_builddir)/tools/gst-register $(testprogs) $(inspectcheck)
TESTS = $(testprogs) $(inspectcheck)
check_PROGRAMS = $(testprogs)
@ -21,7 +24,7 @@ LIBS = $(GST_LIBS)
AM_CFLAGS = $(GST_CFLAGS)
# we makes them, we gots to clean them
CLEANFILES = test-registry.xml elementstest-registry.xml threadstest-registry.xml
CLEANFILES = test-registry.xml
DIST_SUBDIRS = bytestream caps cleanup clock dynparams elements indexers \
plugin refcounting threads

View file

@ -1,9 +1,12 @@
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=$(GST_PLUGIN_PATH)/testsuite/test-registry.xml
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = intersection compatibility normalisation
TESTS = $(testprogs)
# we run gst-register here, which is a HACK to generate the test registry
# before we actually run the real tests
# a better fix is welcome :)
TESTS = $(top_builddir)/tools/gst-register $(testprogs)
check_PROGRAMS = $(testprogs)

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
FAILING = cleanup3 cleanup4
else
@ -6,9 +9,6 @@ endif
testprogs = cleanup1 cleanup2 $(FAILING) cleanup5
GST_PLUGIN_PATH = $(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`/test-registry.xml
TESTS = $(testprogs)
check_PROGRAMS = $(testprogs)

View file

@ -1,5 +1,5 @@
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=$(GST_PLUGIN_PATH)/testsuite/test-registry.xml
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = clock1 clock2

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
tests_failing = fake
else
@ -5,10 +8,6 @@ tests_failing =
endif
tests_working = name tee property
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`test-registry.xml
TESTS = $(tests_working)
check_PROGRAMS = $(tests_failing) $(tests_working)

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = cache1 indexdump
TESTS = $(testprogs)

View file

@ -1,7 +1,7 @@
plugindir = $(shell cd $(top_builddir)/testsuite/plugin/ && pwd)
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=$(GST_PLUGIN_PATH)/testsuite/test-registry.xml
plugindir = $(shell cd $(top_builddir)/testsuite/plugin/ && pwd)
plugin_LTLIBRARIES = libtestplugin.la libtestplugin2.la

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
if BUILD_FAILING_TESTS
tests_failing = element bin element_pad pad
else
@ -11,9 +14,6 @@ pad_SOURCES = pad.c mem.c
element_pad_SOURCES = element_pad.c mem.c
bin_SOURCES = bin.c mem.c
GST_PLUGIN_PATH = $(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`/test-registry.xml
TESTS = $(tests_working)
check_PROGRAMS = $(TESTS)

View file

@ -1,3 +1,6 @@
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
testprogs = thread1 thread2 thread3 thread5
testsfailing = threadb threadc threadd threade threadf thread4
@ -7,10 +10,6 @@ check_PROGRAMS = $(testprogs)
noinst_PROGRAMS = $(testsfailing)
GST_PLUGIN_PATH=$(shell cd $(top_builddir) && pwd)
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(GST_PLUGIN_PATH) GST_REGISTRY=`pwd`test-registry.xml
LDADD = $(GST_LIBS)
AM_CFLAGS = $(GST_CFLAGS)