Subject: [boost] [test] How to execute shell commands
From: Mike Dev (mike.dev_at_[hidden])
Date: 2018-09-28 08:15:04
Does the boost unit test frame work provide a way to write a test that executes a couple of shell commands?
Specifically, I want to write a test that compiles a cmake project:
what I need to do for that is essentially (on Linux):
- mkdir <build_dir>
- cd <build_dir>
- cmake <source_dir>
- cmake --build .
Of course I can write a cpp program that uses std::system to execute those commands but I was wondering if there was a
more direct way to do it.