-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (25 loc) · 723 Bytes
/
main.cpp
File metadata and controls
28 lines (25 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <stdlib.h>
#include <sstream>
#include "piper.h"
int main() {
{
piper p;
if (!p.run("/bin/python3",{"python3", "test.py"})) {
p.send("hello python\n");
p.readline(std::cout);
std::cout << "DONE MAIN" << std::endl;
}
}
{
piper p;
std::vector<const char*> args{"verifyta", "-s", "-f", "1000", "./no_rate.xml"};
if (!p.run("/home/pgj/.local/bin/verifyta",args)) {
std::stringstream ss;
p.block(ss);
std::cerr << "DONE VERIFYTA" << std::endl;
std::cerr << ss.str() << std::endl;
} else std::cerr << "ERROR" << std::endl;
}
return 0;
}