chore(build): containers, toolchains and portability fixes

This commit is contained in:
faumaray committed 2026-12-03 08:10:14 +00:00
1 parent 12ba8d8e2c
commit c8f0113d48
1 file changed
+36 -36
+36 -36
View File
@@ -447,7 +447,7 @@ namespace Void::Testing
std::cout std::cout
<< "\n" << "\n"
<< apply(bold_blue, << Void::Testing::Detail::Color::apply(bold_blue,
"\xe2\x95\xad\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x95\xad\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
"\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
"\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
@@ -461,12 +461,12 @@ namespace Void::Testing
"\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
"\xe2\x94\x80\xe2\x94\x80\xe2\x95\xae") "\xe2\x94\x80\xe2\x94\x80\xe2\x95\xae")
<< "\n" << "\n"
<< apply(bold_blue, "\xe2\x94\x82") << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x94\x82")
<< apply(bold_white, " Void Testing") << Void::Testing::Detail::Color::apply(bold_white, " Void Testing")
<< apply(dim, " \xe2\x80\x94 Command Line Interface") << Void::Testing::Detail::Color::apply(dim, " \xe2\x80\x94 Command Line Interface")
<< std::string(28, ' ') << apply(bold_blue, "\xe2\x94\x82") << std::string(28, ' ') << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x94\x82")
<< "\n" << "\n"
<< apply(bold_blue, << Void::Testing::Detail::Color::apply(bold_blue,
"\xe2\x95\xb0\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x95\xb0\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
"\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
"\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80"
@@ -481,76 +481,76 @@ namespace Void::Testing
"\xe2\x94\x80\xe2\x94\x80\xe2\x95\xaf") "\xe2\x94\x80\xe2\x94\x80\xe2\x95\xaf")
<< "\n" << "\n"
<< "\n" << "\n"
<< " " << apply(bold_white, "USAGE:") << "\n" << " " << Void::Testing::Detail::Color::apply(bold_white, "USAGE:") << "\n"
<< " " << apply(cyan, "<executable>") << " " << " " << Void::Testing::Detail::Color::apply(cyan, "<executable>") << " "
<< apply(dim, "[options]") << "\n" << Void::Testing::Detail::Color::apply(dim, "[options]") << "\n"
<< "\n" << "\n"
<< " " << apply(bold_white, "OPTIONS:") << "\n"; << " " << Void::Testing::Detail::Color::apply(bold_white, "OPTIONS:") << "\n";
constexpr std::size_t OPT_WIDTH = 23; constexpr std::size_t OPT_WIDTH = 23;
auto opt = [&](std::string_view name) { auto opt = [&](std::string_view name) {
#ifdef VOID_HAS_TEXT #ifdef VOID_HAS_TEXT
return apply(green, Void::Str::pad_right(name, OPT_WIDTH)); return Void::Testing::Detail::Color::apply(green, Void::Str::pad_right(name, OPT_WIDTH));
#else #else
std::string s{name}; std::string s{name};
if (s.size() < OPT_WIDTH) { if (s.size() < OPT_WIDTH) {
s.append(OPT_WIDTH - s.size(), ' '); s.append(OPT_WIDTH - s.size(), ' ');
} }
return apply(green, s); return Void::Testing::Detail::Color::apply(green, s);
#endif #endif
}; };
std::cout std::cout
<< " " << opt("--filter <pattern>") << " " << opt("--filter <pattern>")
<< apply(dim, "Run tests matching the regex pattern") << "\n" << Void::Testing::Detail::Color::apply(dim, "Run tests matching the regex pattern") << "\n"
<< " " << opt("--suite <name>") << " " << opt("--suite <name>")
<< apply(dim, "Run only tests in the specified suite") << "\n" << Void::Testing::Detail::Color::apply(dim, "Run only tests in the specified suite") << "\n"
<< " " << opt("--tag <name>") << " " << opt("--tag <name>")
<< apply(dim, "Run only tests with the specified tag") << "\n" << Void::Testing::Detail::Color::apply(dim, "Run only tests with the specified tag") << "\n"
<< " " << opt("--list") << " " << opt("--list")
<< apply(dim, "List discovered tests without running them") << Void::Testing::Detail::Color::apply(dim, "List discovered tests without running them")
<< "\n" << "\n"
<< " " << opt("--shuffle") << " " << opt("--shuffle")
<< apply(dim, "Randomize the order of test execution") << "\n" << Void::Testing::Detail::Color::apply(dim, "Randomize the order of test execution") << "\n"
<< " " << opt("--seed <n>") << " " << opt("--seed <n>")
<< apply(dim, "Set the random seed (implies --shuffle)") << "\n" << Void::Testing::Detail::Color::apply(dim, "Set the random seed (implies --shuffle)") << "\n"
<< " " << opt("--repeat <n>") << " " << opt("--repeat <n>")
<< apply(dim, "Repeat the test run n times") << "\n" << Void::Testing::Detail::Color::apply(dim, "Repeat the test run n times") << "\n"
<< " " << opt("--reporter <type>") << " " << opt("--reporter <type>")
<< apply(dim, "Choose the output reporter: console, junit") << Void::Testing::Detail::Color::apply(dim, "Choose the output reporter: console, junit")
<< "\n" << "\n"
<< " " << opt("--output <file>") << " " << opt("--output <file>")
<< apply(dim, "Write reporter output to a file") << "\n" << Void::Testing::Detail::Color::apply(dim, "Write reporter output to a file") << "\n"
#ifdef VOID_HAS_LOG #ifdef VOID_HAS_LOG
<< " " << opt("--log-file <file>") << " " << opt("--log-file <file>")
<< apply(dim, << Void::Testing::Detail::Color::apply(dim,
"Mirror test events to <file> via Void::Logging") "Mirror test events to <file> via Void::Logging")
<< "\n" << "\n"
#endif #endif
#ifdef VOID_HAS_ASYNC #ifdef VOID_HAS_ASYNC
<< " " << opt("--parallel <n>") << " " << opt("--parallel <n>")
<< apply(dim, << Void::Testing::Detail::Color::apply(dim,
"Run tests across n threads (no crash detection)") "Run tests across n threads (no crash detection)")
<< "\n" << "\n"
#endif #endif
<< " " << opt("--verbose") << " " << opt("--verbose")
<< apply(dim, "Enable verbose output") << "\n" << Void::Testing::Detail::Color::apply(dim, "Enable verbose output") << "\n"
<< " " << opt("--no-color") << " " << opt("--no-color")
<< apply(dim, "Disable colored console output") << "\n" << Void::Testing::Detail::Color::apply(dim, "Disable colored console output") << "\n"
<< " " << opt("--allow-empty") << " " << opt("--allow-empty")
<< apply(dim, "Do not fail when selection matches zero tests") << "\n" << Void::Testing::Detail::Color::apply(dim, "Do not fail when selection matches zero tests") << "\n"
<< " " << opt("--help") << " " << opt("--help")
<< apply(dim, "Show this help message") << "\n" << Void::Testing::Detail::Color::apply(dim, "Show this help message") << "\n"
<< "\n" << "\n"
<< " " << apply(bold_white, "EXAMPLES:") << "\n" << " " << Void::Testing::Detail::Color::apply(bold_white, "EXAMPLES:") << "\n"
<< " " << apply(cyan, "./run_tests") << " " << " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " "
<< apply(yellow, "--filter") << " \"math_tests.*\"" << "\n" << Void::Testing::Detail::Color::apply(yellow, "--filter") << " \"math_tests.*\"" << "\n"
<< " " << apply(cyan, "./run_tests") << " " << " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " "
<< apply(yellow, "--tag") << " integration " << Void::Testing::Detail::Color::apply(yellow, "--tag") << " integration "
<< apply(yellow, "--shuffle") << "\n" << Void::Testing::Detail::Color::apply(yellow, "--shuffle") << "\n"
<< " " << apply(cyan, "./run_tests") << " " << " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " "
<< apply(yellow, "--reporter") << " junit " << Void::Testing::Detail::Color::apply(yellow, "--reporter") << " junit "
<< apply(yellow, "--output") << " results.xml" << "\n" << Void::Testing::Detail::Color::apply(yellow, "--output") << " results.xml" << "\n"
<< "\n"; << "\n";
return {}; return {};