Home
last modified time | relevance | path

Searched refs:test_db (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_resolve_ast.c74 struct cil_db *test_db; in test_cil_resolve_name() local
75 cil_db_init(&test_db); in test_cil_resolve_name()
78 …struct cil_args_resolve *args = gen_resolve_args(test_db, CIL_PASS_MISC3, &changed, NULL, NULL, NU… in test_cil_resolve_name()
80 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name()
82 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name()
98 struct cil_db *test_db; in test_cil_resolve_name_invalid_type_neg() local
99 cil_db_init(&test_db); in test_cil_resolve_name_invalid_type_neg()
102 …struct cil_args_resolve *args = gen_resolve_args(test_db, CIL_PASS_MISC3, &changed, NULL, NULL, NU… in test_cil_resolve_name_invalid_type_neg()
104 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name_invalid_type_neg()
106 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name_invalid_type_neg()
[all …]
Dtest_cil_build_ast.c215 struct cil_db *test_db; in test_cil_gen_block() local
216 cil_db_init(&test_db); in test_cil_gen_block()
218 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block()
221 int rc = cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_gen_block()
237 struct cil_db *test_db; in test_cil_gen_block_justblock_neg() local
238 cil_db_init(&test_db); in test_cil_gen_block_justblock_neg()
240 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block_justblock_neg()
243 int rc = cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_gen_block_justblock_neg()
256 struct cil_db *test_db; in test_cil_gen_block_noname_neg() local
257 cil_db_init(&test_db); in test_cil_gen_block_noname_neg()
[all …]
Dtest_cil_copy_ast.c153 struct cil_db *test_db; in test_cil_copy_block() local
154 cil_db_init(&test_db); in test_cil_copy_block()
156 test_ast_node->parent = test_db->ast->root; in test_cil_copy_block()
159 cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_copy_block()
167 int rc = cil_copy_block(test_db, test_ast_node->data, &test_copy->data, &sym); in test_cil_copy_block()
180 struct cil_db *test_db; in test_cil_copy_perm() local
181 cil_db_init(&test_db); in test_cil_copy_perm()
200 cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head, test_ast_node); in test_cil_copy_perm()
201 int rc = cil_copy_perm(test_db, test_ast_node->data, &test_copy->data, &sym); in test_cil_copy_perm()
203 cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head->next, test_ast_node); in test_cil_copy_perm()
[all …]
Dtest_cil.c49 struct cil_db *test_db; in test_cil_db_init() local
51 cil_db_init(&test_db); in test_cil_db_init()
53 CuAssertPtrNotNull(tc, test_db->ast); in test_cil_db_init()
54 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init()
55 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init()
66 struct cil_db *test_db; in test_cil_get_symtab_block() local
67 cil_db_init(&test_db); in test_cil_get_symtab_block()
69 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_block()
73 int rc = cil_get_symtab(test_db, test_ast_node->parent, &symtab, CIL_SYM_BLOCKS); in test_cil_get_symtab_block()
84 struct cil_db *test_db; in test_cil_get_symtab_class() local
[all …]
Dtest_cil_list.c57 struct cil_db *test_db; in test_cil_list_append_item() local
58 cil_db_init(&test_db); in test_cil_list_append_item()
60 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item()
85 struct cil_db *test_db; in test_cil_list_append_item_append() local
86 cil_db_init(&test_db); in test_cil_list_append_item_append()
88 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_append()
121 struct cil_db *test_db; in test_cil_list_append_item_append_extra() local
122 cil_db_init(&test_db); in test_cil_list_append_item_append_extra()
124 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_append_extra()
163 struct cil_db *test_db; in test_cil_list_append_item_listnull_neg() local
[all …]
Dtest_cil_fqn.c52 struct cil_db *test_db; in test_cil_qualify_name() local
53 cil_db_init(&test_db); in test_cil_qualify_name()
55 cil_build_ast(test_db, tree->root, test_db->ast->root); in test_cil_qualify_name()
57 int rc = cil_fqn_qualify(test_db->ast->root); in test_cil_qualify_name()
68 struct cil_db *test_db; in test_cil_qualify_name_cil_flavor() local
69 cil_db_init(&test_db); in test_cil_qualify_name_cil_flavor()
71 cil_build_ast(test_db, tree->root, test_db->ast->root); in test_cil_qualify_name_cil_flavor()
73 int rc = cil_fqn_qualify(test_db->ast->root); in test_cil_qualify_name_cil_flavor()
Dtest_cil_symtab.c47 struct cil_db *test_db; in test_cil_symtab_insert() local
48 cil_db_init(&test_db); in test_cil_symtab_insert()
50 test_ast_node->parent = test_db->ast->root; in test_cil_symtab_insert()
57 cil_get_symtab(test_db, test_ast_node->parent, &test_symtab, CIL_SYM_BLOCKS); in test_cil_symtab_insert()
Dtest_cil_parser.c47 struct cil_db *test_db; in test_cil_parser() local
48 cil_db_init(&test_db); in test_cil_parser()