summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--src/server/Driver.hpp2
-rw-r--r--src/server/events/Disconnect.hpp2
-rw-r--r--tests/connect_disconnect_node_patch.ttl27
-rw-r--r--tests/get_plugin.ttl7
-rw-r--r--tests/move_root_port.ttl20
5 files changed, 54 insertions, 4 deletions
diff --git a/src/server/Driver.hpp b/src/server/Driver.hpp
index 52adbdc9..f86d06a3 100644
--- a/src/server/Driver.hpp
+++ b/src/server/Driver.hpp
@@ -17,8 +17,6 @@
#ifndef INGEN_ENGINE_DRIVER_HPP
#define INGEN_ENGINE_DRIVER_HPP
-#include <boost/intrusive/list.hpp>
-
#include "raul/Noncopyable.hpp"
#include "DuplexPort.hpp"
diff --git a/src/server/events/Disconnect.hpp b/src/server/events/Disconnect.hpp
index 87fbced9..de176d34 100644
--- a/src/server/events/Disconnect.hpp
+++ b/src/server/events/Disconnect.hpp
@@ -65,7 +65,7 @@ public:
bool execute(ProcessContext& context, bool set_dst_buffers);
- InputPort* head() { return _dst_input_port; }
+ inline InputPort* head() { return _dst_input_port; }
private:
Engine& _engine;
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> .