Tests: reorganise test folders

This resolves a long-standing issue:
we could not use proper include paths for test-helper code that was defined alongside the tests.

Since some test-helper code must now be relocated into the »Vault«-Layer,
I took the opportunity to finally resolve this annoyance. The solution is two-fold
 * introduce a dedicated test-support library
 * remove the quirks that were necessary to support some plain-C tests
Together, this allows to raise the include-directory by one level,
and then to adjust all folder names so that they match the namespace
This commit is contained in:
Fischlurch 2026-03-06 23:51:02 +01:00
parent 9c74466778
commit 3caa5cfb03
295 changed files with 210 additions and 56 deletions

View file

@ -14,7 +14,7 @@ from Buildhelper import createPlugins
Import('env core_lib vessel_lib vault_lib test_support guimodule tools config') Import('env core_lib vessel_lib vault_lib test_support guimodule tools config')
env = env.Clone() env = env.Clone()
env.Append(CPPPATH='include') # additional headers for tests env.Append(CPPPATH='.') # tests/ rootdir (relevant for layer specific test support headers)
# test classes of subcomponents linked in shared objects # test classes of subcomponents linked in shared objects
sharedTestLibs = {} sharedTestLibs = {}
@ -49,7 +49,6 @@ def testCases(env,dir):
@note: linking scope chosen based on the name-prefix @note: linking scope chosen based on the name-prefix
""" """
env = env.Clone() env = env.Clone()
env.Append(CPPPATH=dir) # add subdir to Includepath
if dir.startswith('stage'): if dir.startswith('stage'):
# additional libs used from GUI tests # additional libs used from GUI tests
env.mergeConf(['sigc++-2.0']) env.mergeConf(['sigc++-2.0'])
@ -77,7 +76,7 @@ envSuite.Append(LINKFLAGS='-Wl,--no-as-needed')
# have to treat some subdirs separately. # have to treat some subdirs separately.
specialDirs = ['plugin','tool','include'] specialDirs = ['plugin','tool']
testSrcDirs = globRootdirs('*') testSrcDirs = globRootdirs('*')

View file

@ -1 +0,0 @@
core components testsuite

View file

@ -1,5 +0,0 @@
WARNING: This directory is a left-over from the early stages of the Lumiera project.
It holds a test, which logically belongs into the vault-layer, yet must be linked
against the steam-layer to use a 'Testclip' from the session.
Once file and output handling is actually designed and settled, this should be sorted out

View file

@ -1 +0,0 @@
test support helpers and interfaces

View file

@ -32,8 +32,8 @@
#include "lib/meta/typelist-manip.hpp" #include "lib/meta/typelist-manip.hpp"
#include "lib/meta/function.hpp" #include "lib/meta/function.hpp"
#include "lib/meta/function-closure.hpp" #include "lib/meta/function-closure.hpp"
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
#include "meta/tuple-diagnostics.hpp" #include "lib/meta/tuple-diagnostics.hpp"
using std::string; using std::string;

View file

@ -21,7 +21,7 @@
#include "lib/meta/typelist.hpp" #include "lib/meta/typelist.hpp"
#include "lib/meta/function.hpp" #include "lib/meta/function.hpp"
#include "lib/meta/function-closure.hpp" #include "lib/meta/function-closure.hpp"
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
#include <tuple> #include <tuple>

View file

@ -20,7 +20,7 @@
#include "test/test-helper.hpp" #include "test/test-helper.hpp"
#include "lib/meta/function-erasure.hpp" #include "lib/meta/function-erasure.hpp"
#include "lib/error.hpp" #include "lib/error.hpp"
#include "meta/dummy-functions.hpp" #include "lib/meta/dummy-functions.hpp"
#include <functional> #include <functional>

View file

@ -19,7 +19,7 @@
#include "test/run.hpp" #include "test/run.hpp"
#include "lib/meta/generator.hpp" #include "lib/meta/generator.hpp"
#include "lib/meta/generator-combinations.hpp" #include "lib/meta/generator-combinations.hpp"
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
#include "lib/format-string.hpp" #include "lib/format-string.hpp"
#include "lib/format-cout.hpp" #include "lib/format-cout.hpp"

View file

@ -26,11 +26,11 @@
*/ */
#ifndef META_TUPLE_DIAGNOSTICS_H #ifndef LIB_META_TUPLE_DIAGNOSTICS_H
#define META_TUPLE_DIAGNOSTICS_H #define LIB_META_TUPLE_DIAGNOSTICS_H
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
#include "lib/meta/tuple-helper.hpp" #include "lib/meta/tuple-helper.hpp"
#include "lib/format-string.hpp" #include "lib/format-string.hpp"
#include "lib/format-obj.hpp" #include "lib/format-obj.hpp"
@ -83,4 +83,4 @@ namespace test {
}}} // namespace lib::meta::test }}} // namespace lib::meta::test
#endif #endif /*LIB_META_TUPLE_DIAGNOSTICS_H*/

View file

@ -25,8 +25,8 @@
#include "test/run.hpp" #include "test/run.hpp"
#include "test/test-helper.hpp" #include "test/test-helper.hpp"
#include "lib/meta/tuple-helper.hpp" #include "lib/meta/tuple-helper.hpp"
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
#include "meta/tuple-diagnostics.hpp" #include "lib/meta/tuple-diagnostics.hpp"
#include "lib/format-string.hpp" #include "lib/format-string.hpp"
#include "lib/format-cout.hpp" #include "lib/format-cout.hpp"
#include "lib/hetero-data.hpp" #include "lib/hetero-data.hpp"

View file

@ -26,8 +26,8 @@
** **
*/ */
#ifndef META_TYPELIST_DIAGNOSTICS_H #ifndef LIB_META_TYPELIST_DIAGNOSTICS_H
#define META_TYPELIST_DIAGNOSTICS_H #define LIB_META_TYPELIST_DIAGNOSTICS_H
#include "test/test-helper.hpp" #include "test/test-helper.hpp"
@ -207,4 +207,4 @@ namespace meta {
}}} // namespace lib::meta::test }}} // namespace lib::meta::test
#endif #endif /*LIB_META_TYPELIST_DIAGNOSTICS_H*/

View file

@ -32,7 +32,7 @@
#include "test/run.hpp" #include "test/run.hpp"
#include "lib/meta/generator.hpp" #include "lib/meta/generator.hpp"
#include "lib/meta/typelist-manip.hpp" #include "lib/meta/typelist-manip.hpp"
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
#include <type_traits> #include <type_traits>

View file

@ -31,7 +31,7 @@
#include "test/run.hpp" #include "test/run.hpp"
#include "lib/meta/typeseq-util.hpp" #include "lib/meta/typeseq-util.hpp"
#include "lib/meta/typelist-manip.hpp" #include "lib/meta/typelist-manip.hpp"
#include "meta/typelist-diagnostics.hpp" #include "lib/meta/typelist-diagnostics.hpp"
using std::string; using std::string;

Some files were not shown because too many files have changed in this diff Show more