chore(build): containers, toolchains and portability fixes
This commit is contained in:
1 parent
12ba8d8e2c
commit
c8f0113d48
1 file changed
+36
-36
+36
-36
@@ -447,7 +447,7 @@ namespace Void::Testing
|
||||
|
||||
std::cout
|
||||
<< "\n"
|
||||
<< apply(bold_blue,
|
||||
<< Void::Testing::Detail::Color::apply(bold_blue,
|
||||
"\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"
|
||||
@@ -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\x95\xae")
|
||||
<< "\n"
|
||||
<< apply(bold_blue, "\xe2\x94\x82")
|
||||
<< apply(bold_white, " Void Testing")
|
||||
<< apply(dim, " \xe2\x80\x94 Command Line Interface")
|
||||
<< std::string(28, ' ') << apply(bold_blue, "\xe2\x94\x82")
|
||||
<< Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x94\x82")
|
||||
<< Void::Testing::Detail::Color::apply(bold_white, " Void Testing")
|
||||
<< Void::Testing::Detail::Color::apply(dim, " \xe2\x80\x94 Command Line Interface")
|
||||
<< std::string(28, ' ') << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x94\x82")
|
||||
<< "\n"
|
||||
<< apply(bold_blue,
|
||||
<< Void::Testing::Detail::Color::apply(bold_blue,
|
||||
"\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"
|
||||
@@ -481,76 +481,76 @@ namespace Void::Testing
|
||||
"\xe2\x94\x80\xe2\x94\x80\xe2\x95\xaf")
|
||||
<< "\n"
|
||||
<< "\n"
|
||||
<< " " << apply(bold_white, "USAGE:") << "\n"
|
||||
<< " " << apply(cyan, "<executable>") << " "
|
||||
<< apply(dim, "[options]") << "\n"
|
||||
<< " " << Void::Testing::Detail::Color::apply(bold_white, "USAGE:") << "\n"
|
||||
<< " " << Void::Testing::Detail::Color::apply(cyan, "<executable>") << " "
|
||||
<< Void::Testing::Detail::Color::apply(dim, "[options]") << "\n"
|
||||
<< "\n"
|
||||
<< " " << apply(bold_white, "OPTIONS:") << "\n";
|
||||
<< " " << Void::Testing::Detail::Color::apply(bold_white, "OPTIONS:") << "\n";
|
||||
|
||||
constexpr std::size_t OPT_WIDTH = 23;
|
||||
auto opt = [&](std::string_view name) {
|
||||
#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
|
||||
std::string s{name};
|
||||
if (s.size() < OPT_WIDTH) {
|
||||
s.append(OPT_WIDTH - s.size(), ' ');
|
||||
}
|
||||
return apply(green, s);
|
||||
return Void::Testing::Detail::Color::apply(green, s);
|
||||
#endif
|
||||
};
|
||||
|
||||
std::cout
|
||||
<< " " << 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>")
|
||||
<< 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>")
|
||||
<< 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")
|
||||
<< apply(dim, "List discovered tests without running them")
|
||||
<< Void::Testing::Detail::Color::apply(dim, "List discovered tests without running them")
|
||||
<< "\n"
|
||||
<< " " << 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>")
|
||||
<< 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>")
|
||||
<< 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>")
|
||||
<< apply(dim, "Choose the output reporter: console, junit")
|
||||
<< Void::Testing::Detail::Color::apply(dim, "Choose the output reporter: console, junit")
|
||||
<< "\n"
|
||||
<< " " << 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
|
||||
<< " " << opt("--log-file <file>")
|
||||
<< apply(dim,
|
||||
<< Void::Testing::Detail::Color::apply(dim,
|
||||
"Mirror test events to <file> via Void::Logging")
|
||||
<< "\n"
|
||||
#endif
|
||||
#ifdef VOID_HAS_ASYNC
|
||||
<< " " << opt("--parallel <n>")
|
||||
<< apply(dim,
|
||||
<< Void::Testing::Detail::Color::apply(dim,
|
||||
"Run tests across n threads (no crash detection)")
|
||||
<< "\n"
|
||||
#endif
|
||||
<< " " << opt("--verbose")
|
||||
<< apply(dim, "Enable verbose output") << "\n"
|
||||
<< Void::Testing::Detail::Color::apply(dim, "Enable verbose output") << "\n"
|
||||
<< " " << opt("--no-color")
|
||||
<< apply(dim, "Disable colored console output") << "\n"
|
||||
<< Void::Testing::Detail::Color::apply(dim, "Disable colored console output") << "\n"
|
||||
<< " " << 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")
|
||||
<< apply(dim, "Show this help message") << "\n"
|
||||
<< Void::Testing::Detail::Color::apply(dim, "Show this help message") << "\n"
|
||||
<< "\n"
|
||||
<< " " << apply(bold_white, "EXAMPLES:") << "\n"
|
||||
<< " " << apply(cyan, "./run_tests") << " "
|
||||
<< apply(yellow, "--filter") << " \"math_tests.*\"" << "\n"
|
||||
<< " " << apply(cyan, "./run_tests") << " "
|
||||
<< apply(yellow, "--tag") << " integration "
|
||||
<< apply(yellow, "--shuffle") << "\n"
|
||||
<< " " << apply(cyan, "./run_tests") << " "
|
||||
<< apply(yellow, "--reporter") << " junit "
|
||||
<< apply(yellow, "--output") << " results.xml" << "\n"
|
||||
<< " " << Void::Testing::Detail::Color::apply(bold_white, "EXAMPLES:") << "\n"
|
||||
<< " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " "
|
||||
<< Void::Testing::Detail::Color::apply(yellow, "--filter") << " \"math_tests.*\"" << "\n"
|
||||
<< " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " "
|
||||
<< Void::Testing::Detail::Color::apply(yellow, "--tag") << " integration "
|
||||
<< Void::Testing::Detail::Color::apply(yellow, "--shuffle") << "\n"
|
||||
<< " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " "
|
||||
<< Void::Testing::Detail::Color::apply(yellow, "--reporter") << " junit "
|
||||
<< Void::Testing::Detail::Color::apply(yellow, "--output") << " results.xml" << "\n"
|
||||
<< "\n";
|
||||
|
||||
return {};
|
||||
|
||||
Reference in new issue
Block a user