|
LMMS
|
#include <assert.h>#include <ctype.h>#include <errno.h>#include <float.h>#include <limits.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <dirent.h>#include <unistd.h>#include "lilv/lilv.h"#include "../src/lilv_internal.h"#include "lv2/lv2plug.in/ns/ext/presets/presets.h"#include "lv2/lv2plug.in/ns/ext/state/state.h"#include "lv2/lv2plug.in/ns/ext/urid/urid.h"Classes | |
| struct | TestCase |
Macros | |
| #define | _POSIX_C_SOURCE 200809L /* for setenv */ |
| #define | _XOPEN_SOURCE 600 /* for mkstemp */ |
| #define | TEST_PATH_MAX 1024 |
| #define | SHLIB_EXT ".so" |
| #define | TEST_CASE(name) |
| #define | TEST_ASSERT(check) |
| #define | PREFIX_ATOM "@prefix atom: <http://lv2plug.in/ns/ext/atom#> . \n" |
| #define | PREFIX_LINE "@prefix : <http://example.org/> .\n" |
| #define | PREFIX_LV2 "@prefix lv2: <http://lv2plug.in/ns/lv2core#> .\n" |
| #define | PREFIX_LV2EV "@prefix lv2ev: <http://lv2plug.in/ns/ext/event#> . \n" |
| #define | PREFIX_LV2UI "@prefix lv2ui: <http://lv2plug.in/ns/extensions/ui#> .\n" |
| #define | PREFIX_RDF "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" |
| #define | PREFIX_RDFS "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" |
| #define | PREFIX_FOAF "@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n" |
| #define | PREFIX_DOAP "@prefix doap: <http://usefulinc.com/ns/doap#> .\n" |
| #define | PREFIX_PSET "@prefix pset: <http://lv2plug.in/ns/ext/presets#> .\n" |
| #define | MANIFEST_PREFIXES PREFIX_LINE PREFIX_LV2 PREFIX_RDFS |
| #define | BUNDLE_PREFIXES PREFIX_ATOM PREFIX_LINE PREFIX_LV2 PREFIX_RDF PREFIX_RDFS PREFIX_FOAF PREFIX_DOAP PREFIX_PSET |
| #define | PLUGIN_NAME(name) |
| #define | LICENSE_GPL "doap:license <http://usefulinc.com/doap/licenses/gpl>" |
Typedefs | |
| typedef int(* | TestFunc) (void) |
Variables | |
| static char | bundle_dir_name [TEST_PATH_MAX] |
| static char | bundle_dir_uri [TEST_PATH_MAX] |
| static char | manifest_name [TEST_PATH_MAX] |
| static char | content_name [TEST_PATH_MAX] |
| static LilvWorld * | world |
| int | test_count = 0 |
| int | error_count = 0 |
| static const char * | uris_plugin = "http://example.org/plug" |
| static LilvNode * | plugin_uri_value |
| static LilvNode * | plugin2_uri_value |
| static int | discovery_plugin_found = 0 |
| uint32_t | atom_Float = 0 |
| float | in = 1.0 |
| float | out = 42.0 |
| float | control = 1234.0 |
| char ** | uris = NULL |
| size_t | n_uris = 0 |
| static char * | temp_dir = NULL |
| static struct TestCase | tests [] |
| #define _POSIX_C_SOURCE 200809L /* for setenv */ |
| #define _XOPEN_SOURCE 600 /* for mkstemp */ |
| #define BUNDLE_PREFIXES PREFIX_ATOM PREFIX_LINE PREFIX_LV2 PREFIX_RDF PREFIX_RDFS PREFIX_FOAF PREFIX_DOAP PREFIX_PSET |
| #define LICENSE_GPL "doap:license <http://usefulinc.com/doap/licenses/gpl>" |
| #define MANIFEST_PREFIXES PREFIX_LINE PREFIX_LV2 PREFIX_RDFS |
| #define PLUGIN_NAME | ( | name | ) |
| #define PREFIX_ATOM "@prefix atom: <http://lv2plug.in/ns/ext/atom#> . \n" |
| #define PREFIX_DOAP "@prefix doap: <http://usefulinc.com/ns/doap#> .\n" |
| #define PREFIX_FOAF "@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n" |
| #define PREFIX_LINE "@prefix : <http://example.org/> .\n" |
| #define PREFIX_LV2 "@prefix lv2: <http://lv2plug.in/ns/lv2core#> .\n" |
| #define PREFIX_LV2EV "@prefix lv2ev: <http://lv2plug.in/ns/ext/event#> . \n" |
| #define PREFIX_LV2UI "@prefix lv2ui: <http://lv2plug.in/ns/extensions/ui#> .\n" |
| #define PREFIX_PSET "@prefix pset: <http://lv2plug.in/ns/ext/presets#> .\n" |
| #define PREFIX_RDF "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" |
| #define PREFIX_RDFS "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" |
| #define SHLIB_EXT ".so" |
| #define TEST_ASSERT | ( | check | ) |
| #define TEST_PATH_MAX 1024 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| uint32_t atom_Float = 0 |
|
static |
|
static |
|
static |
| float control = 1234.0 |
|
static |
| int error_count = 0 |
| float in = 1.0 |
|
static |
| size_t n_uris = 0 |
| float out = 42.0 |
|
static |
|
static |
|
static |
| int test_count = 0 |
|
static |
| char** uris = NULL |
|
static |
|
static |