tests/check/pipelines/simple-launch-lines.c: Tests for #498395.

Original commit message from CVS:
Patch by: René Stadler <mail at renestadler dot de>
* tests/check/pipelines/simple-launch-lines.c:
Tests for #498395.
This commit is contained in:
René Stadler 2007-11-20 11:46:28 +00:00 committed by Stefan Kost
parent 1f0a03d320
commit 8599583911
2 changed files with 34 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-11-20 Stefan Kost <ensonic@users.sf.net>
Patch by: René Stadler <mail at renestadler dot de>
* tests/check/pipelines/simple-launch-lines.c:
Tests for #498395.
2007-11-20 Julien MOUTTE <julien@moutte.net>
* ext/taglib/gsttaglibmux.c: (gst_tag_lib_mux_render_tag),

View file

@ -218,6 +218,32 @@ GST_START_TEST (test_rtppayloaders)
/*s = FAKESRC " ! ! rtpsv3vdepay ! " FAKESINK; */
}
GST_END_TEST
GST_START_TEST (test_video_encoders_decoders)
{
gchar *s;
/* no is-live on the source because we actually want to preroll since
* run_pipeline only goes into PAUSED */
#define ENC_DEC_PIPELINE_STRING(bufcount, enc, dec) "videotestsrc num-buffers=" bufcount " ! " enc " ! " dec " ! fakesink"
#define DEFAULT_BUFCOUNT "5"
s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "jpegenc", "jpegdec");
run_pipeline (setup_pipeline (s), s,
GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
GST_MESSAGE_UNKNOWN);
s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "pngenc", "pngdec");
run_pipeline (setup_pipeline (s), s,
GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
GST_MESSAGE_UNKNOWN);
s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "smokeenc", "smokedec");
run_pipeline (setup_pipeline (s), s,
GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
GST_MESSAGE_UNKNOWN);
}
GST_END_TEST
#endif /* #ifndef GST_DISABLE_PARSE */
Suite * simple_launch_lines_suite (void)
@ -231,6 +257,7 @@ GST_END_TEST
suite_add_tcase (s, tc_chain);
#ifndef GST_DISABLE_PARSE
tcase_add_test (tc_chain, test_rtppayloaders);
tcase_add_test (tc_chain, test_video_encoders_decoders);
#endif
return s;
}