Build: gate reflection-only tests on VOID_HAS_CXX26_REFLECTION (refs #38)
This commit is contained in:
1 parent
b1933d9906
commit
1ba60d5d6a
19 files changed
+56
-12
No files matched your search
+19
-11
@@ -85,10 +85,13 @@ per-module platform code selects the native implementation.
|
||||
|
||||
The test suite is **not qualified** on musl yet: with
|
||||
`VOID_ENABLE_TESTING=ON`, reflection-dependent tests
|
||||
(`tests/standalone/Core/FlagsReflect.cpp`, `Core/Meta.cpp`) fail to compile
|
||||
when `VOID_HAS_CXX26_REFLECTION` is false. Library
|
||||
configure/build/install/consume is qualified; runtime behaviour still needs
|
||||
test coverage on this profile.
|
||||
(`tests/standalone/Core/FlagsReflect.cpp`, `Core/Meta.cpp`) failed to compile
|
||||
when `VOID_HAS_CXX26_REFLECTION` is false. Those files (and the other
|
||||
reflection-only tests) now declare `// @requires-reflection` and are skipped
|
||||
by the test scanner when the capability is absent, so the suite can build;
|
||||
a full musl test run has not been repeated in this environment.
|
||||
Library configure/build/install/consume is qualified; runtime behaviour
|
||||
still needs test coverage on this profile.
|
||||
|
||||
Detection uses `CMAKE_C_COMPILER -dumpmachine` (or
|
||||
`CMAKE_C_LIBRARY_ARCHITECTURE`/`CMAKE_C_FLAGS`) matching `musl`. The profile is
|
||||
@@ -187,17 +190,22 @@ scanner calling Emscripten's `emscan-deps`, which is not shipped by every
|
||||
Emscripten package. `CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH` is needed
|
||||
because the Emscripten toolchain restricts package lookup to its sysroot.
|
||||
|
||||
The **test suite** does not build yet on wasm (16 translation units). The
|
||||
blockers are test-side, not library-side:
|
||||
The **test suite** does not build yet on wasm (7 translation units after the
|
||||
reflection gating below). The remaining blockers are libc++ gaps, not
|
||||
reflection:
|
||||
|
||||
- Reflection tests (`Core/Meta`, `Core/FlagsReflect`, `Data/CsvReflect`,
|
||||
`Data/Reflect*`, `Functional/ResultReflectionFormat`,
|
||||
`TestingMock/Reflect`) are not guarded when reflection is unavailable.
|
||||
- `Core/Publication` uses `std::atomic<std::shared_ptr<...>>`, whose
|
||||
specialization is not implemented by this libc++ (`__cpp_lib_atomic_shared_ptr`
|
||||
absent). A portable fallback is needed.
|
||||
- `Testing/ContainerFixture` and several `TestingMock` tests need the same
|
||||
treatment.
|
||||
- Several `TestingMock` tests need `std::move_only_function`, also absent
|
||||
from this libc++.
|
||||
|
||||
Reflection-dependent test files are gated with `// @requires-reflection`
|
||||
(Core/Meta, Core/FlagsReflect, Data/CsvReflect, Data/Reflect*,
|
||||
Functional/ResultReflectionFormat, Testing/ContainerFixture,
|
||||
TestingMock/Reflect, Configuration/Fsm annotation tests) and are skipped when
|
||||
`VOID_HAS_CXX26_REFLECTION` is false, so a non-reflecting compiler no longer
|
||||
fails on scanner-generated registrations for functions hidden by `#ifdef`.
|
||||
|
||||
Runtime observations use Node; a browser runner should confirm them.
|
||||
|
||||
|
||||
Reference in new issue
Block a user