tests: Add autogenerated orc tests
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 12 Jun 2010 12:12:04 +0000 (14:12 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 12 Jun 2010 12:12:04 +0000 (14:12 +0200)
tests/check/Makefile.am

index 988a3f5bc9493d9ff1c1de47cf02f9012f5da73f..313044c8ae3f34219e0a7ca3fa8094215dc9479c 100644 (file)
@@ -31,7 +31,7 @@ TESTS_ENVIRONMENT = \
 # the core dumps of some machines have PIDs appended
 CLEANFILES = core.* test-registry.*
 
-clean-local: clean-local-check
+clean-local: clean-local-check clean-local-orc
 
 if USE_ANNODEX
 check_annodex = \
@@ -89,6 +89,13 @@ else
 check_wavpack =
 endif
 
+if HAVE_ORC
+check_orc = orc/deinterlace orc/videomixer orc/videobox
+else
+check_orc =
+endif
+
+
 check_PROGRAMS = \
        generic/states \
        $(check_annodex) \
@@ -141,7 +148,8 @@ check_PROGRAMS = \
        $(check_soup) \
        $(check_sunaudio) \
        $(check_taglib) \
-       $(check_wavpack)
+       $(check_wavpack) \
+       $(check_orc)
 
 VALGRIND_TO_FIX = \
        elements/rtp-payloading
@@ -230,4 +238,23 @@ elements_gdkpixbufsink_LDADD = \
 pipelines_wavpack_LDADD = $(LDADD) $(GST_BASE_LIBS)
 pipelines_wavpack_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
 
+orc_deinterlace_CFLAGS = $(ORC_CFLAGS)
+orc_deinterlace_LDADD = $(ORC_LIBS) -lorc-test-0.4
+orc_videomixer_CFLAGS = $(ORC_CFLAGS)
+orc_videomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
+orc_videobox_CFLAGS = $(ORC_CFLAGS)
+orc_videobox_LDADD = $(ORC_LIBS) -lorc-test-0.4
+
+orc/deinterlace.c: $(top_srcdir)/gst/deinterlace/tvtime.orc
+       $(MKDIR_P) orc/
+       $(ORCC) --test -o $@ $<
+
+orc/videomixer.c: $(top_srcdir)/gst/videomixer/blendorc.orc
+       $(MKDIR_P) orc/
+       $(ORCC) --test -o $@ $<
+
+orc/videobox.c: $(top_srcdir)/gst/videobox/gstvideoboxorc.orc
+       $(MKDIR_P) orc/
+       $(ORCC) --test -o $@ $<
+
 EXTRA_DIST = gst-plugins-good.supp