/sssd/src/tests/cmocka/ |
H A D | test_tools_colondb.c | 28 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 83 create_empty_file(test_ctx, TESTS_PATH, TESTS_FILE); 86 TESTS_PATH "/" TESTS_FILE); 109 create_empty_file(test_ctx, TESTS_PATH, TESTS_FILE); 112 create_nonempty_file(test_ctx, TESTS_PATH, TESTS_FILE); 144 ret = unlink(TESTS_PATH "/" TESTS_FILE); 152 test_dom_suite_cleanup(TESTS_PATH, NULL, NULL); 164 TESTS_PATH "/" TESTS_FILE); 175 TESTS_PATH "/" TESTS_FILE); 186 TESTS_PATH "/" TESTS_FIL [all...] |
H A D | test_io.c | 43 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 44 #define FILE_TEMPLATE TESTS_PATH"/test_io.XXXXXX" 45 #define NON_EX_PATH TESTS_PATH"/non-existent-path" 75 ret = mkdir(TESTS_PATH, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); 98 ret = rmdir(TESTS_PATH); 120 ret = mkdir(TESTS_PATH, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); 123 data->dirp = opendir(TESTS_PATH); 127 TESTS_PATH, strerror(err)); 159 ret = rmdir(TESTS_PATH);
|
H A D | test_ldap_id_cleanup.c | 39 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 61 ret = mkdir(TESTS_PATH, 0775); 73 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 102 TESTS_PATH, &test_ctx->domain); 334 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE); 335 test_dom_suite_setup(TESTS_PATH); 339 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE);
|
H A D | test_data_provider_be.c | 29 #define TESTS_PATH "tests_dp_be" macro 84 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, 248 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 249 test_dom_suite_setup(TESTS_PATH); 253 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_ipa_dn.c | 28 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 47 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 220 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 221 test_dom_suite_setup(TESTS_PATH); 225 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_copy_keytab.c | 31 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 33 #define KEYTAB_PATH TESTS_PATH "/keytab_test.keytab" 34 #define EMPTY_KEYTAB_PATH TESTS_PATH "/empty_keytab_test.keytab" 49 test_dom_suite_setup(TESTS_PATH); 97 ret = rmdir(TESTS_PATH);
|
H A D | test_krb5_common.c | 43 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 61 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 288 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 289 test_dom_suite_setup(TESTS_PATH); 293 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_responder_common.c | 31 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 107 parse_inp_ctx->tctx = create_dom_test_ctx(parse_inp_ctx, TESTS_PATH, 367 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 368 test_dom_suite_setup(TESTS_PATH); 372 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_dp_opts.c | 33 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 224 tctx = create_dom_test_ctx(global_talloc_context, TESTS_PATH, TEST_CONF_DB, 520 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 521 test_dom_suite_setup(TESTS_PATH); 525 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_sysdb_subdomains.c | 35 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 73 test_dom_suite_setup(TESTS_PATH); 75 test_ctx->tctx = create_multidom_test_ctx(test_ctx, TESTS_PATH, 89 test_multidom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, domains); 675 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, LOCAL_SYSDB_FILE); 676 test_dom_suite_setup(TESTS_PATH); 680 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, LOCAL_SYSDB_FILE);
|
H A D | test_ad_common.c | 50 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 53 #define KEYTAB_PATH TESTS_PATH"/keytab_test.keytab" 58 #define ONEWAY_KEYTAB_PATH TESTS_PATH"/oneway_test.keytab" 62 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 91 test_dom_suite_setup(TESTS_PATH); 93 test_ctx->tctx = create_multidom_test_ctx(test_ctx, TESTS_PATH, 107 test_multidom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, domains); 417 test_dom_suite_setup(TESTS_PATH); 452 ret = rmdir(TESTS_PATH);
|
H A D | test_simple_access.c | 33 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 60 simple_test_ctx->tctx = create_dom_test_ctx(simple_test_ctx, TESTS_PATH, 153 test_dom_suite_setup(TESTS_PATH); 163 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 488 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 828 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 829 test_dom_suite_setup(TESTS_PATH); 833 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_ipa_subdomains_server.c | 33 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 50 #define KEYTAB_PATH TEST_DIR"/"TESTS_PATH"/keytab_test.keytab" 66 #define ONEWAY_KEYTAB TEST_DIR"/"TESTS_PATH"/"SUBDOM_REALM".keytab" 293 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, 969 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 970 test_dom_suite_setup(TESTS_PATH); 974 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_negcache.c | 52 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 595 tc = create_dom_test_ctx(ts, TESTS_PATH, TEST_CONF_DB, 663 tc = create_dom_test_ctx(ts, TESTS_PATH, TEST_CONF_DB, 729 tc = create_dom_test_ctx(ts, TESTS_PATH, TEST_CONF_DB, 816 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 817 test_dom_suite_setup(TESTS_PATH); 821 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_sysdb_views.c | 35 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 68 ret = mkdir(TESTS_PATH, 0775); 80 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 109 TESTS_PATH, &test_ctx->domain); 1089 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE); 1090 test_dom_suite_setup(TESTS_PATH); 1094 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE);
|
H A D | test_dyndns.c | 39 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 947 dyndns_test_ctx->tctx = create_dom_test_ctx(dyndns_test_ctx, TESTS_PATH, 1069 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 1070 test_dom_suite_setup(TESTS_PATH); 1074 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_sysdb_sudo.c | 32 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 157 test_dom_suite_setup(TESTS_PATH); 159 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 179 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 887 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_utils.c | 31 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 821 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_DB); 1361 ret = asprintf(&path, "%s/%s", cwd, TESTS_PATH); 1364 ret = asprintf(&file, "%s/%s/localauth_plugin", cwd, TESTS_PATH); 1368 "%s/%s/krb5_libdefaults", cwd, TESTS_PATH); 1982 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 1983 test_dom_suite_setup(TESTS_PATH); 1987 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
/sssd/src/tests/ |
H A D | auth-tests.c | 42 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 63 ret = mkdir(TESTS_PATH, 0775); 65 fail("Could not create %s directory", TESTS_PATH); 85 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 138 TESTS_PATH, &test_ctx->domain); 266 ret = unlink(TESTS_PATH"/"TEST_CONF_FILE); 273 ret = unlink(TESTS_PATH"/"LOCAL_SYSDB_FILE); 280 ret = rmdir(TESTS_PATH);
|
H A D | sysdb_ssh-tests.c | 36 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 58 ret = mkdir(TESTS_PATH, 0775); 60 fail("Could not create %s directory", TESTS_PATH); 80 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 133 TESTS_PATH, &test_ctx->domain); 149 ret += unlink(TESTS_PATH"/"TEST_CONF_FILE); 150 ret += unlink(TESTS_PATH"/sssd.ldb"); 151 ret += rmdir(TESTS_PATH); 154 fprintf(stderr, "Unable to remove all test files from %s\n",TESTS_PATH);
|
H A D | files-tests.c | 39 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 52 mkdir(TESTS_PATH, 0700); 53 dir_path = mkdtemp(talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, tpl_dir)); 54 dst_path = mkdtemp(talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, tpl_dir)); 81 rmdir(TESTS_PATH);
|
H A D | krb5_utils-tests.c | 35 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 118 user_dir = talloc_asprintf(tmp_ctx, "%s/%s/user", cwd, TESTS_PATH); 169 dirname = talloc_asprintf(tmp_ctx, "%s/%s/priv_ccdir", cwd, TESTS_PATH); 209 dirname = talloc_asprintf(tmp_ctx, "%s/%s/priv_ccdir", cwd, TESTS_PATH); 253 cwd, TESTS_PATH); 266 cwd, TESTS_PATH); 788 ret = mkdir(TESTS_PATH, 0775); 790 fprintf(stderr, "Could not create empty directory [%s]. ", TESTS_PATH); 792 fprintf(stderr, "Please remove [%s].\n", TESTS_PATH); 807 ret = rmdir(TESTS_PATH); [all...] |
/sssd/src/tests/cmocka/data_provider/ |
H A D | test_dp_builtin.c | 33 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 54 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 182 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 183 test_dom_suite_setup(TESTS_PATH); 187 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
H A D | test_dp_request.c | 31 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 52 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 460 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 461 test_dom_suite_setup(TESTS_PATH); 465 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|
/sssd/src/tests/cwrap/ |
H A D | test_negcache.c | 34 #define TESTS_PATH "tp_" BASE_FILE_STEM macro 128 test_dom_suite_setup(TESTS_PATH); 130 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 150 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME); 737 test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, TEST_DOM_NAME);
|