From 1ec5ffbfc9dc5483e5de04a85cf4372a5c2e89dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 19 Dec 2010 11:17:47 +0100 Subject: [PATCH] autovideoconvert: Rename and adjust unit test too --- Makefile.am | 1 + tests/check/Makefile.am | 2 +- tests/check/elements/.gitignore | 1 + .../{autocolorspace.c => autovideoconvert.c} | 20 +++++++++---------- 4 files changed, 13 insertions(+), 11 deletions(-) rename tests/check/elements/{autocolorspace.c => autovideoconvert.c} (81%) diff --git a/Makefile.am b/Makefile.am index 37b104d17e..93388d7927 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index 81c5862e9c..1b698a3ae8 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -152,7 +152,7 @@ check_PROGRAMS = \ elements/ac3parse \ elements/amrparse \ elements/autoconvert \ - elements/autocolorspace \ + elements/autovideoconvert \ elements/asfmux \ elements/camerabin \ elements/dataurisrc \ diff --git a/tests/check/elements/.gitignore b/tests/check/elements/.gitignore index 175b0bea08..95eaceba02 100644 --- a/tests/check/elements/.gitignore +++ b/tests/check/elements/.gitignore @@ -5,6 +5,7 @@ amrparse asfmux assrender autoconvert +autovideoconvert camerabin deinterleave dataurisrc diff --git a/tests/check/elements/autocolorspace.c b/tests/check/elements/autovideoconvert.c similarity index 81% rename from tests/check/elements/autocolorspace.c rename to tests/check/elements/autovideoconvert.c index 51371f3b5e..c4e9e51055 100644 --- a/tests/check/elements/autocolorspace.c +++ b/tests/check/elements/autovideoconvert.c @@ -1,6 +1,6 @@ /* GStreamer * - * unit test for autocolorspace element + * unit test for autovideoconvert element * Copyright (C) 2009 Jan Schmidt * Copyright (C) 2010 ST-Ericsson SA * @author: Benjamin Gaignard @@ -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);