37 testing::InitGoogleTest(&argc,
argv);
40 std::optional<std::string> working_dir;
41 for (
const auto& option : cmd.
options()) {
42 if (option.name ==
"working_dir") {
43 wordexp_t wordexp_result;
44 int code = wordexp(option.value.c_str(), &wordexp_result, 0);
47 working_dir = wordexp_result.we_wordv[0];
48 wordfree(&wordexp_result);
52 std::cout <<
"required argument \"working_dir\" is missing." << std::endl
59 std::cout <<
"working directory: "
63 int return_code = RUN_ALL_TESTS();
64 if (0 == return_code) {
int main(int argc, char **argv)