Searched refs:test_db (Results 1 – 7 of 7) sorted by relevance
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_resolve_ast.c | 74 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 …]
|
D | test_cil_copy_ast.c | 153 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 …]
|
D | test_cil.c | 49 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 …]
|
D | test_cil_list.c | 57 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 …]
|
D | test_cil_fqn.c | 52 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()
|
D | test_cil_symtab.c | 47 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()
|
D | test_cil_parser.c | 47 struct cil_db *test_db; in test_cil_parser() local 48 cil_db_init(&test_db); in test_cil_parser()
|