Allows you to construct and execute a process from within your code. You can control the lifetime of the process, along with managing standard output/error, and retrieve return codes.
Declared in “ark/process/execute.hh”:
- void execute_process(const std::initializer_list< std::string_view > & arguments)
Executes the given command (given by the array of command line arguments) and blocks until complete. Standard output/error will be redirected to your terminal. Throws if the process errors out (has a non-zero return code).
Declared in “ark/process/testing/helpers.hh”:
Returns the path to our overall working directory, as an absolute path.
Returns the path to the test program, based on the location of this testing binary.
Declared in “ark/process/testing/main.hh”:
char ** get_local_argv()