diff options
author | David Robillard <d@drobilla.net> | 2016-07-11 19:30:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-11 20:03:13 -0400 |
commit | 05f9e858a5dd4b3a1ba5047aa703e55da70dcfdf (patch) | |
tree | ff0f07004bf7430a9faeded9c2c6db77925f6309 /test/test.lv2 | |
parent | 54f33b063642467adfe369fe1abd76c13af95734 (diff) | |
download | lilv-05f9e858a5dd4b3a1ba5047aa703e55da70dcfdf.tar.gz lilv-05f9e858a5dd4b3a1ba5047aa703e55da70dcfdf.tar.bz2 lilv-05f9e858a5dd4b3a1ba5047aa703e55da70dcfdf.zip |
Improve test coverage
Diffstat (limited to 'test/test.lv2')
-rw-r--r-- | test/test.lv2/test.c | 8 | ||||
-rw-r--r-- | test/test.lv2/test.ttl.in | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c index cd9a18c..27344e7 100644 --- a/test/test.lv2/test.c +++ b/test/test.lv2/test.c @@ -28,8 +28,9 @@ #define TEST_URI "http://example.org/lilv-test-plugin" enum { - TEST_INPUT = 0, - TEST_OUTPUT = 1 + TEST_INPUT = 0, + TEST_OUTPUT = 1, + TEST_CONTROL = 2 }; typedef struct { @@ -73,6 +74,9 @@ connect_port(LV2_Handle instance, case TEST_OUTPUT: test->output = (float*)data; break; + case TEST_CONTROL: + test->output = (float*)data; + break; default: break; } diff --git a/test/test.lv2/test.ttl.in b/test/test.lv2/test.ttl.in index 6fb6aed..1c16b4c 100644 --- a/test/test.lv2/test.ttl.in +++ b/test/test.lv2/test.ttl.in @@ -37,4 +37,10 @@ lv2:index 1 ; lv2:symbol "output" ; lv2:name "Output" + ] , [ + a lv2:InputPort , + lv2:ControlPort ; + lv2:index 2 ; + lv2:symbol "control" ; + lv2:name "Control" ] . |