From b63a173b3624bff8a38eacd088aa3dfce3fc4e33 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Dec 2013 00:31:27 +0000 Subject: Add test cases. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5211 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Driver.hpp | 2 -- src/server/events/Disconnect.hpp | 2 +- tests/connect_disconnect_node_patch.ttl | 27 ++++++++++++++++++++++++++- tests/get_plugin.ttl | 7 +++++++ tests/move_root_port.ttl | 20 ++++++++++++++++++++ 5 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 tests/get_plugin.ttl create mode 100644 tests/move_root_port.ttl 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 - #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 @@ -19,6 +19,14 @@ ] . + a patch:Put ; + patch:subject ; + patch:body [ + a lv2:InputPort , + lv2:AudioPort + ] . + + a patch:Put ; patch:subject ; patch:body [ @@ -27,10 +35,27 @@ ingen:head ] . - + + a patch:Put ; + patch:subject ; + patch:body [ + a ingen:Arc ; + ingen:tail ; + ingen:head + ] . + + a patch:Delete ; patch:body [ a ingen:Arc ; ingen:tail ; ingen:head ] . + + + a patch:Delete ; + patch:body [ + a ingen:Arc ; + ingen:tail ; + ingen:head + ] . 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: . +@prefix patch: . +@prefix ingen: . + + + a patch:Get ; + patch:subject . 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: . +@prefix patch: . +@prefix ingen: . + + + a patch:Put ; + patch:subject ; + patch:body [ + a lv2:InputPort , + lv2:AudioPort + ] . + + + a patch:Move ; + patch:subject ; + patch:destination . + + + a patch:Delete ; + patch:subject . -- cgit v1.2.1