summaryrefslogtreecommitdiffstats
path: root/test/lilv_test.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-02Require a URI for lilv_state_to_string() and fail gracefully otherwise.David Robillard1-0/+9
Fail gracefully when lilv_state_new_from_string() is called on NULL. Fixes #865. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5030 a436a847-0d15-0410-975c-d299462d15a1
2013-01-10Make lilv_plugin_get_port_by_designation() return a const pointer.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4912 a436a847-0d15-0410-975c-d299462d15a1
2012-11-23Add lilv_world_ask() for simply checking if a statement exists.David Robillard1-0/+8
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4862 a436a847-0d15-0410-975c-d299462d15a1
2012-11-23Support atom:supports in lilv_port_supports_event() (fix #857).David Robillard1-2/+7
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4857 a436a847-0d15-0410-975c-d299462d15a1
2012-08-13Fix const violations.David Robillard1-7/+7
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4677 a436a847-0d15-0410-975c-d299462d15a1
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-35/+36
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4631 a436a847-0d15-0410-975c-d299462d15a1
2012-04-06Fix compilation on Windows.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4150 a436a847-0d15-0410-975c-d299462d15a1
2012-04-06Update test suite for latest state extension.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4148 a436a847-0d15-0410-975c-d299462d15a1
2012-03-30Fix bad data discovered by sord_validate.David Robillard1-1/+1
Remove units from blip port labels and add unit metadata. Build instrument MDA plugins (still not working). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4131 a436a847-0d15-0410-975c-d299462d15a1
2012-03-10Fix compilation with latest serd.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4038 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08Add base_uri parameter to lilv_state_to_string().David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4032 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08serd_node_new_uri_from_path => serd_node_new_file_uri.David Robillard1-2/+2
Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4031 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08Update sratom to write paths as file URIs, and related state fixes.David Robillard1-14/+30
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4030 a436a847-0d15-0410-975c-d299462d15a1
2012-03-06Add lilv_state_new_from_string().David Robillard1-0/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4024 a436a847-0d15-0410-975c-d299462d15a1
2012-03-06Use raw type/size/value instead of LilvNode for port values.David Robillard1-11/+24
Remove use of half-baked node_to_serd() and use sratom for port values as well. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4023 a436a847-0d15-0410-975c-d299462d15a1
2012-03-03Use a fully-fledged Atom serialisation API for state saving.David Robillard1-14/+23
Add lilv_state_to_string(). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4018 a436a847-0d15-0410-975c-d299462d15a1
2012-03-02Fix too-small float arrays.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4011 a436a847-0d15-0410-975c-d299462d15a1
2012-02-28Update for latest lv2core.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4004 a436a847-0d15-0410-975c-d299462d15a1
2012-02-27Implement lv2:relation.David Robillard1-1/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4002 a436a847-0d15-0410-975c-d299462d15a1
2012-02-19Update for latest LV2 changes.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3987 a436a847-0d15-0410-975c-d299462d15a1
2012-02-01Windows compatibility fixes.David Robillard1-12/+25
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3971 a436a847-0d15-0410-975c-d299462d15a1
2012-01-28Update state interface to support multiple state snapshots with shared files.David Robillard1-35/+51
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3967 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Fix memory leaks.David Robillard1-22/+26
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3966 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Add test cases for lilv_expand and fix bugs.David Robillard1-0/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3958 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Remove use of wordexp.David Robillard1-6/+42
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3957 a436a847-0d15-0410-975c-d299462d15a1
2012-01-16Use correct WIN32 define.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3954 a436a847-0d15-0410-975c-d299462d15a1
2012-01-09Make lilv_state_save take a full filename with extension.David Robillard1-5/+9
Use a proper path joining function for separator normalisation. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3927 a436a847-0d15-0410-975c-d299462d15a1
2012-01-08Add file support to state implementation.David Robillard1-16/+143
Use cleaner and more consistent names for world URIs. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3918 a436a847-0d15-0410-975c-d299462d15a1
2012-01-04Use platform specific shared library extension in test suite.David Robillard1-16/+24
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3917 a436a847-0d15-0410-975c-d299462d15a1
2012-01-04Implement proper support for LV2_STATE_BUNDLE.David Robillard1-0/+34
Test saving state to default bundle path. Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3915 a436a847-0d15-0410-975c-d299462d15a1
2012-01-03Improved coverage for plugin.c.David Robillard1-0/+66
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3911 a436a847-0d15-0410-975c-d299462d15a1
2012-01-03100% coverage for query.c.David Robillard1-6/+37
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3909 a436a847-0d15-0410-975c-d299462d15a1
2011-12-30Support arbitrary binary data in plugin state via base64 encoding.David Robillard1-0/+154
Unit testing for plugin instantiation and state. Build without LV2 state available. Support URID values in plugin state nicely. Fix various holes in state implementation exposed by tests. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3908 a436a847-0d15-0410-975c-d299462d15a1
2011-12-09Fix memory leak in test program.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3844 a436a847-0d15-0410-975c-d299462d15a1
2011-11-11Add lilv_plugin_has_extension_data.David Robillard1-0/+11
Add tests for extension data functions. Tolerate (ignore) plugins with broken data with "gaps" in port indices. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3611 a436a847-0d15-0410-975c-d299462d15a1
2011-11-11Make scale point test tolerate different results orders.David Robillard1-4/+12
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3610 a436a847-0d15-0410-975c-d299462d15a1
2011-11-11Add feature test macro required for setenv.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3609 a436a847-0d15-0410-975c-d299462d15a1
2011-11-07Remove use of non-portable _XOPEN_SOURCE and strdup.David Robillard1-2/+0
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3604 a436a847-0d15-0410-975c-d299462d15a1
2011-09-29Create ~/.lv2 if necessaryDavid Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3509 a436a847-0d15-0410-975c-d299462d15a1
2011-09-28Improve test coverage.David Robillard1-0/+28
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3504 a436a847-0d15-0410-975c-d299462d15a1
2011-05-11Update license of lilv_text.c (with permission from kfoltman).David Robillard1-18/+16
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3254 a436a847-0d15-0410-975c-d299462d15a1
2011-05-03Replace lilv_plugin_get_value_for_subject with lilv_world_find_nodes.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3247 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Tidy.David Robillard1-19/+19
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3238 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29LilvValue => LilvNode.David Robillard1-261/+261
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3234 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Fix unit test.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3231 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Terser names for value constructors.David Robillard1-49/+49
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3223 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Don't hide pointers behind typedefs.David Robillard1-111/+112
Use const appropriately in API (makes it clear from the type whether objects should be freed or not). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3222 a436a847-0d15-0410-975c-d299462d15a1
2011-04-28Rename slv2 to lilv.David Robillard1-0/+970
API breakage was proving too much of a hassle, and would be even further of a mess after release and packaging. Best to make a clean break now, and fix installation to support parallel installs and prevent this kind of problem in the future. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3217 a436a847-0d15-0410-975c-d299462d15a1