Lines Matching refs:utils
50 namespace datetime = utils::datetime;
51 namespace fs = utils::fs;
52 namespace passwd = utils::passwd;
54 using utils::none;
55 using utils::optional;
71 atf::utils::create_file( in create_mock_tester_exit()
83 utils::setenv("KYUA_TESTERSDIR", fs::current_path().str()); in create_mock_tester_exit()
98 atf::utils::create_file( in create_mock_tester_signal()
112 utils::setenv("KYUA_TESTERSDIR", fs::current_path().str()); in create_mock_tester_signal()
142 engine::tester tester("mock", utils::make_optional(user), in ATF_TEST_CASE_BODY()
143 utils::make_optional(timeout)); in ATF_TEST_CASE_BODY()
161 utils::setenv("KYUA_TESTERSDIR", "."); in ATF_TEST_CASE_BODY()
210 ATF_REQUIRE(atf::utils::compare_file("tester.out", exp_output)); in ATF_TEST_CASE_BODY()
211 ATF_REQUIRE(atf::utils::compare_file("tester.err", exp_error)); in ATF_TEST_CASE_BODY()
226 engine::tester tester("mock", utils::make_optional(user), in ATF_TEST_CASE_BODY()
227 utils::make_optional(timeout)); in ATF_TEST_CASE_BODY()
244 ATF_REQUIRE(atf::utils::compare_file("tester.out", exp_output)); in ATF_TEST_CASE_BODY()
245 ATF_REQUIRE(atf::utils::compare_file("tester.err", exp_error)); in ATF_TEST_CASE_BODY()
254 utils::setenv("KYUA_TESTERSDIR", "."); in ATF_TEST_CASE_BODY()
295 ATF_REQUIRE(atf::utils::file_exists(engine::tester_path("atf").str())); in ATF_TEST_CASE_BODY()
296 ATF_REQUIRE(atf::utils::file_exists(engine::tester_path("plain").str())); in ATF_TEST_CASE_BODY()
304 atf::utils::create_file("testers/kyua-mock-1-tester", "Not a binary"); in ATF_TEST_CASE_BODY()
305 atf::utils::create_file("testers/kyua-mock-2-tester", "Not a binary"); in ATF_TEST_CASE_BODY()
306 utils::setenv("KYUA_TESTERSDIR", (fs::current_path() / "testers").str()); in ATF_TEST_CASE_BODY()
310 ATF_REQUIRE(atf::utils::file_exists(mock1.str())); in ATF_TEST_CASE_BODY()
314 ATF_REQUIRE(atf::utils::file_exists(mock2.str())); in ATF_TEST_CASE_BODY()
325 atf::utils::create_file("testers/kyua-mock-tester", "Not a binary"); in ATF_TEST_CASE_BODY()
326 utils::setenv("KYUA_TESTERSDIR", (fs::current_path() / "testers").str()); in ATF_TEST_CASE_BODY()
329 ATF_REQUIRE(atf::utils::file_exists(mock.str())); in ATF_TEST_CASE_BODY()
331 ATF_REQUIRE(!atf::utils::file_exists(mock.str())); in ATF_TEST_CASE_BODY()
340 atf::utils::create_file("testers/kyua--tester", "Not a binary"); in ATF_TEST_CASE_BODY()
341 utils::setenv("KYUA_TESTERSDIR", (fs::current_path() / "testers").str()); in ATF_TEST_CASE_BODY()
351 utils::setenv("KYUA_TESTERSDIR", fs::current_path().str()); in ATF_TEST_CASE_BODY()