check/: Use a cmdline define to specify the location of a file to use for testing, to avoid breaking distcheck.

Original commit message from CVS:
* check/Makefile.am:
* check/elements/fdsrc.c: (GST_START_TEST):
Use a cmdline define to specify the location of a file to use for
testing, to avoid breaking distcheck.
This commit is contained in:
Jan Schmidt 2005-11-28 10:07:38 +00:00
parent 3cf09efb92
commit 6710452e44
5 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2005-11-28 Jan Schmidt <thaytan@mad.scientist.com>
* check/Makefile.am:
* check/elements/fdsrc.c: (GST_START_TEST):
Use a cmdline define to specify the location of a file to use for
testing, to avoid breaking distcheck.
2005-11-28 Andy Wingo <wingo@pobox.com>
* gst/gstpad.c (fixate_value): Use array functions for arrays.

View file

@ -76,6 +76,8 @@ gst_libs_gdp_SOURCES = \
$(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
gst_libs_gdp_CFLAGS = $(AM_CFLAGS)
elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) -DTESTFILE=\"$(top_builddir)/configure.ac\"
gst_libs_controller_LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
$(LDADD)

View file

@ -150,7 +150,10 @@ GST_START_TEST (test_seeking)
GstQuery *seeking_query;
gboolean seekable;
fail_if ((in_fd = open ("elements/fdsrc.c", O_RDONLY)) < 0);
#ifndef TESTFILE
#error TESTFILE not defined
#endif
fail_if ((in_fd = open (TESTFILE, O_RDONLY)) < 0);
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "fd", in_fd, NULL);

View file

@ -76,6 +76,8 @@ gst_libs_gdp_SOURCES = \
$(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
gst_libs_gdp_CFLAGS = $(AM_CFLAGS)
elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) -DTESTFILE=\"$(top_builddir)/configure.ac\"
gst_libs_controller_LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
$(LDADD)

View file

@ -150,7 +150,10 @@ GST_START_TEST (test_seeking)
GstQuery *seeking_query;
gboolean seekable;
fail_if ((in_fd = open ("elements/fdsrc.c", O_RDONLY)) < 0);
#ifndef TESTFILE
#error TESTFILE not defined
#endif
fail_if ((in_fd = open (TESTFILE, O_RDONLY)) < 0);
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "fd", in_fd, NULL);