summaryrefslogtreecommitdiff
path: root/libs/evoral/test
AgeCommit message (Collapse)Author
2020-01-16Fix test breakage from a855119bddNikolaus Gullotta
2019-11-02rename all Evoral source from .(hpp|cpp)$ to .(h|cc)Paul Davis
2019-09-18Fix Wdeprecated, dynamic exceptionRobin Gareus
Dynamic exception specifications are deprecated in C++11, and were removed in C++17.
2019-09-05Unit-test: parameter ranges outside [0..1]Robin Gareus
More updates after 3d15499cdacacbafa32c8f * set parameter-range for MIDI sequences * set parameter-range for cubic spline
2019-09-05Fix libevoal unit-test compilationRobin Gareus
2019-08-03Update core library GPL boilerplate and (C) from git logRobin Gareus
2017-09-18add _locked() variants to new tempo experimentPaul Davis
2016-12-04Update evoral test suiteDavid Robillard
2016-12-04Improve coverage of evoral testsDavid Robillard
2016-12-04Improve coverage of evoral testsDavid Robillard
2016-12-03Fix Sequence testDavid Robillard
2016-12-03Fix event type and parameter type confusionDavid Robillard
I'm not sure if this is really the best way to do event types (should it just be a completely static enum in evoral, or completely dynamic and provided by the type map, or a mix like currently?), but previously the event type was frequently set to either total garbage, or parameter types, which are a different thing. This fixes all those cases, and makes Evoral::EventType an enum so the compiler will warn about implicit conversions from int.
2016-12-03Remove Evoral::MIDIEventDavid Robillard
It is slightly questionable whether type specific methods like velocity() belong on Event at all, these may be better off as free functions. However the code currently uses them as methods in many places, and it seems like a step in the right direction, since, for example, we might some day have events that have a velocity but aren't stored as MIDI messages (e.g. if Ardour uses an internal musical model that is more expressive). In any case, the former inheritance and plethora of sloppy casts is definitely not the right thing.
2016-03-21Trim dependence on evoral types.hpp and Beats.hppDavid Robillard
2015-10-07only subdivide plugin-cycle when automation is playingRobin Gareus
PluginInsert::automation_run() subdivides plugin-run on every control-port automation event (without splitting the process cycle). libevoral has no automation-control context, hence this function must be implemented by Automatable.
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from .cpp and .hpp files missed by ↵Paul Davis
previous commit
2015-09-13hack around a bug in cppunit/mingw/windows.Robin Gareus
2015-09-13adjust precision to specified value, avoid "0".Robin Gareus
2015-09-13allow to run unit-test under wine from srcdir.Robin Gareus
2015-02-13Add a test for the constrained cubic interpolation of Evoral::CurveColin Fletcher
Add a test, based on the worked example in www.korf.co.uk/spline.pdf, for the constrained cubic spline interpolation. The delta values for the float comparisons are rather arbitrary, I'm sorry to say: they're basically chosen so that everything passes.
2015-01-20few more basic ControList/Curve TestsRobin Gareus
2015-01-192-point Curve Linear Interpolation TestRobin Gareus
2015-01-19minimalistic Evoral::Curve Unit Test.Robin Gareus
2015-01-07MusicalTime => Beats.David Robillard
2014-12-03Call PBD::init from evoral testrunnerTim Mayberry
This is needed to set _fmode = O_BINARY for libsmf/fread and fixes takeFiveTest on windows
2014-12-03Use test utility function to find evoral test filesTim Mayberry
either via EVORAL_TEST_PATH env var or on windows via directory relative to dll
2014-12-03Use PBD::tmp_writable_directory to write evoral test file intoTim Mayberry
no need to remove directory as it is temporary
2014-12-02Fix evoral test suite.David Robillard
2014-12-01Replace half-baked param metadata with descriptor.David Robillard
Among other things, this means that automation controls/lists have the actual min/max/normal/toggled of parameters, and not those inferred from the Parameter ID, which is not correct for things like plugin parameters. Pushing things down to the Evoral::ParmeterDescriptor may be useful in the future to have lists do smarter things based on parameter range, but currently I have just pushed down the above-mentioned currently used attributes.
2014-12-01Make tests of Evoral::Range functions include both endpoints in RangeColin Fletcher
Some of the tests for Evoral::RangeList::subtract() assume that ranges don't contain their end (->to) point. This appears inconsistent with how they are used elsewhere. Add some ASCII art comments to the tests to try to clarify what they're really testing for, and amend subtractTest1, subtractTest4, & subtractTest5 to incorporate the assumption that ranges include their end points.
2014-11-30Remove braindead Parameter inheritance abuse.David Robillard
2014-11-25Add test for Evoral::coverage()Colin Fletcher
Add a test function to test Evoral::coverage() with all possible overlap types. The first test (line 161) that expects OverlapExternal will fail with the current implementation of coverage(). There's possibly still a discussion to be had about what the overlap type of ranges with negative lengths should be: there are currently places in the main Ardour code base where coverage() is called with ranges where start > end.
2014-11-25Fix build of evoral testsColin Fletcher
Fix compile errors in libs/evoral/test/, by explicitly calling Evoral::MusicalTime::to_double() wherever a double value is required of a MusicalTime. Some of the double variables should probably really be made into MusicalTime ones instead, but I don't want to mess with this too much. takeFiveTest still fails for me after this, but a failing test is probably more informative in the long run than a test that won't even compile.
2014-11-22Wrap MusicalTime in a class.David Robillard
This lets us get a more explicit handle on time conversions, and is the main step towards using actual beat:tick time and getting away from floating point precision problems.
2014-06-02merge with master and fix 4 conflicts by handPaul Davis
2014-04-07Fix buffer size mismatch in evoral testsSakari Bergen
2013-07-11Fix evoral test to compile with mingwPaul Davis
2013-06-16remove executable mode-bit from filesRobin Gareus
2013-01-20Fix compilation with --test.David Robillard
Make midnam test suite pass again. The Ardour test suite does not pass. I commented out old crossfade stuff, but I am not familiar enough with the parts that fail to fix it. It might be a good idea for someone to look into this. Ideally we'd have the test integrated into everyone's workflow, but they add quite a few files to compile... git-svn-id: svn://localhost/ardour2/branches/3.0@13931 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-07-14fix up part of the remaining details with automation, so that touch/write ↵Paul Davis
over-writes work correctly git-svn-id: svn://localhost/ardour2/branches/3.0@13041 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-31Hopefully less bad version of Evoral::RangeList::subtract,Carl Hetherington
with more tests. git-svn-id: svn://localhost/ardour2/branches/3.0@12514 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-16Fairly major change to the way in which crossfades are handled;Carl Hetherington
they are now done with region fades, rather than separate objects. After this commit, Ardour will try to convert your session files to the new crossfade format, but will make a backup in your session folder first. If you have works in progress using Ardour 3 it is ***STRONGLY RECOMMENDED*** that you back up session files before updating to this commit. git-svn-id: svn://localhost/ardour2/branches/3.0@11986 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-30Further GCC 4.7.0 fixes.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11768 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-23Fix broken whitespace via merciless application of the emacs hammer.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@10782 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-13Apply patch from timbyr to fix building with --test.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@10561 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-07-31Fix up build of tests.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@9943 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-28Fix test compile.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7516 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-25Fix up evoral test suite.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7483 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-23Fix controller iteration / linear interpolation.David Robillard
Add unit test for controller iteration / linear interpolation. git-svn-id: svn://localhost/ardour2/branches/3.0@5886 d708f5d6-7413-0410-9779-e7cbd77b26cf