This commit is contained in:
@ -62,8 +62,7 @@
|
||||
// return ret;
|
||||
// }
|
||||
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
void test_docker() {
|
||||
std::string command = "docker";
|
||||
std::vector<std::string> args = {"exec", "-it", "squashkiwi", "/bin/bash"};
|
||||
std::string working_dir = ".";
|
||||
@ -78,3 +77,24 @@ int main(int argc, char* argv[]) {
|
||||
runner::execute_cmd(command, args, working_dir, env, silent, interactive, &ssh);
|
||||
}
|
||||
|
||||
void test_ssh() {
|
||||
std::string command = "bash";
|
||||
std::vector<std::string> args = {"-c", "ls -l && echo $WHATSUP"};
|
||||
std::string working_dir = "/home";
|
||||
std::map<std::string, std::string> env = {{"WHATSUP", "Waaaaattttsssuuuppppp!"}};
|
||||
bool silent = false;
|
||||
bool interactive = false;
|
||||
runner::sSSHInfo ssh;
|
||||
ssh.host = "10.10.10.13";
|
||||
ssh.user = "katie";
|
||||
ssh.port = "22";
|
||||
|
||||
runner::execute_cmd(command, args, working_dir, env, silent, interactive, &ssh);
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
test_ssh();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user