Commit 0175fa08 authored by Marcin Kolny's avatar Marcin Kolny

Tests: rename tests regression to integration

parent f27bf4cb
......@@ -571,18 +571,18 @@ tests/test-plugin-derivedfrombasetransform
tests/test-plugin-pushsrc
tests/test-plugin-register
tests/test-regression-bininpipeline
tests/test-regression-binplugin
tests/test-regression-rewritefile
test-regression-seekonstartup
tests/test-regression-videoduration
tests/test-integration-bininpipeline
tests/test-integration-binplugin
tests/test-integration-rewritefile
tests/test-integration-seekonstartup
tests/test-integration-videoduration
tests/*.log
tests/*.trs
#tests/resources/
tests/resources/test-regression-bininpipeline-output-image.jpg
tests/resources/test-regression-binplugin-output-image.jpg
tests/resources/test-integration-bininpipeline-output-image.jpg
tests/resources/test-integration-binplugin-output-image.jpg
# tools/
/tools/extra_defs_gen/generate_defs_gst
......
......@@ -52,17 +52,17 @@ check_PROGRAMS = \
test-plugin-pushsrc \
test-plugin-register \
\
test-regression-bininpipeline \
test-regression-binplugin \
test-regression-rewritefile \
test-regression-seekonstartup \
test-regression-videoduration
test-integration-bininpipeline \
test-integration-binplugin \
test-integration-rewritefile \
test-integration-seekonstartup \
test-integration-videoduration
# Include run of test programs in check:
TESTS = $(check_PROGRAMS)
TEST_GTEST_SOURCES = main.cc
TEST_REGRESSION_UTILS = regression/utils.cc
TEST_INTEGRATION_UTILS = integration/utils.cc
test_allocator_SOURCES = $(TEST_GTEST_SOURCES) test-allocator.cc
test_atomicqueue_SOURCES = $(TEST_GTEST_SOURCES) test-atomicqueue.cc
......@@ -95,8 +95,8 @@ test_plugin_derivedfrombasetransform_SOURCES = $(TEST_GTEST_SOURCES) plugins/
test_plugin_pushsrc_SOURCES = $(TEST_GTEST_SOURCES) plugins/test-plugin-pushsrc.cc
test_plugin_register_SOURCES = $(TEST_GTEST_SOURCES) plugins/test-plugin-register.cc
test_regression_bininpipeline_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_REGRESSION_UTILS) regression/test-regression-bininpipeline.cc
test_regression_binplugin_SOURCES = $(TEST_GTEST_SOURCES) regression/test-regression-binplugin.cc
test_regression_rewritefile_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_REGRESSION_UTILS) regression/test-regression-rewritefile.cc
test_regression_seekonstartup_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_REGRESSION_UTILS) regression/test-regression-seekonstartup.cc
test_regression_videoduration_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_REGRESSION_UTILS) regression/test-regression-videoduration.cc
test_integration_bininpipeline_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_INTEGRATION_UTILS) integration/test-integration-bininpipeline.cc
test_integration_binplugin_SOURCES = $(TEST_GTEST_SOURCES) integration/test-integration-binplugin.cc
test_integration_rewritefile_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_INTEGRATION_UTILS) integration/test-integration-rewritefile.cc
test_integration_seekonstartup_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_INTEGRATION_UTILS) integration/test-integration-seekonstartup.cc
test_integration_videoduration_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_INTEGRATION_UTILS) integration/test-integration-videoduration.cc
......@@ -5,8 +5,8 @@
* Author: loganek
*/
#ifndef TESTS_REGRESSION_PLUGINBIN_H_
#define TESTS_REGRESSION_PLUGINBIN_H_
#ifndef TESTS_INTEGRATION_PLUGINBIN_H_
#define TESTS_INTEGRATION_PLUGINBIN_H_
#include <gstreamermm.h>
#include <gstreamermm/private/bin_p.h>
......@@ -66,4 +66,4 @@ public:
}
};
#endif /* TESTS_REGRESSION_PLUGINBIN_H_ */
#endif /* TESTS_INTEGRATION_PLUGINBIN_H_ */
/*
* test-regression-bininpipeline.cc
* test-integration-bininpipeline.cc
*
* Created on: 5 sie 2013
* Author: loganek
......@@ -67,10 +67,10 @@ bool on_bus_message(const RefPtr<Bus>&, const Glib::RefPtr<Message>& message)
return true;
}
TEST(BinInPipelineRegressionTest, CustomBinShouldCorrectPassThroughImage)
TEST(IntegrationBinInPipelineTest, CustomBinShouldCorrectPassThroughImage)
{
Glib::ustring input_png = "resources/input-image.png",
output_jpg = "resources/test-regression-bininpipeline-output-image.jpg";
output_jpg = "resources/test-integration-bininpipeline-output-image.jpg";
mainloop = Glib::MainLoop::create();
MM_ASSERT_TRUE(mainloop);
......
/*
* test-regression-binplugin.cc
* test-integration-binplugin.cc
*
* Created on: 8 sie 2013
* Author: loganek
......@@ -33,14 +33,14 @@ bool on_bus_message(const RefPtr<Bus>&, const Glib::RefPtr<Message>& message)
return true;
}
TEST(BinPluginRegressionTest, DISABLED_ShouldDecodeAndEncodeFile)
TEST(IntegrationBinPluginTest, DISABLED_ShouldDecodeAndEncodeFile)
{
Plugin::register_static(GST_VERSION_MAJOR, GST_VERSION_MINOR, "pluginbin",
"pluginbin is example of C++ element", sigc::ptr_fun(&PluginBin::register_pluginbin), "0.1",
"LGPL", "source?", "package?", "http://example.com");
Glib::ustring input_png = "resources/input-image.png",
output_jpg = "resources/test-regression-binplugin-output-image.jpg";
output_jpg = "resources/test-integration-binplugin-output-image.jpg";
mainloop = Glib::MainLoop::create();
MM_ASSERT_TRUE(mainloop);
......
/*
* test-rewritefile.cc
* test-integration-rewritefile.cc
*
* Created on: Aug 5, 2013
* Author: m.kolny
......@@ -33,7 +33,7 @@ bool on_bus_message(const RefPtr<Bus>&, const Glib::RefPtr<Message>& message)
return true;
}
TEST(RegressionRewriteFileTest, CreateAndRewriteFile)
TEST(IntegrationRewriteFileTest, CreateAndRewriteFile)
{
Glib::ustring input_filename = "rewrite-file-test.ogg",
output_filename = "rewrite-file-output.ogg";
......
/*
* test-regression-seekonstartup.cc
* test-integration-seekonstartup.cc
*
* Created on: 5 sie 2013
* Author: loganek
......@@ -106,7 +106,7 @@ void no_more_pads()
dec_counter();
}
TEST(RegressionSeekOnStartupTest, SeekToPositionWhenPipelineStarts)
TEST(IntegrationSeekOnStartupTest, SeekToPositionWhenPipelineStarts)
{
Glib::ustring input_filename = "seek-on-startup-test.ogg";
......
/*
* test-regression-videoduration.cc
* test-integration-videoduration.cc
*
* Created on: Aug 5, 2013
* Author: m.kolny
......@@ -57,7 +57,7 @@ bool on_timeout()
return TRUE;
}
TEST(RegressionVideodurationTest, CreateVideoAndCheckDuration)
TEST(IntegrationVideodurationTest, CreateVideoAndCheckDuration)
{
Glib::ustring input_filename = "videoduration-test.ogg";
......
......@@ -5,12 +5,12 @@
* Author: m.kolny
*/
#ifndef TESTS_REGRESSION_UTILS_H_
#define TESTS_REGRESSION_UTILS_H_
#ifndef TESTS_INTEGRATION_UTILS_H_
#define TESTS_INTEGRATION_UTILS_H_
#include <gstreamermm.h>
#include <fstream>
void GenerateSampleOggFile(int num_buffers, const Glib::ustring& filename);
bool FilesEqual(const std::string& filename1, const std::string& filename2);
#endif /* TESTS_REGRESSION_UTILS_H_ */
#endif /* TESTS_INTEGRATION_UTILS_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment