Tests module

Testing helpers.

Contents

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)

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)

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)

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.

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)

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).

Define documentation

#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 DEFAULT_FISHBOWL_TIME

Time to run fishbowl, in seconds.

#define g_assert_cmppos(a, b)

Compares 2 Position pointers.