Lines Matching refs:tester
61 /// Creates a mock tester that exits cleanly.
63 /// The interface accepted by the tester is 'mock'. This tester outputs the
72 "kyua-mock-tester",
78 "echo 'tester output'\n"
79 "echo 'tester error' 1>&2\n"
81 ATF_REQUIRE(::chmod("kyua-mock-tester", 0755) != -1);
87 /// Creates a mock tester that receives a signal.
89 /// The interface accepted by the tester is 'mock'. This tester outputs the
93 /// \param term_sig Signal to deliver to the tester. If the tester does not
99 "kyua-mock-tester",
105 "echo 'tester output'\n"
106 "echo 'tester error' 1>&2\n"
110 ATF_REQUIRE(::chmod("kyua-mock-tester", 0755) != -1);
123 engine::tester tester("mock", none, none);
124 const std::string output = tester.list(fs::path("/foo/bar"));
129 "tester output\n"
130 "tester error\n";
142 engine::tester tester("mock", utils::make_optional(user),
144 const std::string output = tester.list(fs::path("/another/program/1"));
152 "tester output\n"
153 "tester error\n";
162 engine::tester tester("non-existent", none, none);
164 tester.list(fs::path("does-not-matter")));
172 engine::tester tester("mock", none, none);
175 "Tester did not exit cleanly:.*tester output.*tester error",
176 tester.list(fs::path("does-not-matter")));
184 engine::tester tester("mock", none, none);
187 "Tester did not exit cleanly:.*tester output.*tester error",
188 tester.list(fs::path("does-not-matter")));
198 engine::tester tester("mock", none, none);
199 tester.test(fs::path("/foo/bar"), "test-case", fs::path("/the/result/file"),
200 fs::path("tester.out"), fs::path("tester.err"), vars);
207 "tester output\n";
209 "tester error\n";
210 ATF_REQUIRE(atf::utils::compare_file("tester.out", exp_output));
211 ATF_REQUIRE(atf::utils::compare_file("tester.err", exp_error));
226 engine::tester tester("mock", utils::make_optional(user),
228 tester.test(fs::path("/foo/bar"), "test-case", fs::path("/the/result/file"),
229 fs::path("tester.out"), fs::path("tester.err"), vars);
241 "tester output\n";
243 "tester error\n";
244 ATF_REQUIRE(atf::utils::compare_file("tester.out", exp_output));
245 ATF_REQUIRE(atf::utils::compare_file("tester.err", exp_error));
255 engine::tester tester("non-existent", none, none);
257 tester.test(fs::path("foo"), "bar", fs::path("baz"),
268 engine::tester tester("mock", none, none);
271 "Tester failed with code 2; this is a bug",
272 tester.test(fs::path("foo"), "bar", fs::path("baz"),
283 engine::tester tester("mock", none, none);
286 F("Tester received signal %s; this is a bug") % SIGKILL,
287 tester.test(fs::path("foo"), "bar", fs::path("baz"),
304 atf::utils::create_file("testers/kyua-mock-1-tester", "Not a binary");
305 atf::utils::create_file("testers/kyua-mock-2-tester", "Not a binary");
325 atf::utils::create_file("testers/kyua-mock-tester", "Not a binary");
340 atf::utils::create_file("testers/kyua--tester", "Not a binary");