2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
+ * testsuite/Makefile.am:
+ * testsuite/caps/filtercaps.c: (main):
+ * testsuite/clock/clock1.c: (main):
+ * testsuite/dynparams/dparamstest.c: (gst_dptest_chain), (main):
+ fix some more tests
+
+2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
+
* testsuite/cleanup/cleanup1.c: (create_pipeline):
* testsuite/cleanup/cleanup2.c: (create_pipeline):
* testsuite/cleanup/cleanup4.c: (main):
GST_DEBUG_DIRS = debug
endif
-SUBDIRS = bins bytestream cleanup dynparams ghostpads \
- caps plugin elements clock refcounting tags threads \
- indexers debug $(GST_PARSE_DIRS) $(GST_DEBUG_DIRS) \
- dlopen negotiation schedulers
-
-DIST_SUBDIRS = bins bytestream caps cleanup clock dynparams elements indexers \
- plugin refcounting tags threads parse debug ghostpads \
- dlopen negotiation schedulers
+SUBDIRS = \
+ bins bytestream caps cleanup clock \
+ $(GST_DEBUG_DIRS) \
+ dlopen dynparams \
+ elements ghostpads indexers negotiation \
+ $(GST_PARSE_DIRS) \
+ plugin refcounting schedulers tags threads
+
+DIST_SUBDIRS = \
+ bins bytestream caps cleanup clock \
+ debug \
+ dlopen dynparams \
+ elements ghostpads indexers negotiation \
+ parse \
+ plugin refcounting schedulers tags threads
tests_pass = test_gst_init
tests_fail =
{
GstCaps *caps;
GstElement *sink, *identity;
+ GstElement *pipeline;
gst_init (&argc, &argv);
+ pipeline = gst_pipeline_new ("pipeline");
+ g_assert (pipeline);
identity = gst_element_factory_make ("identity", NULL);
g_assert (identity);
sink = gst_element_factory_make ("fakesink", NULL);
g_assert (sink);
+ gst_bin_add_many (GST_BIN (pipeline), identity, sink, NULL);
gst_element_link_filtered (identity, sink,
gst_caps_new_simple ("audio/x-raw-int", NULL));
caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink"));
return 1;
}
- gst_element_link_many (src, id, sink, NULL);
gst_bin_add_many (GST_BIN (pipeline), src, id, sink, NULL);
+ gst_element_link_many (src, id, sink, NULL);
clock = gst_bin_get_clock (GST_BIN (pipeline));
g_assert (clock != NULL);
testelement = gst_element_factory_make ("dptest", "testelement");
g_assert (testelement);
- gst_element_link (src, testelement);
- gst_element_link (testelement, sink);
-
- gst_bin_add (GST_BIN (pipeline), src);
- gst_bin_add (GST_BIN (pipeline), testelement);
- gst_bin_add (GST_BIN (pipeline), sink);
-
+ gst_bin_add_many (GST_BIN (pipeline), src, testelement, sink, NULL);
+ gst_element_link_many (src, testelement, sink, NULL);
g_object_set (G_OBJECT (src), "num_buffers", 1, NULL);
GST_DEBUG_DIRS = debug
endif
-SUBDIRS = bins bytestream cleanup dynparams ghostpads \
- caps plugin elements clock refcounting tags threads \
- indexers debug $(GST_PARSE_DIRS) $(GST_DEBUG_DIRS) \
- dlopen negotiation schedulers
-
-DIST_SUBDIRS = bins bytestream caps cleanup clock dynparams elements indexers \
- plugin refcounting tags threads parse debug ghostpads \
- dlopen negotiation schedulers
+SUBDIRS = \
+ bins bytestream caps cleanup clock \
+ $(GST_DEBUG_DIRS) \
+ dlopen dynparams \
+ elements ghostpads indexers negotiation \
+ $(GST_PARSE_DIRS) \
+ plugin refcounting schedulers tags threads
+
+DIST_SUBDIRS = \
+ bins bytestream caps cleanup clock \
+ debug \
+ dlopen dynparams \
+ elements ghostpads indexers negotiation \
+ parse \
+ plugin refcounting schedulers tags threads
tests_pass = test_gst_init
tests_fail =
{
GstCaps *caps;
GstElement *sink, *identity;
+ GstElement *pipeline;
gst_init (&argc, &argv);
+ pipeline = gst_pipeline_new ("pipeline");
+ g_assert (pipeline);
identity = gst_element_factory_make ("identity", NULL);
g_assert (identity);
sink = gst_element_factory_make ("fakesink", NULL);
g_assert (sink);
+ gst_bin_add_many (GST_BIN (pipeline), identity, sink, NULL);
gst_element_link_filtered (identity, sink,
gst_caps_new_simple ("audio/x-raw-int", NULL));
caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink"));
return 1;
}
- gst_element_link_many (src, id, sink, NULL);
gst_bin_add_many (GST_BIN (pipeline), src, id, sink, NULL);
+ gst_element_link_many (src, id, sink, NULL);
clock = gst_bin_get_clock (GST_BIN (pipeline));
g_assert (clock != NULL);
testelement = gst_element_factory_make ("dptest", "testelement");
g_assert (testelement);
- gst_element_link (src, testelement);
- gst_element_link (testelement, sink);
-
- gst_bin_add (GST_BIN (pipeline), src);
- gst_bin_add (GST_BIN (pipeline), testelement);
- gst_bin_add (GST_BIN (pipeline), sink);
-
+ gst_bin_add_many (GST_BIN (pipeline), src, testelement, sink, NULL);
+ gst_element_link_many (src, testelement, sink, NULL);
g_object_set (G_OBJECT (src), "num_buffers", 1, NULL);