/bind-9.11.3/unit/atf-src/tools/ |
H A D | expand_test.cpp | 52 ATF_REQUIRE(!is_glob("")); 53 ATF_REQUIRE(!is_glob("a")); 54 ATF_REQUIRE(!is_glob("foo")); 56 ATF_REQUIRE( is_glob("*")); 57 ATF_REQUIRE( is_glob("a*")); 58 ATF_REQUIRE( is_glob("*a")); 59 ATF_REQUIRE( is_glob("a*b")); 61 ATF_REQUIRE( is_glob("?")); 62 ATF_REQUIRE( is_glob("a?")); 63 ATF_REQUIRE( is_glo [all...] |
H A D | fs_test.cpp | 112 ATF_REQUIRE( path("/").is_absolute()); 113 ATF_REQUIRE( path("////").is_absolute()); 114 ATF_REQUIRE( path("////a").is_absolute()); 115 ATF_REQUIRE( path("//a//").is_absolute()); 116 ATF_REQUIRE(!path("a////").is_absolute()); 117 ATF_REQUIRE(!path("../foo").is_absolute()); 129 ATF_REQUIRE( path("/").is_root()); 130 ATF_REQUIRE( path("////").is_root()); 131 ATF_REQUIRE(!path("////a").is_root()); 132 ATF_REQUIRE(!pat [all...] |
H A D | env_test.cpp | 45 ATF_REQUIRE(tools::env::has("PATH")); 46 ATF_REQUIRE(!tools::env::get("PATH").empty()); 48 ATF_REQUIRE(!tools::env::has("_UNDEFINED_VARIABLE_")); 58 ATF_REQUIRE(tools::env::has("PATH")); 61 ATF_REQUIRE(tools::env::get("PATH") != oldval); 64 ATF_REQUIRE(!tools::env::has("_UNDEFINED_VARIABLE_")); 76 ATF_REQUIRE(tools::env::has("PATH")); 78 ATF_REQUIRE(!tools::env::has("PATH"));
|
H A D | signals_test.cpp | 104 ATF_REQUIRE(sigusr1::happened); 113 ATF_REQUIRE(sigusr1::happened); 130 ATF_REQUIRE(sigusr1::happened); 137 ATF_REQUIRE(!sigusr1::happened); 139 ATF_REQUIRE(sigusr1::happened); 156 ATF_REQUIRE(sigusr1::happened); 163 ATF_REQUIRE(!sigusr1::happened); 166 ATF_REQUIRE(sigusr1::happened); 170 ATF_REQUIRE(!sigusr1::happened); 191 ATF_REQUIRE(sigusr1_ [all...] |
H A D | io_test.cpp | 100 ATF_REQUIRE(fd != -1); 116 ATF_REQUIRE(fd != -1); 142 ATF_REQUIRE(!fh1.is_valid()); 145 ATF_REQUIRE(fh2.is_valid()); 162 ATF_REQUIRE(!fh2.is_valid()); 163 ATF_REQUIRE(fh3.is_valid()); 166 ATF_REQUIRE(!fh3.is_valid()); 167 ATF_REQUIRE(fh1.is_valid()); 196 ATF_REQUIRE(::pipe(pfd) != -1); 200 ATF_REQUIRE(ren [all...] |
H A D | config_test.cpp | 125 ATF_REQUIRE(tools::config::get(v->lc) != test_value); 145 ATF_REQUIRE(tools::config::get(v->lc) != test_value); 154 ATF_REQUIRE(tools::config::get(v->lc).empty()); 156 ATF_REQUIRE(!tools::config::get(v->lc).empty()); 182 ATF_REQUIRE(vars.find(v->lc) != vars.end()); 196 ATF_REQUIRE(tools::config::has(v->lc)); 200 ATF_REQUIRE(!tools::config::has(v->uc)); 203 ATF_REQUIRE(!tools::config::has("foo")); 204 ATF_REQUIRE(!tools::config::has("BAR")); 205 ATF_REQUIRE(!tool [all...] |
H A D | user_test.cpp | 97 ATF_REQUIRE(!is_member_of_group(g)); 100 ATF_REQUIRE(is_member_of_group(g)); 115 ATF_REQUIRE(is_root()); 117 ATF_REQUIRE(!is_root()); 131 ATF_REQUIRE(is_unprivileged()); 133 ATF_REQUIRE(!is_unprivileged());
|
H A D | text_test.cpp | 55 ATF_REQUIRE(std::strcmp(copy, "foo") == 0); 58 ATF_REQUIRE(std::strcmp(copy, "bar") == 0); 59 ATF_REQUIRE(std::strcmp(orig, "foo") == 0); 147 ATF_REQUIRE(match("", "")); 148 ATF_REQUIRE(!match("foo", "")); 150 ATF_REQUIRE(match("", ".*")); 151 ATF_REQUIRE(match("", "[a-z]*")); 153 ATF_REQUIRE(match("hello", "hello")); 154 ATF_REQUIRE(match("hello", "[a-z]+")); 155 ATF_REQUIRE(matc [all...] |
/bind-9.11.3/unit/atf-src/atf-c/detail/ |
H A D | env_test.c | 47 ATF_REQUIRE(atf_env_has("PATH")); 48 ATF_REQUIRE(!atf_env_has("_UNDEFINED_VARIABLE_")); 60 ATF_REQUIRE(atf_env_has("PATH")); 63 ATF_REQUIRE(strlen(val) > 0); 64 ATF_REQUIRE(strchr(val, ':') != NULL); 77 ATF_REQUIRE(atf_env_has("PATH")); 80 ATF_REQUIRE(strcmp(val, "unknown") != 0); 83 ATF_REQUIRE(strcmp(val, "foo bar") == 0); 95 ATF_REQUIRE(atf_env_has("PATH")); 98 ATF_REQUIRE(strcm [all...] |
H A D | text_test.c | 44 ATF_REQUIRE(atf_is_error(err)); \ 147 ATF_REQUIRE(cnt == 3); 148 ATF_REQUIRE(strcmp(acum, "123") == 0); 154 ATF_REQUIRE(cnt == 1); 155 ATF_REQUIRE(strcmp(acum, "1 2 3") == 0); 161 ATF_REQUIRE(cnt == 5); 162 ATF_REQUIRE(strcmp(acum, "12345") == 0); 168 ATF_REQUIRE(cnt == 5); 169 ATF_REQUIRE(strcmp(acum, "12345") == 0); 177 ATF_REQUIRE(atf_is_erro [all...] |
H A D | fs_test.c | 135 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&p), t->out) == 0); 154 ATF_REQUIRE(atf_equal_fs_path_fs_path(&str, &str2)); 158 ATF_REQUIRE(!atf_equal_fs_path_fs_path(&str, &str2)); 195 ATF_REQUIRE(atf_fs_path_is_absolute(&p)); 197 ATF_REQUIRE(!atf_fs_path_is_absolute(&p)); 235 ATF_REQUIRE(atf_fs_path_is_root(&p)); 237 ATF_REQUIRE(!atf_fs_path_is_root(&p)); 274 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&bp), t->branch) == 0); 313 ATF_REQUIRE(atf_equal_dynstr_cstring(&ln, t->leaf)); 355 ATF_REQUIRE(strcm [all...] |
H A D | map_test.c | 90 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map))); 91 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K1") == 0); 92 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V1") == 0); 95 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map))); 96 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K2") == 0); 97 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V2") == 0); 109 ATF_REQUIRE(atf_is_error(err)); 110 ATF_REQUIRE(atf_error_is(err, "libc")); 134 ATF_REQUIRE(atf_equal_map_iter_map_iter(iter, atf_map_end(&map))); 137 ATF_REQUIRE(!atf_equal_map_iter_map_ite [all...] |
H A D | user_test.c | 99 ATF_REQUIRE(atf_user_is_member_of_group(g)); 102 ATF_REQUIRE(!atf_user_is_member_of_group(g)); 115 ATF_REQUIRE(atf_user_is_root()); 117 ATF_REQUIRE(!atf_user_is_root()); 129 ATF_REQUIRE(atf_user_is_unprivileged()); 131 ATF_REQUIRE(!atf_user_is_unprivileged());
|
H A D | sanity_test.c | 112 ATF_REQUIRE(nlines == 0 || nlines == 3); 116 ATF_REQUIRE(atf_process_status_signaled(&status)); 117 ATF_REQUIRE(atf_process_status_termsig(&status) == SIGABRT); 119 ATF_REQUIRE(atf_process_status_exited(&status)); 120 ATF_REQUIRE(atf_process_status_exitstatus(&status) == EXIT_SUCCESS); 127 ATF_REQUIRE(atf_utils_grep_string("Invariant", lines[0])); 131 ATF_REQUIRE(atf_utils_grep_string("Precondition", lines[0])); 135 ATF_REQUIRE(atf_utils_grep_string("Postcondition", lines[0])); 139 ATF_REQUIRE(atf_utils_grep_string("Invariant", lines[0])); 143 ATF_REQUIRE(atf_utils_grep_strin [all...] |
H A D | dynstr_test.c | 57 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "") == 0); 83 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 1") == 0); 87 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 2") == 0); 91 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 3") == 0); 96 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), 113 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 1") == 0); 117 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 2") == 0); 121 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 3") == 0); 127 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), 145 ATF_REQUIRE(strcm [all...] |
/bind-9.11.3/unit/atf-src/atf-c++/detail/ |
H A D | env_test.cpp | 41 ATF_REQUIRE(atf::env::has("PATH")); 42 ATF_REQUIRE(!atf::env::get("PATH").empty()); 44 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); 54 ATF_REQUIRE(atf::env::has("PATH")); 55 ATF_REQUIRE(atf::env::get("PATH", "default value") != "default value"); 67 ATF_REQUIRE(atf::env::has("PATH")); 70 ATF_REQUIRE(atf::env::get("PATH") != oldval); 73 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); 85 ATF_REQUIRE(atf::env::has("PATH")); 87 ATF_REQUIRE(!at [all...] |
H A D | fs_test.cpp | 100 ATF_REQUIRE( path("/").is_absolute()); 101 ATF_REQUIRE( path("////").is_absolute()); 102 ATF_REQUIRE( path("////a").is_absolute()); 103 ATF_REQUIRE( path("//a//").is_absolute()); 104 ATF_REQUIRE(!path("a////").is_absolute()); 105 ATF_REQUIRE(!path("../foo").is_absolute()); 117 ATF_REQUIRE( path("/").is_root()); 118 ATF_REQUIRE( path("////").is_root()); 119 ATF_REQUIRE(!path("////a").is_root()); 120 ATF_REQUIRE(!pat [all...] |
H A D | text_test.cpp | 51 ATF_REQUIRE(std::strcmp(copy, "foo") == 0); 54 ATF_REQUIRE(std::strcmp(copy, "bar") == 0); 55 ATF_REQUIRE(std::strcmp(orig, "foo") == 0); 143 ATF_REQUIRE(match("", "")); 144 ATF_REQUIRE(!match("foo", "")); 146 ATF_REQUIRE(match("", ".*")); 147 ATF_REQUIRE(match("", "[a-z]*")); 149 ATF_REQUIRE(match("hello", "hello")); 150 ATF_REQUIRE(match("hello", "[a-z]+")); 151 ATF_REQUIRE(matc [all...] |
/bind-9.11.3/unit/atf-src/atf-c++/ |
H A D | utils_test.cpp | 55 ATF_REQUIRE(length != -1); 120 ATF_REQUIRE(atf::utils::compare_file("test.txt", "")); 127 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n")); 128 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "foo")); 129 ATF_REQUIRE(!atf::utils::compare_file("test.txt", " ")); 136 ATF_REQUIRE(atf::utils::compare_file("test.txt", "this is a short file")); 143 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "")); 144 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n")); 145 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "this is a Short file")); 146 ATF_REQUIRE(!at [all...] |
H A D | check_test.cpp | 97 ATF_REQUIRE(atf::check::build_c_o("test.c", "test.o", 112 ATF_REQUIRE(!atf::check::build_c_o("test.c", "test.o", 129 ATF_REQUIRE(atf::check::build_cpp("test.c", "test.p", 144 ATF_REQUIRE(!atf::check::build_cpp("test.c", "test.p", 159 ATF_REQUIRE(atf::check::build_cxx_o("test.cpp", "test.o", 174 ATF_REQUIRE(!atf::check::build_cxx_o("test.cpp", "test.o", 191 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout")); 192 ATF_REQUIRE(atf::utils::grep_file("-c test.c", "stdout")); 196 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout")); 197 ATF_REQUIRE(at [all...] |
H A D | macros_test.cpp | 55 ATF_REQUIRE(open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644) != -1); 108 ATF_REQUIRE(condition); 293 ATF_REQUIRE(atf::utils::grep_file("^passed", "result")); 294 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); 295 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); 307 ATF_REQUIRE(atf::utils::grep_file("^failed: Failed on purpose", "result")); 308 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); 309 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); 321 ATF_REQUIRE(atf::utils::grep_file("^skipped: Skipped on purpose", 323 ATF_REQUIRE(at [all...] |
/bind-9.11.3/unit/atf-src/atf-c/ |
H A D | error_test.c | 65 ATF_REQUIRE(atf_error_is(err, "test_error")); 66 ATF_REQUIRE(!atf_error_is(err, "unknown_error")); 67 ATF_REQUIRE(atf_error_data(err) == NULL); 72 ATF_REQUIRE(atf_error_is(err, "test_data_error")); 73 ATF_REQUIRE(!atf_error_is(err, "unknown_error")); 74 ATF_REQUIRE(atf_error_data(err) != NULL); 95 ATF_REQUIRE(atf_error_is(err, "no_memory")); 96 ATF_REQUIRE(atf_error_data(err) == NULL); 111 ATF_REQUIRE(!atf_is_error(err)); 125 ATF_REQUIRE(!atf_is_erro [all...] |
H A D | utils_test.c | 62 ATF_REQUIRE(length != -1); 127 ATF_REQUIRE(atf_utils_compare_file("test.txt", "")); 134 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n")); 135 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "foo")); 136 ATF_REQUIRE(!atf_utils_compare_file("test.txt", " ")); 143 ATF_REQUIRE(atf_utils_compare_file("test.txt", "this is a short file")); 150 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "")); 151 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n")); 152 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "this is a Short file")); 153 ATF_REQUIRE(!atf_utils_compare_fil [all...] |
H A D | tc_test.c | 67 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test1") == 0); 68 ATF_REQUIRE(!atf_tc_has_md_var(&tc, "test-var")); 73 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test2") == 0); 74 ATF_REQUIRE(atf_tc_has_md_var(&tc, "test-var")); 100 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test1") == 0); 101 ATF_REQUIRE(!atf_tc_has_md_var(&tc, "test-var")); 105 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test2") == 0); 106 ATF_REQUIRE(atf_tc_has_md_var(&tc, "test-var")); 122 ATF_REQUIRE(!atf_tc_has_md_var(&tc, "test-var")); 124 ATF_REQUIRE(atf_tc_has_md_va [all...] |
/bind-9.11.3/lib/dns/tests/ |
H A D | gost_test.c | 192 ATF_REQUIRE(result == ISC_R_SUCCESS); 198 ATF_REQUIRE(result == ISC_R_SUCCESS); 203 ATF_REQUIRE(result == ISC_R_SUCCESS); 206 ATF_REQUIRE(result == ISC_R_SUCCESS); 262 ATF_REQUIRE(result == ISC_R_SUCCESS); 266 ATF_REQUIRE(privkey != NULL); 269 ATF_REQUIRE(d2i_PrivateKey(NID_id_GostR3410_2001, &pkey, &p, 271 ATF_REQUIRE(pkey != NULL); 272 ATF_REQUIRE(EVP_PKEY_bits(pkey) == 256); 274 ATF_REQUIRE(ecke [all...] |