summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/bad_syntax.lv2/meson.build2
-rw-r--r--test/cpp/meson.build2
-rw-r--r--test/failed_instantiation.lv2/meson.build2
-rw-r--r--test/failed_lib_descriptor.lv2/meson.build2
-rw-r--r--test/lib_descriptor.lv2/meson.build2
-rw-r--r--test/meson.build5
-rw-r--r--test/missing_descriptor.lv2/meson.build2
-rw-r--r--test/missing_name.lv2/meson.build2
-rw-r--r--test/missing_plugin.lv2/meson.build2
-rw-r--r--test/missing_port.lv2/meson.build2
-rw-r--r--test/missing_port_name.lv2/meson.build2
-rw-r--r--test/test_string.c54
12 files changed, 12 insertions, 67 deletions
diff --git a/test/bad_syntax.lv2/meson.build b/test/bad_syntax.lv2/meson.build
index dbda502..2e22042 100644
--- a/test/bad_syntax.lv2/meson.build
+++ b/test/bad_syntax.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_bad_syntax',
files('test_bad_syntax.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/cpp/meson.build b/test/cpp/meson.build
index 5b8169c..1d697fa 100644
--- a/test/cpp/meson.build
+++ b/test/cpp/meson.build
@@ -30,7 +30,7 @@ test(
'test_lilv_hpp',
files('test_lilv_hpp.cpp'),
cpp_args: test_args + cpp_suppressions,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
include_directories: include_directories('../../src'),
),
suite: 'unit',
diff --git a/test/failed_instantiation.lv2/meson.build b/test/failed_instantiation.lv2/meson.build
index 966eed0..37f8e26 100644
--- a/test/failed_instantiation.lv2/meson.build
+++ b/test/failed_instantiation.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_failed_instantiation',
files('test_failed_instantiation.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/failed_lib_descriptor.lv2/meson.build b/test/failed_lib_descriptor.lv2/meson.build
index 61de196..15c01e1 100644
--- a/test/failed_lib_descriptor.lv2/meson.build
+++ b/test/failed_lib_descriptor.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_failed_lib_descriptor',
files('test_failed_lib_descriptor.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/lib_descriptor.lv2/meson.build b/test/lib_descriptor.lv2/meson.build
index ea29b6a..e70ed29 100644
--- a/test/lib_descriptor.lv2/meson.build
+++ b/test/lib_descriptor.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_lib_descriptor',
files('test_lib_descriptor.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/meson.build b/test/meson.build
index 1274001..3aa1869 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -5,7 +5,7 @@
# Test Setup #
##############
-test_args = ['-DLILV_STATIC']
+test_args = []
if cc.get_id() == 'msvc'
test_args += [
'/wd4464', # relative include path contains '..'
@@ -60,7 +60,6 @@ unit_tests = [
'reload_bundle',
'replace_version',
'state',
- 'string',
'ui',
'util',
'value',
@@ -83,7 +82,7 @@ foreach unit : unit_tests
files('lilv_test_utils.c', 'test_@0@.c'.format(unit)),
c_args: define_args + test_args + c_suppressions,
include_directories: include_directories('../src'),
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
suite: 'unit',
)
diff --git a/test/missing_descriptor.lv2/meson.build b/test/missing_descriptor.lv2/meson.build
index b4ad32f..78d749b 100644
--- a/test/missing_descriptor.lv2/meson.build
+++ b/test/missing_descriptor.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_missing_descriptor',
files('test_missing_descriptor.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/missing_name.lv2/meson.build b/test/missing_name.lv2/meson.build
index c32cbb5..56a695a 100644
--- a/test/missing_name.lv2/meson.build
+++ b/test/missing_name.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_missing_name',
files('test_missing_name.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/missing_plugin.lv2/meson.build b/test/missing_plugin.lv2/meson.build
index b5819ff..7e6f51f 100644
--- a/test/missing_plugin.lv2/meson.build
+++ b/test/missing_plugin.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_missing_plugin',
files('test_missing_plugin.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/missing_port.lv2/meson.build b/test/missing_port.lv2/meson.build
index f6138d8..8dfc655 100644
--- a/test/missing_port.lv2/meson.build
+++ b/test/missing_port.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_missing_port',
files('test_missing_port.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/missing_port_name.lv2/meson.build b/test/missing_port_name.lv2/meson.build
index 3bddcee..734177f 100644
--- a/test/missing_port_name.lv2/meson.build
+++ b/test/missing_port_name.lv2/meson.build
@@ -28,7 +28,7 @@ test(
'test_missing_port_name',
files('test_missing_port_name.c'),
c_args: c_suppressions + test_args,
- dependencies: [lv2_dep, lilv_static_dep],
+ dependencies: [lv2_dep, lilv_dep],
),
args: [meson.current_build_dir() / ''],
suite: 'plugin',
diff --git a/test/test_string.c b/test/test_string.c
deleted file mode 100644
index e20669d..0000000
--- a/test/test_string.c
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2007-2024 David Robillard <d@drobilla.net>
-// SPDX-License-Identifier: ISC
-
-#undef NDEBUG
-
-#include "lilv_test_utils.h"
-
-#include "../src/lilv_internal.h"
-
-#ifdef _WIN32
-# include <windows.h>
-# define setenv(n, v, r) SetEnvironmentVariable((n), (v))
-# define unsetenv(n) SetEnvironmentVariable((n), NULL)
-#endif
-
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifndef _WIN32
-static void
-check_expansion(const char* const path, const char* const expected)
-{
- char* const expanded = lilv_expand(path);
- assert(!strcmp(expanded, expected));
- free(expanded);
-}
-#endif
-
-int
-main(void)
-{
-#ifndef _WIN32
- setenv("LILV_TEST_1", "test", 1);
-
- const char* const home = getenv("HOME");
-
- check_expansion("$LILV_TEST_1", "test");
-
- if (home) {
- char* const home_foo = string_concat(home, "/foo");
- check_expansion("~", home);
- check_expansion("~foo", "~foo");
- check_expansion("~/foo", home_foo);
- free(home_foo);
- }
-
- check_expansion("$NOT_A_VAR", "$NOT_A_VAR");
-
- unsetenv("LILV_TEST_1");
-#endif
-
- return 0;
-}