nick_m
13413c0b0f
BBTTest::addTest() should add a meter rather than replacing the first one.
2016-08-10 01:56:55 +10:00
nick_m
9acfdb31a2
Make tempo tests use the api more correctly.
...
- TempoMap initially contains a tempo and meter.
using add_tempo/meter() using the position of an
existing section does the right thing, but prints a warning.
Use replace_tempo/meter().
2016-08-10 01:46:05 +10:00
nick_m
cde951f30f
Fix counting thinko in tests.
...
- note that the negative framepos in
FrameposPlusBeatsTest::singleTempoTest() will
not pass. needs some thougt as to whether it is testing
the correct thing.
2016-06-25 01:37:48 +10:00
Robin Gareus
dd549bb09e
another C++98 fix
2016-06-22 19:22:19 +02:00
Colin Fletcher
e27df63bc5
Fix a couple of build errors in the test suite.
...
The parameters to Session::new_audio_track() changed in e0ff70cf , and
Playlist::region_list() was renamed to region_list_property() in
fce6ac0e . Update calls to these functions in the test suite to match.
A couple of tests still fail after these changes.
2016-06-08 19:56:34 +01:00
nick_m
074db3b861
Tempo ramps - more code consolidation wrt add meter/tempo.
2016-05-27 23:38:16 +10:00
nick_m
2d3d7a5355
Tempo ramps - fix ambiguous api, fix flickering tempo curves.
2016-05-27 23:38:16 +10:00
nick_m
3d07cd79e1
Tempo ramps - api change, remove some code.
2016-05-27 23:38:13 +10:00
nick_m
8063b1ce3c
Tempo ramps - make ramp test more challenging.
2016-05-27 23:38:13 +10:00
nick_m
d3f0e65199
Tempo ramps - tempo related tests pass, add ramp test.
2016-05-27 23:38:13 +10:00
nick_m
278ad73259
Tempo ramps - check for impossible locations tempo dialog bbt entry. reorganise code.
2016-05-27 23:38:11 +10:00
nick_m
36f04367df
Tempo ramps - fix crazy compilable namespace thinko
2016-05-27 23:38:10 +10:00
nick_m
5c6e18e6a0
Tempo ramps - remove the concept of bars from tempo sections.
...
- this helps where tempo and meter have a somewhat circular
dependency.
MetricSection now has a musical position expressed in beats (a double).
MeterSection still has a bbt, but it really isn't needed as we have
enough information to discover the number of bars at a given beat without it.
TempoSection now has a hack to enable loading of legacy sessions, which will
ultimately be a lot cleaner than the current code.
Removing bars from tempo sections also allows us to place them
at arbitrary frames (implemented here).
2016-05-27 23:38:09 +10:00
nick_m
7898435d3f
Tempo ramps - define_one_bar() delivers constant tempo.
...
- also some renaming and code review
2016-05-27 23:38:09 +10:00
nick_m
2d649ceac1
Tempo ramps - get tests to comile again.
2016-05-27 23:38:09 +10:00
Tim Mayberry
44f46d2b0d
Fix broken load-session utility and change it to load and save a session
...
Rename run-session-tests.sh script to load-save-session.sh and make it operate on
only a single session and add a separate load-save-session-collection.sh script
Add --massif option to load-save-session.sh script
Rename some poorly named variables and add some documentation to the
load-save-session.sh script
2015-12-01 15:44:10 +10:00
André Nusser
f048eb7d02
Make duplicate start at position, not position + 1. (libs part)
2015-11-04 17:50:12 -05:00
Robin Gareus
87026c871a
add missing include
2015-10-06 21:32:55 +02:00
Robin Gareus
e78f0fe526
CPPUNIT workaround for mingw/wine/windows
2015-10-06 20:10:42 +02:00
Robin Gareus
dc36b063bf
remove unused fstream includes
2015-10-05 22:15:18 +02:00
Robin Gareus
22b07e0233
NOOP, remove trailing tabs/whitespace.
2015-10-05 16:17:49 +02:00
Paul Davis
4dc63966f0
globally remove all trailing whitespace from ardour code base.
...
Paul Davis was responsible for introducing almost all of this.
2015-10-04 14:51:05 -04:00
Robin Gareus
6357770588
additional check for DSP falloff.
2015-10-03 17:46:55 +02:00
Robin Gareus
20038fedf4
less verbose unit-tests
2015-10-03 17:46:39 +02:00
Tim Mayberry
449b57d583
Add test for DSPLoadCalculator to libardour tests
2015-09-16 11:22:17 +10:00
Robin Gareus
8e8f8d92c2
allow to run unit-test under wine from srcdir.
2015-09-13 15:30:00 +02:00
Robin Gareus
d84bc9123f
unit-test: set instance name to pre-configure dummy engine
2015-09-05 01:16:10 +02:00
Tim Mayberry
36e4c11a2a
Add utility function to get windows packaging directory to avoid memory leaks
...
There were a few other small leaks in pbd and evoral test code but I didn't
bother changing them. Perhaps this function would be better off in PBD:: so it
can be used everywhere.
2015-08-18 15:10:55 +10:00
Robin Gareus
093df74a9c
update unit-tests (new Dummy backend name since a9b6277)
2015-08-05 20:24:57 +02:00
Robin Gareus
ca2d536a30
self-test add missing newline
2015-08-04 18:25:10 +02:00
Robin Gareus
30dc3b871c
fix byte-order detection for gcc < v4.4.
2015-08-03 15:16:50 +02:00
Robin Gareus
f6fa4581b0
sha1: cleanup & separate unit test
2015-08-03 02:13:44 +02:00
Tim Mayberry
2a04ff8641
Add TestUI class to properly handle EventLoop invalidation
...
This fixes the programming error: Session RT event... warnings
while running ardour tests
2015-02-15 15:05:22 +10:00
Tim Mayberry
964c04eec5
Move TestReceiver class in libardour tests into own header file
2015-02-15 13:48:53 +10:00
Tim Mayberry
d9b4c6be6a
Add a few test util functions and refactor existing test code
2015-02-15 12:53:41 +10:00
David Robillard
2a251b4570
MusicalTime => Beats.
2015-01-07 00:12:07 -05:00
Robin Gareus
724febc82c
remove superfluous PBD/ARDOUR:: init calls
...
this reverts 339670b
2014-12-09 19:41:53 +01:00
Robin Gareus
fb406e5b36
fix small memory leak in the tests
2014-12-05 20:57:07 +01:00
Robin Gareus
8714fab1bc
update to 'new' ControlList API
...
add (double when, double value, bool with_guards=true, bool with_default=true);
2014-12-05 20:57:07 +01:00
Robin Gareus
cf3faf1b42
fix "expected" <> "actual" semantics in test-util
2014-12-05 18:32:16 +01:00
Robin Gareus
9b770c7aff
actual expected test results:
...
We should not add an initial implicit value
at time ‘0’ to automations.
2014-12-04 03:55:03 +01:00
Robin Gareus
b437de714f
make all tests pass
2014-12-04 03:53:26 +01:00
Robin Gareus
888bf2d551
Test: update AutomationList properties for v3.5
2014-12-03 23:37:27 +01:00
Robin Gareus
40087eb378
Test: print assert message if XML property mismatch
2014-12-03 23:27:14 +01:00
Robin Gareus
b52d8e5151
fix audioengine use in unit-tests.
2014-12-03 20:47:29 +01:00
Robin Gareus
89d48f4459
fix MTDM test
2014-12-03 20:45:27 +01:00
Robin Gareus
339670b6fa
Tests: ensure that libardour is initialized
2014-12-03 20:45:01 +01:00
Robin Gareus
d45e19eda5
fix test segfault
...
whe XMLTree goes out of scope, the root-node is deleted
2014-12-03 16:03:57 +01:00
Robin Gareus
0d677f70b4
use Dummy backend for tests
2014-12-03 16:03:19 +01:00
Tim Mayberry
929fc3d235
Use PBD::tmp_writable_directory in libardour test_util.cc
2014-12-03 17:31:04 +07:00