skeleton for temporal/BBT testing (empty for now)
This commit is contained in:
parent
f641a0559f
commit
14ac8fd36b
40
libs/temporal/test/BBTTest.cc
Normal file
40
libs/temporal/test/BBTTest.cc
Normal file
|
@ -0,0 +1,40 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "temporal/beats.h"
|
||||
|
||||
#include "BBTTest.h"
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(BBTTest);
|
||||
|
||||
using namespace Temporal;
|
||||
|
||||
void
|
||||
BBTTest::createTest()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
BBTTest::addTest()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
BBTTest::subtractTest()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
BBTTest::multiplyTest()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
BBTTest::roundTest()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
BBTTest::convertTest()
|
||||
{
|
||||
}
|
||||
|
22
libs/temporal/test/BBTTest.h
Normal file
22
libs/temporal/test/BBTTest.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <cppunit/TestFixture.h>
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
class BBTTest : public CppUnit::TestFixture
|
||||
{
|
||||
CPPUNIT_TEST_SUITE(BBTTest);
|
||||
CPPUNIT_TEST(createTest);
|
||||
CPPUNIT_TEST(addTest);
|
||||
CPPUNIT_TEST(subtractTest);
|
||||
CPPUNIT_TEST(multiplyTest);
|
||||
CPPUNIT_TEST(convertTest);
|
||||
CPPUNIT_TEST(roundTest);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
public:
|
||||
void createTest();
|
||||
void addTest();
|
||||
void subtractTest();
|
||||
void multiplyTest();
|
||||
void convertTest();
|
||||
void roundTest();
|
||||
};
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(BeatsTest);
|
||||
|
||||
using namespace Evoral;
|
||||
using namespace Temporal;
|
||||
|
||||
static const double delta = 1.5 / (double)Beats::PPQN;
|
||||
|
|
|
@ -51,6 +51,10 @@ main(int argc, char* argv[])
|
|||
if (!PBD::init ()) return 1;
|
||||
Temporal::init ();
|
||||
|
||||
// TempoMap::SharedPtr tmap = TempoMap::write_copy (); /* get writable copy of current tempo map */
|
||||
// change it
|
||||
// TempoMap::update (tmap); /* update the global tempo map manager */
|
||||
|
||||
CppUnit::TestResult testresult;
|
||||
|
||||
CppUnit::TestResultCollector collectedresults;
|
||||
|
|
|
@ -85,6 +85,7 @@ def build(bld):
|
|||
obj = bld(features = 'cxx cxxprogram')
|
||||
obj.source = '''
|
||||
test/BeatTest.cc
|
||||
test/BBTTest.cc
|
||||
test/testrunner.cc
|
||||
'''
|
||||
obj.includes = ['.']
|
||||
|
|
Loading…
Reference in New Issue
Block a user