tests: add audio and video orc tests
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 24 Jul 2012 07:26:42 +0000 (09:26 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 24 Jul 2012 07:26:42 +0000 (09:26 +0200)
tests/check/Makefile.am

index c5ab013..bc67a7c 100644 (file)
@@ -77,7 +77,7 @@ check_subparse =
 endif
 
 if HAVE_ORC
-check_orc = orc/adder orc/audioconvert orc/volume orc/videoscale orc/videotestsrc
+check_orc = orc/video orc/audio orc/adder orc/audioconvert orc/volume orc/videoscale orc/videotestsrc
 else
 check_orc =
 endif
@@ -451,6 +451,12 @@ pipelines_simple_launch_lines_LDADD = \
        $(GST_BASE_LIBS) \
        $(LDADD)
 
+orc_video_CFLAGS = $(ORC_CFLAGS)
+orc_video_LDADD = $(ORC_LIBS) -lorc-test-0.4
+nodist_orc_video_SOURCES = orc/video.c
+orc_audio_CFLAGS = $(ORC_CFLAGS)
+orc_audio_LDADD = $(ORC_LIBS) -lorc-test-0.4
+nodist_orc_audio_SOURCES = orc/audio.c
 orc_adder_CFLAGS = $(ORC_CFLAGS)
 orc_adder_LDADD = $(ORC_LIBS) -lorc-test-0.4
 nodist_orc_adder_SOURCES = orc/adder.c
@@ -467,6 +473,14 @@ orc_videotestsrc_CFLAGS = $(ORC_CFLAGS)
 orc_videotestsrc_LDADD = $(ORC_LIBS) -lorc-test-0.4
 nodist_orc_videotestsrc_SOURCES = orc/videotestsrc.c
 
+orc/video.c: $(top_srcdir)/gst-libs/gst/video/video-orc.orc
+       $(MKDIR_P) orc/
+       $(ORCC) --test -o $@ $<
+
+orc/audio.c: $(top_srcdir)/gst-libs/gst/audio/gstaudiopack.orc
+       $(MKDIR_P) orc/
+       $(ORCC) --test -o $@ $<
+
 orc/adder.c: $(top_srcdir)/gst/adder/gstadderorc.orc
        $(MKDIR_P) orc/
        $(ORCC) --test -o $@ $<