skeleton for temporal/BBT testing (empty for now)

This commit is contained in:
Paul Davis 2022-02-12 17:51:30 -07:00
parent f641a0559f
commit 14ac8fd36b
5 changed files with 67 additions and 1 deletions

View 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()
{
}

View 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();
};

View File

@ -6,7 +6,6 @@
CPPUNIT_TEST_SUITE_REGISTRATION(BeatsTest);
using namespace Evoral;
using namespace Temporal;
static const double delta = 1.5 / (double)Beats::PPQN;

View File

@ -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;

View File

@ -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 = ['.']