This commit is contained in:
parent
a25b0a1ded
commit
8892154b28
70 changed files with 2780 additions and 596 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//SPDX-License-Identifier: LGPL-3.0-only
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
import std;
|
||||
import Crafter.Build;
|
||||
|
|
@ -15,9 +15,9 @@ extern "C" int setenv(const char* name, const char* value, int overwrite);
|
|||
// actual multi-.wasm production is exercised by a real wasm build (manual /
|
||||
// integration), not here — same boundary the WasiBrowserRuntime test draws.
|
||||
namespace {
|
||||
int failures = 0;
|
||||
std::int32_t Failures = 0;
|
||||
void Check(bool cond, std::string_view msg) {
|
||||
if (!cond) { std::println(std::cerr, "FAIL: {}", msg); ++failures; }
|
||||
if (!cond) { std::println(std::cerr, "FAIL: {}", msg); ++Failures; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ int main() {
|
|||
setenv("CRAFTER_BUILD_HOME", systemHome.c_str(), 1);
|
||||
} else {
|
||||
std::println(std::cerr, "wasi-runtime assets not found; skipping manifest check");
|
||||
return failures ? 1 : 77;
|
||||
return Failures ? 1 : 77;
|
||||
}
|
||||
|
||||
Configuration cfg;
|
||||
|
|
@ -103,15 +103,14 @@ int main() {
|
|||
// prefers it when probes pass.
|
||||
auto relaxedPos = j.find("relaxed-simd");
|
||||
auto baselinePos = j.find("\"wvhelper.wasm\"");
|
||||
Check(relaxedPos != std::string::npos && baselinePos != std::string::npos && relaxedPos < baselinePos,
|
||||
"relaxed-simd entry precedes baseline");
|
||||
Check(relaxedPos != std::string::npos && baselinePos != std::string::npos && relaxedPos < baselinePos, "relaxed-simd entry precedes baseline");
|
||||
}
|
||||
|
||||
fs::remove_all(cfg.path, ec);
|
||||
}
|
||||
|
||||
if (failures > 0) {
|
||||
std::println(std::cerr, "{} assertions failed", failures);
|
||||
if (Failures > 0) {
|
||||
std::println(std::cerr, "{} assertions failed", Failures);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue