summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-26 00:31:27 +0000
committerDavid Robillard <d@drobilla.net>2013-12-26 00:31:27 +0000
commitb63a173b3624bff8a38eacd088aa3dfce3fc4e33 (patch)
tree9027482481df0f90a3d7f3babd67747768034fae /tests
parent848893c6a25e70a6f898ceaa8a647558060ac06e (diff)
downloadingen-b63a173b3624bff8a38eacd088aa3dfce3fc4e33.tar.gz
ingen-b63a173b3624bff8a38eacd088aa3dfce3fc4e33.tar.bz2
ingen-b63a173b3624bff8a38eacd088aa3dfce3fc4e33.zip
Add test cases.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5211 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests')
-rw-r--r--tests/connect_disconnect_node_patch.ttl27
-rw-r--r--tests/get_plugin.ttl7
-rw-r--r--tests/move_root_port.ttl20
3 files changed, 53 insertions, 1 deletions
diff --git a/tests/connect_disconnect_node_patch.ttl b/tests/connect_disconnect_node_patch.ttl
index 642c71d3..eb8e1d92 100644
--- a/tests/connect_disconnect_node_patch.ttl
+++ b/tests/connect_disconnect_node_patch.ttl
@@ -20,6 +20,14 @@
<msg2>
a patch:Put ;
+ patch:subject <ingen:/root/in> ;
+ patch:body [
+ a lv2:InputPort ,
+ lv2:AudioPort
+ ] .
+
+<msg3>
+ a patch:Put ;
patch:subject <ingen:/root/> ;
patch:body [
a ingen:Arc ;
@@ -27,10 +35,27 @@
ingen:head <ingen:/root/out>
] .
-<msg3>
+<msg4>
+ a patch:Put ;
+ patch:subject <ingen:/root/> ;
+ patch:body [
+ a ingen:Arc ;
+ ingen:tail <ingen:/root/in> ;
+ ingen:head <ingen:/root/node/left_in>
+ ] .
+
+<msg5>
a patch:Delete ;
patch:body [
a ingen:Arc ;
ingen:tail <ingen:/root/node/left_out> ;
ingen:head <ingen:/root/out>
] .
+
+<msg6>
+ a patch:Delete ;
+ patch:body [
+ a ingen:Arc ;
+ ingen:tail <ingen:/root/in> ;
+ ingen:head <ingen:/root/node/left_in>
+ ] .
diff --git a/tests/get_plugin.ttl b/tests/get_plugin.ttl
new file mode 100644
index 00000000..19a9c93c
--- /dev/null
+++ b/tests/get_plugin.ttl
@@ -0,0 +1,7 @@
+@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix patch: <http://lv2plug.in/ns/ext/patch#> .
+@prefix ingen: <http://drobilla.net/ns/ingen#> .
+
+<msg0>
+ a patch:Get ;
+ patch:subject <http://lv2plug.in/plugins/eg-amp> .
diff --git a/tests/move_root_port.ttl b/tests/move_root_port.ttl
new file mode 100644
index 00000000..b9e6bd86
--- /dev/null
+++ b/tests/move_root_port.ttl
@@ -0,0 +1,20 @@
+@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix patch: <http://lv2plug.in/ns/ext/patch#> .
+@prefix ingen: <http://drobilla.net/ns/ingen#> .
+
+<msg0>
+ a patch:Put ;
+ patch:subject <ingen:/root/in> ;
+ patch:body [
+ a lv2:InputPort ,
+ lv2:AudioPort
+ ] .
+
+<msg1>
+ a patch:Move ;
+ patch:subject <ingen:/root/in> ;
+ patch:destination <ingen:/root/input> .
+
+<msg2>
+ a patch:Delete ;
+ patch:subject <ingen:/root/input> .