Browse Source

ladspa_rdf testing

tags/1.9.4
falkTX 10 years ago
parent
commit
411b7bd145
4 changed files with 60 additions and 4 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -3
      source/tests/CarlaUtils.cpp
  3. +5
    -1
      source/tests/Makefile
  4. +54
    -0
      source/tests/RDF.cpp

+ 1
- 0
.gitignore View File

@@ -83,6 +83,7 @@ source/frontend/Makefile
source/tests/ansi-pedantic-test_*
source/tests/CarlaString
source/tests/CarlaUtils
source/tests/RDF

source/tests/EngineEvents
source/tests/PipeServer


+ 0
- 3
source/tests/CarlaUtils.cpp View File

@@ -27,9 +27,6 @@
#include "CarlaBackendUtils.hpp"
#include "CarlaEngineUtils.hpp"

#include "ladspa_rdf.hpp"
#include "lv2_rdf.hpp"

#include "CarlaLadspaUtils.hpp"

// #include "CarlaBridgeUtils.hpp"


+ 5
- 1
source/tests/Makefile View File

@@ -40,7 +40,7 @@ endif
# --------------------------------------------------------------

TARGETS = ansi-pedantic-test_c ansi-pedantic-test_c99
TARGETS += CarlaString CarlaUtils
TARGETS += CarlaString CarlaUtils RDF

# ansi-pedantic-test_cxx ansi-pedantic-test_cxx11
# TARGETS += EngineEvents PipeServer Print RtLinkedList RtLinkedListGnu Utils
@@ -71,6 +71,10 @@ CarlaUtils: CarlaUtils.cpp ../utils/*.hpp
$(CXX) $< $(PEDANTIC_CXX_FLAGS) -o $@
valgrind --leak-check=full ./$@

RDF: RDF.cpp ../modules/ladspa_rdf.hpp ../modules/lv2_rdf.hpp
$(CXX) $< $(PEDANTIC_CXX_FLAGS) -o $@
valgrind --leak-check=full ./$@

# --------------------------------------------------------------

ChildProcess: ChildProcess.cpp


+ 54
- 0
source/tests/RDF.cpp View File

@@ -0,0 +1,54 @@
/*
* Carla LADSPA/LV2_RDF Tests
* Copyright (C) 2014 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/

#include "ladspa_rdf.hpp"
#include "lv2_rdf.hpp"

#include "CarlaUtils.hpp"

// -----------------------------------------------------------------------
// main

int main()
{
// ladspa
{
LADSPA_RDF_ScalePoint scalePoint1, scalePoint2;
scalePoint2.Label = carla_strdup("");

LADSPA_RDF_Port port1, port2, port3;
port2.Label = carla_strdup("");
port3.Label = carla_strdup("");
port3.ScalePoints = new LADSPA_RDF_ScalePoint[2];
port3.ScalePoints[0].Label = carla_strdup("");
port3.ScalePoints[1].Label = carla_strdup("");

LADSPA_RDF_Descriptor desc1, desc2, desc3;
desc2.Title = carla_strdup("");
desc3.Title = carla_strdup("");
desc2.Creator = carla_strdup("");
desc3.Creator = carla_strdup("");
desc3.Ports = new LADSPA_RDF_Port[1];
desc3.Ports[0].Label = carla_strdup("");
desc3.Ports[0].ScalePoints = new LADSPA_RDF_ScalePoint[1];
desc3.Ports[0].ScalePoints[0].Label = carla_strdup("");
}

return 0;
}

// -----------------------------------------------------------------------

Loading…
Cancel
Save