Lines Matching refs:kSimpleCommand

100     const std::string kSimpleCommand = kFixturesPath + "dumpstate_test_fixture";  member in android::os::dumpstate::DumpstateBaseTest
209 EXPECT_EQ(0, RunCommand("", {kSimpleCommand})); in TEST_F()
215 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
219 StartsWith("------ I AM GROOT (" + kSimpleCommand + ") ------\nstdout\n------")); in TEST_F()
225 0, RunCommand("", {kSimpleCommand}, in TEST_F()
232 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, in TEST_F()
252 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
254 EXPECT_THAT(out, StartsWith("------ I AM GROOT (" + kSimpleCommand + in TEST_F()
262 EXPECT_EQ(0, RunCommand("", {kSimpleCommand})); in TEST_F()
269 … EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Always().Build())); in TEST_F()
281 EXPECT_EQ(42, RunCommand("", {kSimpleCommand, "--exit", "42"})); in TEST_F()
282 EXPECT_THAT(out, StrEq("stdout\n*** command '" + kSimpleCommand + in TEST_F()
284 EXPECT_THAT(err, StrEq("stderr\n*** command '" + kSimpleCommand + in TEST_F()
289 EXPECT_NE(0, RunCommand("", {kSimpleCommand, "--crash"})); in TEST_F()
292 out, StartsWith("stdout\n*** command '" + kSimpleCommand + " --crash' failed: exit code")); in TEST_F()
294 err, StartsWith("stderr\n*** command '" + kSimpleCommand + " --crash' failed: exit code")); in TEST_F()
298 EXPECT_EQ(-1, RunCommand("", {kSimpleCommand, "--sleep", "2"}, in TEST_F()
300 EXPECT_THAT(out, StartsWith("stdout line1\n*** command '" + kSimpleCommand + in TEST_F()
302 EXPECT_THAT(err, StartsWith("sleeping for 2s\n*** command '" + kSimpleCommand + in TEST_F()
311 EXPECT_EQ(SIGTERM, ds.RunCommand("", {kSimpleCommand, "--pid", "--sleep", "20"}, in TEST_F()
338 EXPECT_THAT(out, StrEq("*** command '" + kSimpleCommand + in TEST_F()
340 EXPECT_THAT(err, StrEq("*** command '" + kSimpleCommand + in TEST_F()
351 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(20).Build())); in TEST_F()
357 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Build())); in TEST_F()
365 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(1).Build())); in TEST_F()
373 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(4).Build())); in TEST_F()
389 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(1).Build())); in TEST_F()
395 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(4).Build())); in TEST_F()
401 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(1).Build())); in TEST_F()
409 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(3).Build())); in TEST_F()
427 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"})); in TEST_F()
433 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
453 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(1).AsRoot().Build())); in TEST_F()
457 EXPECT_THAT(out, EndsWith("root " + kSimpleCommand + "' on user build.\n")); in TEST_F()
475 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
496 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
517 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
926 EXPECT_EQ(0, RunCommand("", {kSimpleCommand})); in TEST_F()
933 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
934 EXPECT_THAT(out, StrEq("------ I AM GROOT (" + kSimpleCommand + ") ------\nstdout\n")); in TEST_F()
955 0, RunCommand("", {kSimpleCommand}, in TEST_F()
963 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, in TEST_F()
972 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
975 kSimpleCommand.c_str()))); in TEST_F()
982 EXPECT_EQ(0, RunCommand("", {kSimpleCommand})); in TEST_F()
984 … out, StrEq(android::base::StringPrintf("%s: skipped on dry run\n", kSimpleCommand.c_str()))); in TEST_F()
991 … EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Always().Build())); in TEST_F()
1005 EXPECT_EQ(42, RunCommand("", {kSimpleCommand, "--exit", "42"})); in TEST_F()
1006 EXPECT_THAT(out, StrEq("stdout\n*** command '" + kSimpleCommand + in TEST_F()
1008 EXPECT_THAT(err, StrEq("stderr\n*** command '" + kSimpleCommand + in TEST_F()
1014 EXPECT_NE(0, RunCommand("", {kSimpleCommand, "--crash"})); in TEST_F()
1017 out, StartsWith("stdout\n*** command '" + kSimpleCommand + " --crash' failed: exit code")); in TEST_F()
1019 err, StartsWith("stderr\n*** command '" + kSimpleCommand + " --crash' failed: exit code")); in TEST_F()
1024 EXPECT_EQ(-1, RunCommand("", {kSimpleCommand, "--sleep", "2"}, in TEST_F()
1026 EXPECT_THAT(out, StartsWith("stdout line1\n*** command '" + kSimpleCommand + in TEST_F()
1028 EXPECT_THAT(err, StartsWith("sleeping for 2s\n*** command '" + kSimpleCommand + in TEST_F()
1034 EXPECT_EQ(-1, RunCommand("", {kSimpleCommand, "--sleep", "2"}, in TEST_F()
1036 EXPECT_THAT(out, StartsWith("stdout line1\n*** command '" + kSimpleCommand + in TEST_F()
1038 EXPECT_THAT(err, StartsWith("sleeping for 2s\n*** command '" + kSimpleCommand + in TEST_F()
1048 EXPECT_EQ(SIGTERM, RunCommandToFd(fd, "", {kSimpleCommand, "--pid", "--sleep", "20"}, in TEST_F()
1076 EXPECT_THAT(out, EndsWith("stdout line1\n*** command '" + kSimpleCommand + in TEST_F()
1078 EXPECT_THAT(err, StrEq("*** command '" + kSimpleCommand + in TEST_F()
1097 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(1).AsRoot().Build())); in TEST_F()
1101 EXPECT_THAT(out, EndsWith("root " + kSimpleCommand + "' on user build.\n")); in TEST_F()
1120 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
1143 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
1165 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()
1183 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"})); in TEST_F()
1189 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, in TEST_F()