autovideoconvert: Rename and adjust unit test too
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 19 Dec 2010 10:17:47 +0000 (11:17 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 19 Dec 2010 10:21:27 +0000 (11:21 +0100)
Makefile.am
tests/check/Makefile.am
tests/check/elements/.gitignore
tests/check/elements/autovideoconvert.c [moved from tests/check/elements/autocolorspace.c with 81% similarity]

index 37b104d..93388d7 100644 (file)
@@ -52,6 +52,7 @@ CRUFT_FILES = \
        $(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \
        $(top_builddir)/gst/imagefreeze/.libs/*.{so,dll,DLL,dylib} \
        $(top_builddir)/sys/oss4/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/tests/check/elements/autocolorspace \
        $(top_builddir)/tests/check/elements/capssetter \
        $(top_builddir)/tests/check/elements/imagefreeze \
        $(top_builddir)/tests/check/pipelines/metadata \
index 81c5862..1b698a3 100644 (file)
@@ -152,7 +152,7 @@ check_PROGRAMS = \
        elements/ac3parse \
        elements/amrparse \
        elements/autoconvert \
-       elements/autocolorspace \
+       elements/autovideoconvert \
        elements/asfmux \
        elements/camerabin \
        elements/dataurisrc \
index 175b0be..95eaceb 100644 (file)
@@ -5,6 +5,7 @@ amrparse
 asfmux
 assrender
 autoconvert
+autovideoconvert
 camerabin
 deinterleave
 dataurisrc
similarity index 81%
rename from tests/check/elements/autocolorspace.c
rename to tests/check/elements/autovideoconvert.c
index 51371f3..c4e9e51 100644 (file)
@@ -1,6 +1,6 @@
 /* GStreamer
  *
- * unit test for autocolorspace element
+ * unit test for autovideoconvert element
  * Copyright (C) 2009 Jan Schmidt <thaytan@noraisin.net>
  * Copyright (C) 2010 ST-Ericsson SA 
  *  @author: Benjamin Gaignard <benjamin.gaignard@stericsson.com>
@@ -95,13 +95,13 @@ run_test (const gchar * pipeline_string)
 
 }
 
-GST_START_TEST (test_autocolorspace_rbg2bayer)
+GST_START_TEST (test_autovideoconvert_rbg2bayer)
 {
   gchar *pipeline;
 
   pipeline =
       g_strdup_printf
-      ("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,depth=32,width=100,height=100,framerate=10/1 ! autocolorspace ! video/x-raw-bayer,width=100,height=100,format=bggr,framerate=10/1 ! fakesink");
+      ("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,depth=32,width=100,height=100,framerate=10/1 ! autovideoconvert ! video/x-raw-bayer,width=100,height=100,format=bggr,framerate=10/1 ! fakesink");
 
   run_test (pipeline);
   g_free (pipeline);
@@ -109,13 +109,13 @@ GST_START_TEST (test_autocolorspace_rbg2bayer)
 
 GST_END_TEST;
 
-GST_START_TEST (test_autocolorspace_ffmpegcolorspace)
+GST_START_TEST (test_autovideoconvert_ffmpegcolorspace)
 {
   gchar *pipeline;
 
   pipeline =
       g_strdup_printf
-      ("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,width=100,height=100,framerate=10/1 ! autocolorspace ! video/x-raw-rgb,bpp=16,width=100,height=100,framerate=10/1 ! fakesink");
+      ("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,width=100,height=100,framerate=10/1 ! autovideoconvert ! video/x-raw-rgb,bpp=16,width=100,height=100,framerate=10/1 ! fakesink");
 
   run_test (pipeline);
   g_free (pipeline);
@@ -124,16 +124,16 @@ GST_START_TEST (test_autocolorspace_ffmpegcolorspace)
 GST_END_TEST;
 
 static Suite *
-autocolorspace_suite (void)
+autovideoconvert_suite (void)
 {
-  Suite *s = suite_create ("autocolorspace");
+  Suite *s = suite_create ("autovideoconvert");
   TCase *tc_basic = tcase_create ("general");
 
   suite_add_tcase (s, tc_basic);
-  tcase_add_test (tc_basic, test_autocolorspace_rbg2bayer);
-  tcase_add_test (tc_basic, test_autocolorspace_ffmpegcolorspace);
+  tcase_add_test (tc_basic, test_autovideoconvert_rbg2bayer);
+  tcase_add_test (tc_basic, test_autovideoconvert_ffmpegcolorspace);
 
   return s;
 }
 
-GST_CHECK_MAIN (autocolorspace);
+GST_CHECK_MAIN (autovideoconvert);