Lines Matching refs:cmd
82 bool RunCommand(const std::string& cmd, std::string& content) in RunCommand() argument
84 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose); in RunCommand()
289 std::string cmd = DEFAULT_HIPROFILER_CMD_PATH + " -h"; variable
291 EXPECT_TRUE(RunCommand(cmd, content));
296 cmd = DEFAULT_HIPROFILER_CMD_PATH + " -q";
297 EXPECT_TRUE(RunCommand(cmd, content));
304 EXPECT_TRUE(RunCommand(cmd, content));
324 …std::string cmd = DEFAULT_HIPROFILER_CMD_PATH + " -c " + configTestFile + " -o " + outFile + " -t … variable
325 EXPECT_TRUE(RunCommand(cmd, content));
335 cmd = DEFAULT_HIPROFILER_CMD_PATH + " -c " + configFile + " -o " + outFile + " -t 3";
336 EXPECT_TRUE(RunCommand(cmd, content));
346 EXPECT_TRUE(RunCommand(cmd, content));
351 cmd = "rm " + configFile + " " + outFile;
352 system(cmd.c_str());
364 std::string cmd = "cp " + DEFAULT_SO_PATH + "libftrace_plugin.z.so " + DEFAULT_PATH; variable
365 system(cmd.c_str());
375 cmd = CreateCommand(outFile, time);
376 EXPECT_TRUE(RunCommand(cmd, content));
381 cmd = "rm " + FTRACE_PLUGIN_PATH + " " + outFile;
382 system(cmd.c_str());