From ad704b5e9c985765e14eb38a0922e702b8bfc25a Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 11 Jan 2013 17:44:05 +0100 Subject: [tests] Tidy up test C++ tests. All tests can now be run from a single executable called 'tests' (created in the build directory). --- tests/test_synthesis.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/test_synthesis.h (limited to 'tests/test_synthesis.h') diff --git a/tests/test_synthesis.h b/tests/test_synthesis.h new file mode 100644 index 0000000..64ee65c --- /dev/null +++ b/tests/test_synthesis.h @@ -0,0 +1,57 @@ +#ifndef TEST_SYNTHESIS_H +#define TEST_SYNTHESIS_H + +#include + +#include "../src/simpl/base.h" +#include "../src/simpl/peak_detection.h" +#include "../src/simpl/partial_tracking.h" +#include "../src/simpl/synthesis.h" +#include "test_common.h" + +namespace simpl +{ + +// --------------------------------------------------------------------------- +// TestMQSynthesis +// --------------------------------------------------------------------------- +class TestMQSynthesis : public CPPUNIT_NS::TestCase { + CPPUNIT_TEST_SUITE(TestMQSynthesis); + CPPUNIT_TEST(test_basic); + CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + +protected: + MQPeakDetection _pd; + MQPartialTracking _pt; + MQSynthesis _synth; + SndfileHandle _sf; + + void test_basic(); +}; + +// --------------------------------------------------------------------------- +// TestLorisSynthesis +// --------------------------------------------------------------------------- +class TestLorisSynthesis : public CPPUNIT_NS::TestCase { + CPPUNIT_TEST_SUITE(TestLorisSynthesis); + CPPUNIT_TEST(test_basic); + CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + +protected: + LorisPeakDetection _pd; + LorisPartialTracking _pt; + LorisSynthesis _synth; + SndfileHandle _sf; + + void test_basic(); +}; + +} // end of namespace simpl + +#endif -- cgit v1.2.3