Commit fe3efcb4 authored by Guillaume Desmottes's avatar Guillaume Desmottes

add tests infrastructure

parent db6d910d
...@@ -32,4 +32,7 @@ test/*.log ...@@ -32,4 +32,7 @@ test/*.log
test/*.out test/*.out
test/tmp test/tmp
bug bug
test-driver
tests/*.log
tests/*.trs
tests/test-util
SUBDIRS = src SUBDIRS = src tests
EXTRA_DIST = autogen.sh EXTRA_DIST = autogen.sh
...@@ -99,6 +99,7 @@ AC_SUBST(GST_PLUGIN_LDFLAGS) ...@@ -99,6 +99,7 @@ AC_SUBST(GST_PLUGIN_LDFLAGS)
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile \ Makefile \
src/Makefile]) src/Makefile \
tests/Makefile])
AC_OUTPUT AC_OUTPUT
...@@ -14,19 +14,25 @@ plugin_LTLIBRARIES = libgstdlnasrc.la ...@@ -14,19 +14,25 @@ plugin_LTLIBRARIES = libgstdlnasrc.la
############################################################################## ##############################################################################
# sources used to compile this plug-in # sources used to compile this plug-in
libgstdlnasrc_la_SOURCES = \ sources = \
gstdlnasrc.c \ gstdlnasrc.c \
gstdlnasrc.h \ gstdlnasrc.h \
util.c \ util.c \
util.h util.h
AM_CFLAGS = $(GST_CFLAGS) $(SOUP_CFLAGS)
# compiler and linker flags used to compile this plugin, set in configure.ac # compiler and linker flags used to compile this plugin, set in configure.ac
libgstdlnasrc_la_CFLAGS = $(GST_CFLAGS) $(SOUP_CFLAGS) libgstdlnasrc_la_SOURCES = $(sources)
libgstdlnasrc_la_CXXFLAGS = $(GST_CFLAGS)
libgstdlnasrc_la_LIBADD = $(GST_LIBS) $(SOUP_LIBS)
libgstdlnasrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstdlnasrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstdlnasrc_la_LIBADD = $(GST_LIBS) $(SOUP_LIBS)
libgstdlnasrc_la_LIBTOOLFLAGS = --tag=disable-static libgstdlnasrc_la_LIBTOOLFLAGS = --tag=disable-static
# convenient internal lib used for tests
libdlnasrc_internal_la_SOURCES = $(sources)
noinst_LTLIBRARIES = libdlnasrc-internal.la
# headers we need but don't want installed # headers we need but don't want installed
noinst_HEADERS = \ noinst_HEADERS = \
gstdlnasrc.h \ gstdlnasrc.h \
......
programs_list = \
test-util
AM_CFLAGS = \
-I${top_srcdir}/src -I${top_builddir}/src \
$(GST_CFLAGS) $(SOUP_CFLAGS)
AM_LDFLAGS = \
$(GST_LIBS) \
$(SOUP_LIBS) \
$(GST_PLUGIN_LDFLAGS)
LDADD = \
$(top_builddir)/src/libdlnasrc-internal.la
noinst_PROGRAMS = $(programs_list)
TESTS = $(programs_list)
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <glib.h>
#include "util.h"
int
main (int argc,
char **argv)
{
g_test_init (&argc, &argv, NULL);
return g_test_run ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment