Make automated FSCommand invocation tests show player-side output.
[gnash.git] / testsuite / libmedia.all / Makefile.am
blobea2bf0d63319ed0bc782a1575b12b2a44a798a8f
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 #   Free Software Foundation, Inc.
5 #   This program is free software; you can redistribute it and/or modify
6 #   it under the terms of the GNU General Public License as published by
7 #   the Free Software Foundation; either version 3 of the License, or
8 #   (at your option) any later version.
10 #   This program is distributed in the hope that it will be useful,
11 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #   GNU General Public License for more details.
15 #   You should have received a copy of the GNU General Public License
16 #   along with this program; if not, write to the Free Software
17 #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 ## Process this file with automake to generate Makefile.in
22 AUTOMAKE_OPTIONS = dejagnu
24 AM_LDFLAGS = \
25         $(top_builddir)/libbase/libgnashbase.la \
26         $(top_builddir)/libmedia/libgnashmedia.la \
27         $(GSTREAMER_PLUGINS_BASE_LIBS) \
28         $(GSTREAMER_APP_LIBS) \
29         $(GSTREAMER_LIBS) \
30         $(BOOST_LIBS) \
31         $(EGL_LIBS) \
32         $(NULL)
34 if ANDROID
35 AM_LDFLAGS +=  -lui -llog
36 endif   # ANDROID
38 localedir = $(datadir)/locale
40 AM_CPPFLAGS = \
41         -I$(top_srcdir)/testsuite \
42         -I$(top_srcdir)/libbase \
43         -I$(top_srcdir)/libmedia \
44         -I$(top_srcdir)/libmedia/gst \
45         -I$(top_srcdir)/cygnal \
46         -I$(top_srcdir)/libcore \
47         -DLOCALEDIR=\"$(localedir)\" \
48         $(BOOST_CFLAGS) \
49         $(DEJAGNU_CFLAGS) \
50         $(PTHREAD_CFLAGS) \
51         $(GSTREAMER_CFLAGS) \
52         $(GSTAPP_CFLAGS) \
53         $(GSTINTERFACES_CFLAGS) 
55 check_PROGRAMS = 
57 if USE_GST_ENGINE
59 # check_PROGRAMS += \
60 #       test_videoinput \
61 #       test_audioinput
63 # test_videoinput_SOURCES = test_videoinput.cpp
64 # test_videoinput_LDADD = $(AM_LDFLAGS) 
65 # test_videoinput_DEPENDENCIES = site-update
67 # test_audioinput_SOURCES = test_audioinput.cpp
68 # test_audioinput_LDADD = $(AM_LDFLAGS)
69 # test_audioinput_DEPENDENCIES = site-update
71 endif
73 TEST_DRIVERS = ../simple.exp
75 CLEANFILES =  \
76         site.exp.bak \
77         testrun.* \
78         fooBar* \
79         *.bin
81 check-DEJAGNU: site-update
82         @runtest=$(RUNTEST); \
83         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
84           $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
85         else \
86           echo "WARNING: could not find \`runtest'" 1>&2; \
87           for i in "$(check_PROGRAMS)"; do \
88             $(SHELL) $$i; \
89           done; \
90         fi
92 site-update: site.exp
93         @rm -fr site.exp.bak
94         @cp site.exp site.exp.bak
95         @sed -e '/testcases/d' site.exp.bak > site.exp
96         @echo "# This is a list of the pre-compiled testcases" >> site.exp
97         @echo "set testcases \"$(check_PROGRAMS)\"" >> site.exp