fluidsynth/test
derselbst 7b9e8de262 stop cmake from querying for a C++ compiler 2018-08-14 17:14:59 +02:00
..
CMakeLists.txt stop cmake from querying for a C++ compiler 2018-08-14 17:14:59 +02:00
README.md remove cmake option enable-tests 2018-08-05 20:50:41 +02:00
test.h avoid preprocessor stringification to expand to special '%' character 2018-04-21 10:37:04 +02:00
test_pointer_alignment.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_preset_sample_loading.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_sample_cache.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_sample_rate_change.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_seqbind_unregister.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_sf3_sfont_loading.c Add VintageDreamsWaves-v2 in SF3 format and some tests for sf3 loading 2018-04-18 09:14:55 +02:00
test_sfont_loading.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_snprintf.c enforce coding style guide 2018-06-24 13:13:18 +02:00
test_synth_chorus_reverb.c enforce coding style guide 2018-06-24 13:13:18 +02:00

README.md

This directory contains small executables to verify fluidsynths correct behaviour, i.e. unit tests.

Do not blindly use the tests as template for your application!

Although some tests might serve as educational demonstration of how to use certain parts of fluidsynth, they are not intended to do so! It is most likely that those tests will consist of many hacky parts that are necessary to test fluidsynth (e.g. including fluidsynth's private headers to access internal data types and functions). For user applications this programming style is strongly discouraged! Keep referring to the documentation and code examples listed in the API documentation.

Developers

To add a unit test just duplicate an existing one, give it a unique name and update the CMakeLists.txt by

  • adding a call to ADD_FLUID_TEST() and
  • a dependency to the custom check target.

Execute the tests via make check. Unit tests should use the VintageDreamsWaves-v2.sf2 as test soundfont. Use the TEST_SOUNDFONT macro to access it.