Releases: free-audio/clap-validator
0.3.2
Changed
- The preset discovery implementation has been updated for CLAP 1.1.8. Because this update changed the location URIs to a location kind and a value, the
clap-validator list presets
output format has also changed slightly.
Fixed
- Fixed running tests out of process on macOS.
- The path passed to
clap_entry::init()
now points to the bundle on macOS, rather than to the DSO. - The
--verbosity
option's value now propagated to child processes when tests are run out of process. Previously the defaultdebug
value would always be used regardless of the verbosity option set when running the validator.
0.3.1
Fixed
- Fixed an incorrect definition of the preset discovery soundpack struct for the preset discovery draft extension.
0.3.0
Added
-
Added initial support for the CLAP 1.1.7's new preset discovery mechanism and preset load extension. This includes new tests that test a plugin's preset discovery factory and preset loading implementations, as well as a
clap-validator list presets
command to list presets for one, more, or all installed CLAP plugins. -
Tests are now run in parallel by default unless the
--in-process
option is used. This behavior can be disabled using the new--no-parallel
option. -
Added a basic fuzzing test. This test generates 50 random parameter value permutations. The plugin succeeds the test if it can process five buffers of random audio and note events after setting those parameters without producing infinite or NaN values and without crashing.
Future versions of CLAP validator will contain more variations on this test and a dedicated fuzzing subcommand for longer test runs.
-
Added a test that makes sure all of the plugin's symbols resolve correctly when the library is loaded with
RTLD_NOW
. This test is only run on Unix-like platforms. -
Added a test that verifies that the descriptor stored on a
clap_plugin
object matches the one previously obtained from the factory. -
Added a test that calls
clap_plugin_state::load()
with an empty state and asserts the plugin returnsfalse
. -
Added missing thread safety checks in the state tests.
-
Added a check to ensure that plugin factories don't contain duplicate plugin IDs.
Changed
- The
features-categories
test now also accepts the CLAP 1.1.7note-detector
feature as a main category feature. - There are now more checks to verify that mandatory descriptor fields are non-empty.
clap-validator list tests [--json]
now includes test descriptions.clap-validator validate
now indents the wrapped output slightly less to make the output look a bit more consistent.- The
--only-failed
validation option now also shows tests that resulted in a warning in addition to hard failures. - Passing null pointers to any of clap validator's host callbacks where null pointers are not expected now results in a hard error instead of being handled gracefully. This indicates a bug in the plugin, and the previous behavior made it too easy to overlook.
- When a plugin supports text-to-value and/or value-to-text conversions for some but not all of its parameters, clap-validator now includes the names of the parameters and the failing inputs in the error message to help pinpoint the issue.
- All skip and error messages saying that a plugin doesn't support a certain extension or factory now always include the extension's or factory's ID. This is especially helpful for tests that use draft versions of extensions.
- The validator's
clap_host
structs now always contain the validator's version. - The validator now asserts that the plugin is in the correct state before calling the plugin's functions in more places. This reduces the surface for potential bugs in the validator itself.
- Improved the consistency of the text wrapping and error message formatting in the non-JSON output modes.
Fixed
- Fixed a typo in the error message when a plugin descriptor's name field is a null pointer.
0.2.0
Added
- There's a new command for listing the available tests available through
clap-validator list tests
.
Changed
- The test verifying that the plugin can be scanned in under 100 milliseconds no longer emits a fatal error on failure and now emits warning instead.
- The
clap-validator list
command to print a list of installed plugins has been changed toclap-validator list plugins
.
0.1.0
Added
- First tagged version after moving to the
free-audio
organization on GitHub.