2017-08-06 23:26:51 +00:00
|
|
|
#ifndef FTESTS_SPROC_H
|
|
|
|
#define FTESTS_SPROC_H
|
|
|
|
|
2017-12-01 06:13:30 +00:00
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
2017-08-06 23:26:51 +00:00
|
|
|
|
|
|
|
// executes a subprocess and captures STDOUT, STDERR, and return code.
|
|
|
|
// should be able to recieve path of binary to be executed as well as any parameters
|
|
|
|
class Sproc {
|
|
|
|
public:
|
|
|
|
// call the object. returnvalue is enum representing external execution attempt not binary exit code
|
2017-12-01 06:13:30 +00:00
|
|
|
static int execute( std::string input );
|
2017-08-06 23:26:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FTESTS_SPROC_H
|