2018-04-06 18:21:14 +00:00
|
|
|
|
|
|
|
project(fluidsynth-test)
|
|
|
|
|
2018-04-06 20:07:21 +00:00
|
|
|
ENABLE_TESTING()
|
|
|
|
include ( FluidUnitTest )
|
|
|
|
|
2018-04-20 20:39:56 +00:00
|
|
|
# first define the test target, used by the macros below
|
|
|
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> --output-on-failure)
|
|
|
|
|
|
|
|
|
2018-04-06 20:52:54 +00:00
|
|
|
## add unit tests here ##
|
2018-04-06 20:36:23 +00:00
|
|
|
ADD_FLUID_TEST(test_sample_cache)
|
2018-04-08 07:41:48 +00:00
|
|
|
ADD_FLUID_TEST(test_sfont_loading)
|
2018-04-11 09:03:24 +00:00
|
|
|
ADD_FLUID_TEST(test_sample_rate_change)
|
2018-04-24 19:32:49 +00:00
|
|
|
ADD_FLUID_TEST(test_preset_sample_loading)
|
2018-04-06 18:21:14 +00:00
|
|
|
|
2018-04-11 20:58:43 +00:00
|
|
|
if ( LIBSNDFILE_HASVORBIS )
|
|
|
|
ADD_FLUID_TEST(test_sf3_sfont_loading)
|
|
|
|
endif ( LIBSNDFILE_HASVORBIS )
|