| /freebsd-14.2/lib/atf/libatf-c/ |
| H A D | Makefile | 31 LIB= atf-c 37 .PATH: ${ATF}/atf-c 72 INCS+= atf-c.h 75 MAN= atf-c.3 78 atf-c.3 ATF_CHECK_EQ.3 \ 85 atf-c.3 ATF_REQUIRE.3 \ 94 atf-c.3 ATF_TC.3 \ 95 atf-c.3 ATF_TC_BODY.3 \ 99 atf-c.3 ATF_TC_HEAD.3 \ 101 atf-c.3 ATF_TC_NAME.3 \ [all …]
|
| /freebsd-14.2/contrib/atf/atf-c++/ |
| H A D | macros_test.cpp | 294 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); in ATF_TEST_CASE_BODY() 295 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); in ATF_TEST_CASE_BODY() 308 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); in ATF_TEST_CASE_BODY() 309 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); in ATF_TEST_CASE_BODY() 323 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); in ATF_TEST_CASE_BODY() 324 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); in ATF_TEST_CASE_BODY() 365 atf::fs::remove(before); in ATF_TEST_CASE_BODY() 414 atf::fs::remove(before); in ATF_TEST_CASE_BODY() 459 atf::fs::remove(before); in ATF_TEST_CASE_BODY() 506 atf::fs::remove(before); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | utils_test.cpp | 70 atf::utils::create_file("file.txt", ""); in ATF_TEST_CASE_BODY() 72 atf::utils::cat_file("file.txt", "PREFIX"); in ATF_TEST_CASE_BODY() 96 atf::utils::cat_file("file.txt", ">"); in ATF_TEST_CASE_BODY() 119 atf::utils::create_file("test.txt", ""); in ATF_TEST_CASE_BODY() 126 atf::utils::create_file("test.txt", ""); in ATF_TEST_CASE_BODY() 183 atf::utils::create_file("src.txt", ""); in ATF_TEST_CASE_BODY() 225 pid_t pid = atf::utils::fork(); in ATF_TEST_CASE_BODY() 332 const pid_t pid = atf::utils::fork(); in fork_and_wait() 338 atf::utils::reset_resultsfile(); in fork_and_wait() 361 const pid_t parent = atf::utils::fork(); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | check_test.cpp | 55 std::auto_ptr< atf::check::check_result > 63 atf::process::argv_array argva(argv); in do_exec() 64 return atf::check::exec(argva); in do_exec() 68 std::auto_ptr< atf::check::check_result > 78 atf::process::argv_array argva(argv); in do_exec() 79 return atf::check::exec(argva); in do_exec() 251 std::auto_ptr< atf::fs::path > out; in ATF_TEST_CASE_BODY() 252 std::auto_ptr< atf::fs::path > err; in ATF_TEST_CASE_BODY() 262 ATF_REQUIRE(!atf::fs::exists(*out.get())); in ATF_TEST_CASE_BODY() 374 atf::process::argv_array argva(argv); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | macros.hpp | 96 #define ATF_PASS() atf::tests::tc::pass() 104 atf::tests::tc::fail(atfu_ss.str()); \ 115 atf::tests::tc::fail(atfu_ss.str()); \ 131 atf::tests::tc::fail(atfu_ss.str()); \ 143 atf::tests::tc::fail(atfu_ss.str()); \ 150 atf::tests::tc::fail(atfu_ss.str()); \ 155 atf::tests::tc::fail(atfu_ss.str()); \ 167 atf::tests::tc::fail(atfu_ss.str()); \ 182 atf::tests::tc::fail(atfu_ss.str()); \ 187 atf::tests::tc::fail(atfu_ss.str()); \ [all …]
|
| H A D | build_test.cpp | 70 atf::env::set(var, val); in verbose_set_env() 75 equal_argvs(const atf::process::argv_array& aa, const char* const* array) in equal_argvs() 79 atf::process::argv_array::size_type i = 0; in equal_argvs() 163 atf::process::argv_array argv = in ATF_TEST_CASE_BODY() 164 atf::build::c_o(test->sfile, test->ofile, in ATF_TEST_CASE_BODY() 165 atf::process::argv_array(test->optargs)); in ATF_TEST_CASE_BODY() 184 atf::process::argv_array argv = in ATF_TEST_CASE_BODY() 185 atf::build::cpp(test->sfile, test->ofile, in ATF_TEST_CASE_BODY() 186 atf::process::argv_array(test->optargs)); in ATF_TEST_CASE_BODY() 206 atf::process::argv_array argv = in ATF_TEST_CASE_BODY() [all …]
|
| H A D | build.cpp | 37 namespace impl = atf::build; 45 atf::process::argv_array 54 return atf::process::argv_array(aux); in cargv_to_argv() 58 atf::process::argv_array 62 atf::process::argv_array argv((const char* const*)l); in cargv_to_argv_and_free() 75 atf::process::argv_array 77 const atf::process::argv_array& optargs) in c_o() 89 atf::process::argv_array 91 const atf::process::argv_array& optargs) in cpp() 103 atf::process::argv_array [all …]
|
| H A D | utils.cpp | 36 atf::utils::cat_file(const std::string& path, const std::string& prefix) in cat_file() 42 atf::utils::copy_file(const std::string& source, const std::string& destination) in copy_file() 48 atf::utils::compare_file(const std::string& path, const std::string& contents) in compare_file() 54 atf::utils::create_file(const std::string& path, const std::string& contents) in create_file() 60 atf::utils::file_exists(const std::string& path) in file_exists() 66 atf::utils::fork(void) in fork() 74 atf::utils::reset_resultsfile(void) in reset_resultsfile() 81 atf::utils::grep_file(const std::string& regex, const std::string& path) in grep_file() 87 atf::utils::grep_string(const std::string& regex, const std::string& str) in grep_string() 93 atf::utils::redirect(const int fd, const std::string& path) in redirect() [all …]
|
| /freebsd-14.2/libexec/atf/atf-sh/ |
| H A D | Makefile | 31 .PATH: ${ATF}/atf-sh 34 PROG_CXX= atf-sh 35 SRCS= atf-sh.cpp 36 MAN= atf-sh.1 atf-sh.3 38 MLINKS+= atf-sh.3 atf-sh-api.3 42 atf-sh.3 atf_check.3 \ 52 atf-sh.3 atf_fail.3 \ 53 atf-sh.3 atf_get.3 \ 56 atf-sh.3 atf_pass.3 \ 58 atf-sh.3 atf_set.3 \ [all …]
|
| /freebsd-14.2/contrib/kyua/cli/ |
| H A D | cmd_about_test.cpp | 62 atf::utils::create_file("fake-docs/AUTHORS", in ATF_TEST_CASE_BODY() 67 atf::utils::create_file("fake-docs/CONTRIBUTORS", in ATF_TEST_CASE_BODY() 82 ATF_REQUIRE(!atf::utils::grep_collection("Content of AUTHORS", in ATF_TEST_CASE_BODY() 90 ATF_REQUIRE(atf::utils::grep_collection("\\* First contributor", in ATF_TEST_CASE_BODY() 93 ATF_REQUIRE(atf::utils::grep_collection("\\* Second contributor", in ATF_TEST_CASE_BODY() 96 ATF_REQUIRE(atf::utils::grep_collection("Content of LICENSE", in ATF_TEST_CASE_BODY() 137 atf::utils::create_file("fake-docs/AUTHORS", in ATF_TEST_CASE_BODY() 142 atf::utils::create_file("fake-docs/CONTRIBUTORS", in ATF_TEST_CASE_BODY() 154 ATF_REQUIRE(!atf::utils::grep_collection("Content of AUTHORS", in ATF_TEST_CASE_BODY() 162 ATF_REQUIRE(atf::utils::grep_collection("\\* First contributor", in ATF_TEST_CASE_BODY() [all …]
|
| H A D | main_test.cpp | 217 ATF_REQUIRE(atf::utils::grep_collection("Type.*progname help", in ATF_TEST_CASE_BODY() 236 ATF_REQUIRE(atf::utils::grep_collection("Type.*progname help", in ATF_TEST_CASE_BODY() 296 ATF_REQUIRE(atf::utils::grep_file("Mock error message", "test.log")); in ATF_TEST_CASE_BODY() 297 ATF_REQUIRE(atf::utils::grep_file("Mock info message", "test.log")); in ATF_TEST_CASE_BODY() 319 ATF_REQUIRE(atf::utils::grep_file("Mock debug message", "test.log")); in ATF_TEST_CASE_BODY() 320 ATF_REQUIRE(atf::utils::grep_file("Mock error message", "test.log")); in ATF_TEST_CASE_BODY() 321 ATF_REQUIRE(atf::utils::grep_file("Mock info message", "test.log")); in ATF_TEST_CASE_BODY() 362 ATF_REQUIRE(atf::utils::grep_collection("Usage error.*i-am-invalid", in ATF_TEST_CASE_BODY() 402 ATF_REQUIRE(atf::utils::grep_collection( in ATF_TEST_CASE_BODY() 405 ATF_REQUIRE(atf::utils::grep_collection("Type.*progname help", in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-14.2/contrib/atf/atf-c++/detail/ |
| H A D | env_test.cpp | 41 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY() 42 ATF_REQUIRE(!atf::env::get("PATH").empty()); in ATF_TEST_CASE_BODY() 54 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY() 67 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY() 68 const std::string& oldval = atf::env::get("PATH"); in ATF_TEST_CASE_BODY() 69 atf::env::set("PATH", "foo-bar"); in ATF_TEST_CASE_BODY() 70 ATF_REQUIRE(atf::env::get("PATH") != oldval); in ATF_TEST_CASE_BODY() 71 ATF_REQUIRE_EQ(atf::env::get("PATH"), "foo-bar"); in ATF_TEST_CASE_BODY() 85 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY() 86 atf::env::unset("PATH"); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | test_helpers.hpp | 48 const std::string cxx = atf::env::get("ATF_BUILD_CXX", ATF_BUILD_CXX); \ 70 namespace atf { namespace 78 bool build_check_cxx_o_srcdir(const atf::tests::tc&, const char*); 79 atf::fs::path get_process_helpers_path(const atf::tests::tc&, bool); 82 const atf::tests::vars_map& m_config; 84 run_h_tc_data(const atf::tests::vars_map& config) : in run_h_tc_data() 102 run_h_tc(atf::tests::vars_map config = atf::tests::vars_map()) in run_h_tc() 105 atf::process::child c = atf::process::fork( in run_h_tc() 107 atf::process::stream_redirect_path(atf::fs::path("stdout")), in run_h_tc() 108 atf::process::stream_redirect_path(atf::fs::path("stderr")), in run_h_tc() [all …]
|
| H A D | test_helpers.cpp | 56 optargs.push_back("-I" + atf::env::get("ATF_INCLUDEDIR", ATF_INCLUDEDIR)); in build_check_cxx_o() 60 return atf::check::build_cxx_o(sfile, "test.o", in build_check_cxx_o() 61 atf::process::argv_array(optargs)); in build_check_cxx_o() 65 build_check_cxx_o_srcdir(const atf::tests::tc& tc, const char* sfile) in build_check_cxx_o_srcdir() 67 const atf::fs::path sfilepath = in build_check_cxx_o_srcdir() 68 atf::fs::path(tc.get_config_var("srcdir")) / sfile; in build_check_cxx_o_srcdir() 86 atf::fs::path 87 get_process_helpers_path(const atf::tests::tc& tc, bool is_detail) in get_process_helpers_path() 92 return atf::fs::path(tc.get_config_var("srcdir")) / in get_process_helpers_path() 95 return atf::fs::path(tc.get_config_var("srcdir")) / in get_process_helpers_path() [all …]
|
| H A D | fs_test.cpp | 73 using atf::fs::path; in ATF_TEST_CASE_BODY() 98 using atf::fs::path; in ATF_TEST_CASE_BODY() 115 using atf::fs::path; in ATF_TEST_CASE_BODY() 132 using atf::fs::path; in ATF_TEST_CASE_BODY() 148 using atf::fs::path; in ATF_TEST_CASE_BODY() 164 using atf::fs::path; in ATF_TEST_CASE_BODY() 181 using atf::fs::path; in ATF_TEST_CASE_BODY() 199 using atf::fs::path; in ATF_TEST_CASE_BODY() 216 using atf::fs::path; in ATF_TEST_CASE_BODY() 250 using atf::fs::path; in ATF_TEST_CASE_BODY() [all …]
|
| H A D | process_test.cpp | 58 atf::process::status 61 using atf::process::exec; in exec_process_helpers() 87 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY() 121 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY() 129 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY() 140 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY() 157 atf::process::argv_array argv; in ATF_TEST_CASE_BODY() 194 using atf::process::argv_array; in ATF_TEST_CASE_BODY() 225 using atf::process::argv_array; in ATF_TEST_CASE_BODY() 254 using atf::process::argv_array; in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-14.2/contrib/atf/atf-sh/ |
| H A D | atf-check.cpp | 119 const atf::fs::path file = atf::fs::path( in temp_file() 144 const atf::fs::path& 429 return atf::check::exec(argva); in execute() 449 cat_file(const atf::fs::path& path) in cat_file() 486 file_empty(const atf::fs::path& p) in file_empty() 488 atf::fs::file_info f(p); in file_empty() 494 compare_files(const atf::fs::path& p1, const atf::fs::path& p2) in compare_files() 533 print_diff(const atf::fs::path& p1, const atf::fs::path& p2) in print_diff() 535 const atf::process::status s = in print_diff() 536 atf::process::exec(atf::fs::path("diff"), in print_diff() [all …]
|
| H A D | atf-sh.cpp | 50 const atf::fs::path filepath(filename); in fix_plain_name() 61 const std::string libexecdir = atf::env::get( in construct_script() 63 const std::string pkgdatadir = atf::env::get( in construct_script() 108 class atf_sh : public atf::application::app { 111 atf::fs::path m_shell; 128 m_shell(atf::fs::path(atf::env::get("ATF_SHELL", ATF_SHELL))) in atf_sh() 136 using atf::application::option; in specific_options() 139 INV(m_shell == atf::fs::path(atf::env::get("ATF_SHELL", ATF_SHELL))); in specific_options() 151 m_shell = atf::fs::path(arg); in process_option() 165 const atf::fs::path script(m_argv[0]); in main() [all …]
|
| /freebsd-14.2/contrib/kyua/engine/ |
| H A D | kyuafile_test.cpp | 87 atf::utils::create_file( in ATF_TEST_CASE_BODY() 98 atf::utils::create_file( in ATF_TEST_CASE_BODY() 105 atf::utils::create_file( in ATF_TEST_CASE_BODY() 165 atf::utils::create_file( in ATF_TEST_CASE_BODY() 201 atf::utils::create_file( in ATF_TEST_CASE_BODY() 247 atf::utils::create_file( in ATF_TEST_CASE_BODY() 253 atf::utils::create_file( in ATF_TEST_CASE_BODY() 283 atf::utils::create_file( in ATF_TEST_CASE_BODY() 291 atf::utils::create_file( in ATF_TEST_CASE_BODY() 326 atf::utils::create_file( in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-14.2/lib/atf/ |
| H A D | common.mk | 12 atf-version: atf-version-real 13 @cmp -s atf-version atf-version-real \ 14 || cp atf-version-real atf-version 15 atf-version-real: .PHONY 17 | cut -d '"' -f 2 >atf-version-real 18 CLEANFILES+= atf-version atf-version-real
|
| /freebsd-14.2/contrib/atf/ |
| H A D | README.md | 21 * [atf 0.20](../../releases/tag/atf-0.20), released on February 7th, 2014. 28 * Fedora 20 and above: install the `atf` package with `yum install atf`. 30 * FreeBSD 10.0 and above: install the `atf` package with `pkg install atf`. 32 * NetBSD with pkgsrc: install the `pkgsrc/devel/atf` package. 34 * OpenBSD: install the `devel/atf` package with `pkg_add atf`. 42 [atf-discuss mailing list](https://groups.google.com/forum/#!forum/atf-discuss) 43 for any support inquiries related to `atf-c`, `atf-c++` or `atf-sh`.
|
| H A D | NEWS | 46 * Renamed the atf-{c,c++,sh}-api(3) manual pages to atf-{c,c++,sh}(3) for 76 * Issue #19: Removed stale references to atf-config and atf-run. 88 * Removed the deprecated tools. This includes atf-config, atf-report, 89 atf-run and atf-version. 159 functions to the atf::utils namespace of atf-c++-api. These are 241 * Added timing support to atf-run / atf-report. 476 * Removed atf-compile in favour of atf-sh. 514 to atf-run. 549 * Added build-time checks to atf-c and atf-c++. A binding for atf-sh 593 to both atf-c and atf-c++. [all …]
|
| /freebsd-14.2/lib/atf/libatf-c++/ |
| H A D | Makefile | 31 LIB_CXX= atf-c++ 40 ATF= ${SRCTOP}/contrib/atf 42 .PATH: ${ATF}/atf-c++ 43 .PATH: ${ATF}/atf-c++/detail 70 INCSDIR= ${INCLUDEDIR}/atf-c++ 72 INCS+= atf-c++.hpp 75 MAN= atf-c++.3 76 MLINKS+= atf-c++.3 atf-c-api++.3 # Backwards compatibility.
|
| /freebsd-14.2/contrib/kyua/utils/ |
| H A D | stacktrace_test.cpp | 289 atf::utils::create_file("custom-name", ""); in ATF_TEST_CASE_BODY() 410 ATF_REQUIRE(atf::utils::grep_file("^frame 1$", in ATF_TEST_CASE_BODY() 412 ATF_REQUIRE(atf::utils::grep_file("^frame 2$", in ATF_TEST_CASE_BODY() 431 atf::utils::create_file("fake-gdb", "unused"); in ATF_TEST_CASE_BODY() 471 ATF_REQUIRE(atf::utils::grep_file( in ATF_TEST_CASE_BODY() 495 ATF_REQUIRE(atf::utils::grep_file("^foo$", in ATF_TEST_CASE_BODY() 497 ATF_REQUIRE(atf::utils::grep_file("^bar$", in ATF_TEST_CASE_BODY() 523 ATF_REQUIRE(atf::utils::grep_file("GDB timed out", in ATF_TEST_CASE_BODY() 546 ATF_REQUIRE(atf::utils::grep_file("Pre-stdout", in ATF_TEST_CASE_BODY() 548 ATF_REQUIRE(atf::utils::grep_file("Pre-stderr", in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-14.2/contrib/kyua/utils/config/ |
| H A D | parser_test.cpp | 87 atf::utils::create_file( in ATF_TEST_CASE_BODY() 102 atf::utils::create_file( in ATF_TEST_CASE_BODY() 116 atf::utils::create_file( in ATF_TEST_CASE_BODY() 138 atf::utils::create_file( in ATF_TEST_CASE_BODY() 155 atf::utils::create_file( in ATF_TEST_CASE_BODY() 164 atf::utils::create_file( in ATF_TEST_CASE_BODY() 180 atf::utils::create_file("output.lua", "syntax(56)\n"); in ATF_TEST_CASE_BODY() 192 atf::utils::create_file("output.lua", "syntax('config', 1)\n"); in ATF_TEST_CASE_BODY() 195 atf::utils::create_file("output.lua", "syntax('foo', 1)\n"); in ATF_TEST_CASE_BODY() 211 atf::utils::create_file("output.lua", "var = 3\n"); in ATF_TEST_CASE_BODY() [all …]
|