Tests module
Testing helpers.
Functions
- auto test_plugin_manager_get_plugin_setting(const char* pl_bundle, const char* pl_uri, bool with_carla) -> PluginSetting*
- Get a plugin setting clone from the given URI in the given bundle.
- auto test_plugin_manager_create_tracks_from_plugin(const char* pl_bundle, const char* pl_uri, bool is_instrument, bool with_carla, int num_tracks) -> int
- Creates num_tracks tracks for the given plugin.
- void test_project_stop_dummy_engine(void)
- Stop dummy audio engine processing so we can process manually.
- void test_project_check_vs_original_state(Position* p1, Position* p2, int check_selections)
- Checks that the objects are back to their original state.
- void test_project_rebootstrap_timeline(Position* p1, Position* p2)
- Bootstraps the test with test data.
- void test_helper_zrythm_init(void)
- To be called by every test's main to initialize Zrythm to default values.
- void test_helper_zrythm_cleanup(void)
- To be called by every test's main at the end to clean up.
- void test_helper_zrythm_gui_init(int argc, char* argv[])
- To be called after test_
helper_ zrythm_ init() to initialize the UI (GTK).
Defines
- #define MN_VAL
- MidiNote value to use.
- #define MN_VEL
- MidiNote velocity to use.
- #define AP_VAL1
- First AP value.
- #define AP_VAL2
- Second AP value.
- #define MARKER_NAME
- Marker name.
- #define DEFAULT_FISHBOWL_TIME
- Time to run fishbowl, in seconds.
- #define g_assert_cmppos(a, b)
- Compares 2 Position pointers.
Function documentation
PluginSetting* test_plugin_manager_get_plugin_setting(const char* pl_bundle,
const char* pl_uri,
bool with_carla)
#include <tests/helpers/plugin_manager.h>
Get a plugin setting clone from the given URI in the given bundle.
int test_plugin_manager_create_tracks_from_plugin(const char* pl_bundle,
const char* pl_uri,
bool is_instrument,
bool with_carla,
int num_tracks)
#include <tests/helpers/plugin_manager.h>
Creates num_tracks tracks for the given plugin.
Parameters | |
---|---|
pl_bundle | |
pl_uri | |
is_instrument | |
with_carla | |
num_tracks | Number of tracks to create. |
Returns | The index of the last track created. |
void test_project_stop_dummy_engine(void)
#include <tests/helpers/project.h>
Stop dummy audio engine processing so we can process manually.
void test_project_check_vs_original_state(Position* p1,
Position* p2,
int check_selections)
#include <tests/helpers/project.h>
Checks that the objects are back to their original state.
Parameters | |
---|---|
p1 | |
p2 | |
check_selections | Also checks that the selections are back to where they were. |
void test_project_rebootstrap_timeline(Position* p1,
Position* p2)
#include <tests/helpers/project.h>
Bootstraps the test with test data.
void test_helper_zrythm_init(void)
#include <tests/helpers/zrythm.h>
To be called by every test's main to initialize Zrythm to default values.
void test_helper_zrythm_cleanup(void)
#include <tests/helpers/zrythm.h>
To be called by every test's main at the end to clean up.
void test_helper_zrythm_gui_init(int argc,
char* argv[])
#include <tests/helpers/zrythm.h>
To be called after test_
Define documentation
#define MN_VAL
#include <tests/helpers/project.h>
MidiNote value to use.
#define MN_VEL
#include <tests/helpers/project.h>
MidiNote velocity to use.
#define AP_VAL1
#include <tests/helpers/project.h>
First AP value.
#define AP_VAL2
#include <tests/helpers/project.h>
Second AP value.
#define MARKER_NAME
#include <tests/helpers/project.h>
Marker name.
#define DEFAULT_FISHBOWL_TIME
#include <tests/helpers/zrythm.h>
Time to run fishbowl, in seconds.
#define g_assert_cmppos(a,
b)
#include <tests/helpers/zrythm.h>
Compares 2 Position pointers.