16cd6a6acSopenharmony_ci/* 26cd6a6acSopenharmony_ci * Copyright 2011 Tresys Technology, LLC. All rights reserved. 36cd6a6acSopenharmony_ci * 46cd6a6acSopenharmony_ci * Redistribution and use in source and binary forms, with or without 56cd6a6acSopenharmony_ci * modification, are permitted provided that the following conditions are met: 66cd6a6acSopenharmony_ci * 76cd6a6acSopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, 86cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer. 96cd6a6acSopenharmony_ci * 106cd6a6acSopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, 116cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer in the documentation 126cd6a6acSopenharmony_ci * and/or other materials provided with the distribution. 136cd6a6acSopenharmony_ci * 146cd6a6acSopenharmony_ci * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS 156cd6a6acSopenharmony_ci * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 166cd6a6acSopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 176cd6a6acSopenharmony_ci * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 186cd6a6acSopenharmony_ci * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 196cd6a6acSopenharmony_ci * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 206cd6a6acSopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 216cd6a6acSopenharmony_ci * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 226cd6a6acSopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 236cd6a6acSopenharmony_ci * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 246cd6a6acSopenharmony_ci * 256cd6a6acSopenharmony_ci * The views and conclusions contained in the software and documentation are those 266cd6a6acSopenharmony_ci * of the authors and should not be interpreted as representing official policies, 276cd6a6acSopenharmony_ci * either expressed or implied, of Tresys Technology, LLC. 286cd6a6acSopenharmony_ci */ 296cd6a6acSopenharmony_ci 306cd6a6acSopenharmony_ci#include <stdlib.h> 316cd6a6acSopenharmony_ci#include <stdio.h> 326cd6a6acSopenharmony_ci#include <string.h> 336cd6a6acSopenharmony_ci#include <sys/stat.h> 346cd6a6acSopenharmony_ci#include <sepol/policydb/symtab.h> 356cd6a6acSopenharmony_ci#include <sepol/policydb/policydb.h> 366cd6a6acSopenharmony_ci 376cd6a6acSopenharmony_ci#include "CuTest.h" 386cd6a6acSopenharmony_ci#include "CilTest.h" 396cd6a6acSopenharmony_ci 406cd6a6acSopenharmony_ci#include "../../src/cil_internal.h" 416cd6a6acSopenharmony_ci 426cd6a6acSopenharmony_ci#include "test_cil.h" 436cd6a6acSopenharmony_ci#include "test_cil_tree.h" 446cd6a6acSopenharmony_ci#include "test_cil_list.h" 456cd6a6acSopenharmony_ci#include "test_cil_symtab.h" 466cd6a6acSopenharmony_ci#include "test_cil_parser.h" 476cd6a6acSopenharmony_ci#include "test_cil_lexer.h" 486cd6a6acSopenharmony_ci#include "test_cil_build_ast.h" 496cd6a6acSopenharmony_ci#include "test_cil_resolve_ast.h" 506cd6a6acSopenharmony_ci#include "test_cil_fqn.h" 516cd6a6acSopenharmony_ci#include "test_cil_copy_ast.h" 526cd6a6acSopenharmony_ci#include "test_cil_post.h" 536cd6a6acSopenharmony_ci#include "test_integration.h" 546cd6a6acSopenharmony_ci 556cd6a6acSopenharmony_civoid set_cil_file_data(struct cil_file_data **data) { 566cd6a6acSopenharmony_ci struct cil_file_data *new_data = malloc(sizeof(*new_data)); 576cd6a6acSopenharmony_ci FILE *file; 586cd6a6acSopenharmony_ci struct stat filedata; 596cd6a6acSopenharmony_ci uint32_t file_size; 606cd6a6acSopenharmony_ci char *buffer; 616cd6a6acSopenharmony_ci 626cd6a6acSopenharmony_ci file = fopen("test/policy.cil", "r"); 636cd6a6acSopenharmony_ci if (!file) { 646cd6a6acSopenharmony_ci fprintf(stderr, "Could not open file\n"); 656cd6a6acSopenharmony_ci exit(1); 666cd6a6acSopenharmony_ci } 676cd6a6acSopenharmony_ci if (stat("test/policy.cil", &filedata) == -1) { 686cd6a6acSopenharmony_ci printf("Could not stat file\n"); 696cd6a6acSopenharmony_ci exit(1); 706cd6a6acSopenharmony_ci } 716cd6a6acSopenharmony_ci file_size = filedata.st_size; 726cd6a6acSopenharmony_ci 736cd6a6acSopenharmony_ci buffer = malloc(file_size + 2); 746cd6a6acSopenharmony_ci if(fread(buffer, file_size, 1, file) < 1) { 756cd6a6acSopenharmony_ci exit(1); 766cd6a6acSopenharmony_ci } 776cd6a6acSopenharmony_ci memset(buffer+file_size, 0, 2); 786cd6a6acSopenharmony_ci fclose(file); 796cd6a6acSopenharmony_ci 806cd6a6acSopenharmony_ci 816cd6a6acSopenharmony_ci new_data->buffer = buffer; 826cd6a6acSopenharmony_ci new_data->file_size = file_size; 836cd6a6acSopenharmony_ci 846cd6a6acSopenharmony_ci *data = new_data; 856cd6a6acSopenharmony_ci 866cd6a6acSopenharmony_ci} 876cd6a6acSopenharmony_ci 886cd6a6acSopenharmony_civoid gen_test_tree(struct cil_tree **test_root, char *line[]) { 896cd6a6acSopenharmony_ci struct cil_tree *new_tree = malloc(sizeof(*new_tree)); 906cd6a6acSopenharmony_ci struct cil_tree_node *node, *item, *current; 916cd6a6acSopenharmony_ci 926cd6a6acSopenharmony_ci cil_tree_init(&new_tree); 936cd6a6acSopenharmony_ci new_tree->root->flavor = CIL_ROOT; 946cd6a6acSopenharmony_ci current = new_tree->root; 956cd6a6acSopenharmony_ci 966cd6a6acSopenharmony_ci char **i = line; 976cd6a6acSopenharmony_ci do { 986cd6a6acSopenharmony_ci if (*i[0] == '(') { 996cd6a6acSopenharmony_ci cil_tree_node_init(&node); 1006cd6a6acSopenharmony_ci node->parent = current; 1016cd6a6acSopenharmony_ci node->flavor = CIL_PARSE_NODE; 1026cd6a6acSopenharmony_ci node->line = 0; 1036cd6a6acSopenharmony_ci if (current->cl_head == NULL) 1046cd6a6acSopenharmony_ci current->cl_head = node; 1056cd6a6acSopenharmony_ci else 1066cd6a6acSopenharmony_ci current->cl_tail->next = node; 1076cd6a6acSopenharmony_ci current->cl_tail = node; 1086cd6a6acSopenharmony_ci current = node; 1096cd6a6acSopenharmony_ci } 1106cd6a6acSopenharmony_ci else if (*i[0] == ')') 1116cd6a6acSopenharmony_ci current = current->parent; 1126cd6a6acSopenharmony_ci else { 1136cd6a6acSopenharmony_ci cil_tree_node_init(&item); 1146cd6a6acSopenharmony_ci item->parent = current; 1156cd6a6acSopenharmony_ci item->data = cil_strdup(*i); 1166cd6a6acSopenharmony_ci item->flavor = CIL_PARSE_NODE; 1176cd6a6acSopenharmony_ci item->line = 0; 1186cd6a6acSopenharmony_ci if (current->cl_head == NULL) { 1196cd6a6acSopenharmony_ci current->cl_head = item; 1206cd6a6acSopenharmony_ci } 1216cd6a6acSopenharmony_ci else { 1226cd6a6acSopenharmony_ci current->cl_tail->next = item; 1236cd6a6acSopenharmony_ci } 1246cd6a6acSopenharmony_ci current->cl_tail = item; 1256cd6a6acSopenharmony_ci } 1266cd6a6acSopenharmony_ci i++; 1276cd6a6acSopenharmony_ci } while(*i != NULL); 1286cd6a6acSopenharmony_ci 1296cd6a6acSopenharmony_ci *test_root = new_tree; 1306cd6a6acSopenharmony_ci} 1316cd6a6acSopenharmony_ci 1326cd6a6acSopenharmony_civoid test_symtab_init(CuTest *tc) { 1336cd6a6acSopenharmony_ci struct cil_db *test_new_db; 1346cd6a6acSopenharmony_ci test_new_db = malloc(sizeof(*test_new_db)); 1356cd6a6acSopenharmony_ci 1366cd6a6acSopenharmony_ci uint32_t rc = 0, i =0; 1376cd6a6acSopenharmony_ci 1386cd6a6acSopenharmony_ci for (i = 0; i < CIL_SYM_NUM; i++) { 1396cd6a6acSopenharmony_ci rc = symtab_init(&test_new_db->symtab[i], cil_sym_sizes[CIL_SYM_ARRAY_ROOT][i]); 1406cd6a6acSopenharmony_ci CuAssertIntEquals(tc, 0, rc); 1416cd6a6acSopenharmony_ci // TODO CDS add checks to make sure the symtab looks correct 1426cd6a6acSopenharmony_ci } 1436cd6a6acSopenharmony_ci 1446cd6a6acSopenharmony_ci free(test_new_db); 1456cd6a6acSopenharmony_ci} 1466cd6a6acSopenharmony_ci 1476cd6a6acSopenharmony_civoid test_symtab_init_no_table_neg(CuTest *tc) { 1486cd6a6acSopenharmony_ci struct cil_db *test_new_db; 1496cd6a6acSopenharmony_ci test_new_db = malloc(sizeof(*test_new_db)); 1506cd6a6acSopenharmony_ci 1516cd6a6acSopenharmony_ci int rc = symtab_init(&test_new_db->symtab[0], (uint32_t)SIZE_MAX); 1526cd6a6acSopenharmony_ci CuAssertIntEquals(tc, -1, rc); 1536cd6a6acSopenharmony_ci 1546cd6a6acSopenharmony_ci free(test_new_db); 1556cd6a6acSopenharmony_ci} 1566cd6a6acSopenharmony_ci 1576cd6a6acSopenharmony_ciCuSuite* CilTreeGetResolveSuite(void) { 1586cd6a6acSopenharmony_ci CuSuite* suite = CuSuiteNew(); 1596cd6a6acSopenharmony_ci 1606cd6a6acSopenharmony_ci /* test_cil_resolve_ast.c */ 1616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_curr_null_neg); 1626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_nodes_inval_perm_neg); 1636cd6a6acSopenharmony_ci 1646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name); 1656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_invalid_type_neg); 1666cd6a6acSopenharmony_ci 1676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_type_in_multiple_attrs); 1686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_multiple_excludes_with_not); 1696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_multiple_types_with_and); 1706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_using_attr); 1716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_name_neg); 1726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_undef_type_neg); 1736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_not); 1746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typeattributeset_undef_type_not_neg); 1756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typeattributeset); 1766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typeattributeset_undef_type_neg); 1776cd6a6acSopenharmony_ci 1786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typealias); 1796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typealias_neg); 1806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typealias); 1816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typealias_notype_neg); 1826cd6a6acSopenharmony_ci 1836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typebounds); 1846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typebounds_repeatbind_neg); 1856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typebounds_type1_neg); 1866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typebounds_type2_neg); 1876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typebounds); 1886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typebounds_neg); 1896cd6a6acSopenharmony_ci 1906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typepermissive); 1916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_typepermissive_neg); 1926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typepermissive); 1936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_typepermissive_neg); 1946cd6a6acSopenharmony_ci 1956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nametypetransition); 1966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nametypetransition_src_neg); 1976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nametypetransition_tgt_neg); 1986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nametypetransition_class_neg); 1996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nametypetransition_dest_neg); 2006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_nametypetransition); 2016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_nametypetransition_neg); 2026cd6a6acSopenharmony_ci 2036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition); 2046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_namedrange); 2056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_namedrange_anon); 2066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_namedrange_anon_neg); 2076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_namedrange_neg); 2086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_type1_neg); 2096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_type2_neg); 2106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_class_neg); 2116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_call_level_l_anon); 2126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_call_level_l_anon_neg); 2136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_call_level_h_anon); 2146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_call_level_h_anon_neg); 2156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_level_l_neg); 2166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_level_h_neg); 2176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_anon_level_l); 2186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_anon_level_l_neg); 2196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_anon_level_h); 2206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rangetransition_anon_level_h_neg); 2216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_rangetransition); 2226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_rangetransition_neg); 2236cd6a6acSopenharmony_ci 2246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classcommon); 2256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classcommon_no_class_neg); 2266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classcommon_no_common_neg); 2276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_classcommon); 2286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_classcommon_neg); 2296cd6a6acSopenharmony_ci 2306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_named); 2316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_anon); 2326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_anon_inmacro); 2336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_anon_inmacro_neg); 2346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_named_classmapname_neg); 2356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_anon_classmapname_neg); 2366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classmapping_anon_permset_neg); 2376cd6a6acSopenharmony_ci 2386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rolebounds); 2396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rolebounds_exists_neg); 2406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rolebounds_role1_neg); 2416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_rolebounds_role2_neg); 2426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_rolebounds); 2436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_rolebounds_neg); 2446cd6a6acSopenharmony_ci 2456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sensalias); 2466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sensalias_sensdecl_neg); 2476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_sensalias); 2486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_sensalias_neg); 2496cd6a6acSopenharmony_ci 2506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catalias); 2516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catalias_catdecl_neg); 2526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catalias); 2536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catalias_neg); 2546cd6a6acSopenharmony_ci 2556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catorder); 2566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catorder_neg); 2576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catorder); 2586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catorder_neg); 2596cd6a6acSopenharmony_ci 2606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_dominance); 2616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_dominance_neg); 2626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_dominance); 2636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_dominance_neg); 2646cd6a6acSopenharmony_ci //TODO: test for __cil_set_order 2656cd6a6acSopenharmony_ci 2666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catset); 2676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catset_catlist_neg); 2686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catset); 2696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catset_catlist_neg); 2706cd6a6acSopenharmony_ci 2716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catrange); 2726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catrange_catloworder_neg); 2736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catrange_cathighorder_neg); 2746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catrange_cat1_neg); 2756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_catrange_cat2_neg); 2766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catrange); 2776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_catrange_neg); 2786cd6a6acSopenharmony_ci 2796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat); 2806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_catrange_neg); 2816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_catsetname); 2826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_catsetname_neg); 2836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_sublist); 2846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_missingsens_neg); 2856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_category_neg); 2866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_senscat_currrangecat); 2876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_senscat); 2886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_senscat_neg); 2896cd6a6acSopenharmony_ci 2906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level); 2916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level_catlist); 2926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level_catset); 2936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level_catset_name_neg); 2946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level_sens_neg); 2956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level_cat_neg); 2966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_level_senscat_neg); 2976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_level); 2986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_level_neg); 2996cd6a6acSopenharmony_ci 3006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_levelrange_namedlvl); 3016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_levelrange_namedlvl_low_neg); 3026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_levelrange_namedlvl_high_neg); 3036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_levelrange_anonlvl); 3046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_levelrange_anonlvl_low_neg); 3056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_levelrange_anonlvl_high_neg); 3066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_levelrange); 3076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_levelrange_neg); 3086cd6a6acSopenharmony_ci 3096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_constrain); 3106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_constrain_class_neg); 3116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_constrain_perm_neg); 3126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_constrain_perm_resolve_neg); 3136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_constrain); 3146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_constrain_neg); 3156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_mlsconstrain); 3166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_mlsconstrain_neg); 3176cd6a6acSopenharmony_ci 3186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context); 3196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_macro); 3206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_macro_neg); 3216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_namedrange); 3226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_namedrange_neg); 3236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_user_neg); 3246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_role_neg); 3256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_type_neg); 3266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_context_anon_level_neg); 3276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_context); 3286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_context_neg); 3296cd6a6acSopenharmony_ci 3306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletransition); 3316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletransition_srcdecl_neg); 3326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletransition_tgtdecl_neg); 3336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletransition_resultdecl_neg); 3346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletransition); 3356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletransition_srcdecl_neg); 3366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletransition_tgtdecl_neg); 3376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletransition_resultdecl_neg); 3386cd6a6acSopenharmony_ci 3396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roleallow); 3406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roleallow_srcdecl_neg); 3416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roleallow_tgtdecl_neg); 3426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roleallow); 3436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roleallow_neg); 3446cd6a6acSopenharmony_ci 3456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_named); 3466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_named_namedpermlist); 3476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_named_permlist_neg); 3486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_named_unnamedcps_neg); 3496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_anon); 3506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_anon_namedpermlist); 3516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_classpermset_anon_permlist_neg); 3526cd6a6acSopenharmony_ci 3536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule); 3546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_permset); 3556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_permset_neg); 3566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_permset_permdne_neg); 3576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_firsttype_neg); 3586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_secondtype_neg); 3596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_class_neg); 3606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_avrule_perm_neg); 3616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_avrule); 3626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_avrule_src_nores_neg); 3636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_avrule_tgt_nores_neg); 3646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_avrule_class_nores_neg); 3656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_avrule_datum_null_neg); 3666cd6a6acSopenharmony_ci 3676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_transition); 3686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_transition_srcdecl_neg); 3696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_transition_tgtdecl_neg); 3706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_transition_objdecl_neg); 3716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_transition_resultdecl_neg); 3726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_type_rule_transition); 3736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_type_rule_transition_neg); 3746cd6a6acSopenharmony_ci 3756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_change); 3766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_change_srcdecl_neg); 3776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_change_tgtdecl_neg); 3786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_change_objdecl_neg); 3796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_change_resultdecl_neg); 3806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_type_rule_change); 3816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_type_rule_change_neg); 3826cd6a6acSopenharmony_ci 3836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_member); 3846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_member_srcdecl_neg); 3856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_member_tgtdecl_neg); 3866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_member_objdecl_neg); 3876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_type_rule_member_resultdecl_neg); 3886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_type_rule_member); 3896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_type_rule_member_neg); 3906cd6a6acSopenharmony_ci 3916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_filecon); 3926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_filecon_neg); 3936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_filecon_anon_context); 3946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_filecon_anon_context_neg); 3956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_filecon); 3966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_filecon_neg); 3976cd6a6acSopenharmony_ci 3986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_portcon); 3996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_portcon_neg); 4006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_portcon_anon_context); 4016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_portcon_anon_context_neg); 4026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_portcon); 4036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_portcon_neg); 4046cd6a6acSopenharmony_ci 4056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_genfscon); 4066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_genfscon_neg); 4076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_genfscon_anon_context); 4086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_genfscon_anon_context_neg); 4096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_genfscon); 4106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_genfscon_neg); 4116cd6a6acSopenharmony_ci 4126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_ipv4); 4136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_ipv6); 4146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_anonipaddr_ipv4); 4156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_anonnetmask_ipv4); 4166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_anonipaddr_ipv6); 4176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_anonnetmask_ipv6); 4186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_diffipfam_neg); 4196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_context_neg); 4206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_ipaddr_neg); 4216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_netmask_neg); 4226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_anon_context); 4236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_nodecon_anon_context_neg); 4246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_nodecon); 4256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_nodecon_ipaddr_neg); 4266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_nodecon_netmask_neg); 4276cd6a6acSopenharmony_ci 4286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_netifcon); 4296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_netifcon_otf_neg); 4306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_netifcon_interface_neg); 4316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_netifcon_unnamed); 4326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_netifcon_unnamed_packet_neg); 4336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_netifcon_unnamed_otf_neg); 4346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_netifcon); 4356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_netifcon_neg); 4366cd6a6acSopenharmony_ci 4376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pirqcon); 4386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pirqcon_context_neg); 4396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pirqcon_anon_context); 4406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pirqcon_anon_context_neg); 4416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_pirqcon); 4426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_pirqcon_neg); 4436cd6a6acSopenharmony_ci 4446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_iomemcon); 4456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_iomemcon_context_neg); 4466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_iomemcon_anon_context); 4476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_iomemcon_anon_context_neg); 4486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_iomemcon); 4496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_iomemcon_neg); 4506cd6a6acSopenharmony_ci 4516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ioportcon); 4526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ioportcon_context_neg); 4536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ioportcon_anon_context); 4546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ioportcon_anon_context_neg); 4556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_ioportcon); 4566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_ioportcon_neg); 4576cd6a6acSopenharmony_ci 4586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pcidevicecon); 4596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pcidevicecon_context_neg); 4606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pcidevicecon_anon_context); 4616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_pcidevicecon_anon_context_neg); 4626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_pcidevicecon); 4636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_pcidevicecon_neg); 4646cd6a6acSopenharmony_ci 4656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_fsuse); 4666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_fsuse_neg); 4676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_fsuse_anon); 4686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_fsuse_anon_neg); 4696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_fsuse); 4706cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_fsuse_neg); 4716cd6a6acSopenharmony_ci 4726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sidcontext); 4736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sidcontext_named_levels); 4746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sidcontext_named_context); 4756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sidcontext_named_context_wrongname_neg); 4766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_sidcontext_named_context_invaliduser_neg); 4776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_sidcontext); 4786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_sidcontext_neg); 4796cd6a6acSopenharmony_ci 4806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_blockinherit); 4816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_blockinherit_blockstrdne_neg); 4826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_blockinherit); 4836cd6a6acSopenharmony_ci 4846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_in_block); 4856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_in_blockstrdne_neg); 4866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_in_macro); 4876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_in_optional); 4886cd6a6acSopenharmony_ci 4896cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_resolve_call1_noparam); 4906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_type); 4916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_role); 4926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_user); 4936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_sens); 4946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_cat); 4956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_catset); 4966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_catset_anon); 4976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_catset_anon_neg); 4986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_class); 4996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_classmap); 5006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_permset); 5016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_permset_anon); 5026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_classpermset_named); 5036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_classpermset_anon); 5046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_classpermset_anon_neg); 5056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_level); 5066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_level_anon); 5076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_level_anon_neg); 5086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_ipaddr); 5096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_ipaddr_anon); 5106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_ipaddr_anon_neg); 5116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_unknown_neg); 5126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_unknowncall_neg); 5136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_extraargs_neg); 5146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_copy_dup); 5156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_missing_arg_neg); 5166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_paramsflavor_neg); 5176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call1_unknownflavor_neg); 5186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_call1); 5196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_call1_neg); 5206cd6a6acSopenharmony_ci 5216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_type); 5226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_role); 5236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_user); 5246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_sens); 5256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_cat); 5266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_catset); 5276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_catset_anon); 5286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_permset); 5296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_permset_anon); 5306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_classpermset_named); 5316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_classpermset_anon); 5326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_class); 5336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_classmap); 5346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_level); 5356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_level_anon); 5366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_ipaddr); 5376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_ipaddr_anon); 5386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_call2_unknown_neg); 5396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_call2); 5406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_call2_neg); 5416cd6a6acSopenharmony_ci 5426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args); 5436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args_multipleparams); 5446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args_diffflavor); 5456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args_callnull_neg); 5466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args_namenull_neg); 5476cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args_callargsnull_neg); 5486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_name_call_args_name_neg); 5496cd6a6acSopenharmony_ci 5506cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_bools); 5516cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_tunables); 5526cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_type); 5536cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_role); 5546cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_user); 5556cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_neg); 5566cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_resolve_expr_stack_emptystr_neg); 5576cd6a6acSopenharmony_ci 5586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_boolif); 5596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_boolif_neg); 5606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_boolif); 5616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_boolif_neg); 5626cd6a6acSopenharmony_ci 5636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_and); 5646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_not); 5656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_or); 5666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_xor); 5676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_eq); 5686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_neq); 5696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_oper1); 5706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_oper2); 5716cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_evaluate_expr_stack_neg); 5726cd6a6acSopenharmony_ci 5736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_tunif_false); 5746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_tunif_true); 5756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_tunif_resolveexpr_neg); 5766cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_resolve_tunif_evaluateexpr_neg); 5776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_tunif); 5786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_tunif_neg); 5796cd6a6acSopenharmony_ci 5806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userbounds); 5816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userbounds_exists_neg); 5826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userbounds_user1_neg); 5836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userbounds_user2_neg); 5846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userbounds); 5856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userbounds_neg); 5866cd6a6acSopenharmony_ci 5876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletype); 5886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletype_type_neg); 5896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_roletype_role_neg); 5906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletype); 5916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletype_role_neg); 5926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_roletype_type_neg); 5936cd6a6acSopenharmony_ci 5946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrole); 5956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrole_user_neg); 5966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrole_role_neg); 5976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userrole); 5986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userrole_user_neg); 5996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userrole_role_neg); 6006cd6a6acSopenharmony_ci 6016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel); 6026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel_macro); 6036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel_macro_neg); 6046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel_level_anon); 6056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel_level_anon_neg); 6066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel_user_neg); 6076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userlevel_level_neg); 6086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userlevel); 6096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userlevel_neg); 6106cd6a6acSopenharmony_ci 6116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange); 6126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange_macro); 6136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange_macro_neg); 6146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange_range_anon); 6156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange_range_anon_neg); 6166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange_user_neg); 6176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_userrange_range_neg); 6186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userrange); 6196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_userrange_neg); 6206cd6a6acSopenharmony_ci 6216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_optional_enabled); 6226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_optional_disabled); 6236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_block); 6246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_user); 6256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_role); 6266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_type); 6276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_typealias); 6286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_common); 6296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_class); 6306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_bool); 6316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_sens); 6326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_cat); 6336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_catset); 6346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_sid); 6356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_macro); 6366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_context); 6376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_level); 6386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_policycap); 6396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_perm); 6406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_catalias); 6416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_sensalias); 6426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_tunable); 6436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_disable_children_helper_unknown); 6446cd6a6acSopenharmony_ci 6456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_callstack); 6466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_call); 6476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_optional); 6486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_macro); 6496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_optstack); 6506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_optstack_tunable_neg); 6516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_optstack_macro_neg); 6526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_nodenull_neg); 6536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_extraargsnull_neg); 6546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_resolve_ast_node_helper_optfailedtoresolve); 6556cd6a6acSopenharmony_ci 6566cd6a6acSopenharmony_ci return suite; 6576cd6a6acSopenharmony_ci} 6586cd6a6acSopenharmony_ci 6596cd6a6acSopenharmony_ciCuSuite* CilTreeGetBuildSuite(void) { 6606cd6a6acSopenharmony_ci CuSuite* suite = CuSuiteNew(); 6616cd6a6acSopenharmony_ci 6626cd6a6acSopenharmony_ci /* test_cil_build_ast.c */ 6636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast); 6646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_dbnull_neg); 6656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_astnull_neg); 6666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_treenull_neg); 6676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_suberr_neg); 6686cd6a6acSopenharmony_ci 6696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_parse_to_list); 6706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_parse_to_list_currnull_neg); 6716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_parse_to_list_listnull_neg); 6726cd6a6acSopenharmony_ci 6736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_set_to_list); 6746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_set_to_list_listnull_neg); 6756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_set_to_list_tree_node_null_neg); 6766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_set_to_list_cl_head_null_neg); 6776cd6a6acSopenharmony_ci 6786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block); 6796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block_justblock_neg); 6806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block_noname_neg); 6816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block_dbnull_neg); 6826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block_treenull_neg); 6836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block_nodenull_neg); 6846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_block_nodeparentnull_neg); 6856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_block); 6866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_block_neg); 6876cd6a6acSopenharmony_ci 6886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit); 6896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit_namelist_neg); 6906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit_namenull_neg); 6916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit_extra_neg); 6926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit_dbnull_neg); 6936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit_currnull_neg); 6946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_blockinherit_astnull_neg); 6956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_blockinherit); 6966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_blockinherit_neg); 6976cd6a6acSopenharmony_ci 6986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm); 6996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_dbnull_neg); 7006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_currnull_neg); 7016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_astnull_neg); 7026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_nodenull_neg); 7036cd6a6acSopenharmony_ci 7046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset); 7056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_noname_neg); 7066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_nameinparens_neg); 7076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_noperms_neg); 7086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_emptyperms_neg); 7096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_extra_neg); 7106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_dbnull_neg); 7116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_currnull_neg); 7126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_permset_astnull_neg); 7136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_permset); 7146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_permset_neg); 7156cd6a6acSopenharmony_ci 7166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_nodes); 7176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_perm_nodes_failgen_neg); 7186cd6a6acSopenharmony_ci 7196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_permset); 7206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_permset_sublist_neg); 7216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_permset_startpermnull_neg); 7226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_permset_permsetnull_neg); 7236cd6a6acSopenharmony_ci 7246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_in); 7256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_in_blockstrnull_neg); 7266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_in_extra_neg); 7276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_in_dbnull_neg); 7286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_in_currnull_neg); 7296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_in_astnull_neg); 7306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_in); 7316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_in_neg); 7326cd6a6acSopenharmony_ci 7336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class); 7346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_noname_neg); 7356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_nodenull_neg); 7366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_dbnull_neg); 7376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_currnull_neg); 7386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_noclassname_neg); 7396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_namesublist_neg); 7406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_noperms); 7416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_permsnotinlist_neg); 7426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_extrapermlist_neg); 7436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_class_listinlist_neg); 7446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_class); 7456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_class_neg); 7466cd6a6acSopenharmony_ci 7476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_anonperms); 7486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_anonperms_neg); 7496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_namedperms); 7506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_extra_neg); 7516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_emptypermslist_neg); 7526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_noperms_neg); 7536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_noclass_neg); 7546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_classnodenull_neg); 7556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_classpermset_cpsnull_neg); 7566cd6a6acSopenharmony_ci 7576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset); 7586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_noname_neg); 7596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_nameinparens_neg); 7606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_noclass_neg); 7616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_noperms_neg); 7626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_emptyperms_neg); 7636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_extra_neg); 7646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_dbnull_neg); 7656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_currnull_neg); 7666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classpermset_astnull_neg); 7676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_classpermset); 7686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_classpermset_neg); 7696cd6a6acSopenharmony_ci 7706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_perm); 7716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_perm_dupeperm_neg); 7726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_perm_dbnull_neg); 7736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_perm_currnull_neg); 7746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_perm_astnull_neg); 7756cd6a6acSopenharmony_ci 7766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap); 7776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_extra_neg); 7786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_noname_neg); 7796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_emptyperms_neg); 7806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_dbnull_neg); 7816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_currnull_neg); 7826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmap_astnull_neg); 7836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_classmap); 7846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_classmap_neg); 7856cd6a6acSopenharmony_ci 7866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_anonpermset); 7876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_anonpermset_neg); 7886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_namedpermset); 7896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_noclassmapname_neg); 7906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_noclassmapperm_neg); 7916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_nopermissionsets_neg); 7926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_dbnull_neg); 7936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_currnull_neg); 7946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classmapping_astnull_neg); 7956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_classmapping); 7966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_classmapping_neg); 7976cd6a6acSopenharmony_ci 7986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common); 7996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_dbnull_neg); 8006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_currnull_neg); 8016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_astnull_neg); 8026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_noname_neg); 8036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_twoperms_neg); 8046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_permsublist_neg); 8056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_common_noperms_neg); 8066cd6a6acSopenharmony_ci 8076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_common); 8086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_common_neg); 8096cd6a6acSopenharmony_ci 8106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid); 8116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid_noname_neg); 8126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid_nameinparens_neg); 8136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid_extra_neg); 8146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid_dbnull_neg); 8156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid_currnull_neg); 8166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sid_astnull_neg); 8176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sid); 8186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sid_neg); 8196cd6a6acSopenharmony_ci 8206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext); 8216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_namedcontext); 8226cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_halfcontext_neg); 8236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_noname_neg); 8246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_empty_neg); 8256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_nocontext_neg); 8266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_dblname_neg); 8276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_dbnull_neg); 8286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_pcurrnull_neg); 8296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sidcontext_astnodenull_neg); 8306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sidcontext); 8316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sidcontext_neg); 8326cd6a6acSopenharmony_ci 8336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type); 8346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_dbnull_neg); 8356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_currnull_neg); 8366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_astnull_neg); 8376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_extra_neg); 8386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type); 8396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_neg); 8406cd6a6acSopenharmony_ci 8416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattribute); 8426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattribute_dbnull_neg); 8436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattribute_currnull_neg); 8446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattribute_astnull_neg); 8456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattribute_extra_neg); 8466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typeattribute); 8476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typeattribute_neg); 8486cd6a6acSopenharmony_ci 8496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds); 8506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_notype1_neg); 8516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_type1inparens_neg); 8526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_notype2_neg); 8536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_type2inparens_neg); 8546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_extra_neg); 8556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_dbnull_neg); 8566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_currnull_neg); 8576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typebounds_astnull_neg); 8586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typebounds); 8596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typebounds_neg); 8606cd6a6acSopenharmony_ci 8616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive); 8626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive_noname_neg); 8636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive_typeinparens_neg); 8646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive_extra_neg); 8656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive_dbnull_neg); 8666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive_currnull_neg); 8676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typepermissive_astnull_neg); 8686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typepermissive); 8696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typepermissive_neg); 8706cd6a6acSopenharmony_ci 8716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition); 8726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_nostr_neg); 8736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_strinparens_neg); 8746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_nosrc_neg); 8756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_srcinparens_neg); 8766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_notgt_neg); 8776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_tgtinparens_neg); 8786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_noclass_neg); 8796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_classinparens_neg); 8806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_nodest_neg); 8816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_destinparens_neg); 8826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_extra_neg); 8836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_dbnull_neg); 8846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_currnull_neg); 8856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nametypetransition_astnull_neg); 8866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_nametypetransition); 8876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_nametypetransition_neg); 8886cd6a6acSopenharmony_ci 8896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition); 8906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_namedtransition); 8916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_anon_low_l); 8926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_anon_low_l_neg); 8936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_anon_high_l); 8946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_anon_high_l_neg); 8956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_dbnull_neg); 8966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_currnull_neg); 8976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_astnull_neg); 8986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_nofirsttype_neg); 8996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_firsttype_inparens_neg); 9006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_nosecondtype_neg); 9016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_secondtype_inparens_neg); 9026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_noclass_neg); 9036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_class_inparens_neg); 9046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_nolevel_l_neg); 9056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_nolevel_h_neg); 9066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rangetransition_extra_neg); 9076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_rangetransition); 9086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_rangetransition_neg); 9096cd6a6acSopenharmony_ci 9106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_and); 9116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_or); 9126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_xor); 9136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_not); 9146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_not_noexpr_neg); 9156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_not_extraexpr_neg); 9166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_eq); 9176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_neq); 9186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_nested); 9196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_nested_neg); 9206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_nested_emptyargs_neg); 9216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_nested_missingoperator_neg); 9226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_arg1null_neg); 9236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_arg2null_neg); 9246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_extraarg_neg); 9256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_currnull_neg); 9266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_expr_stack_stacknull_neg); 9276cd6a6acSopenharmony_ci 9286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_multiplebools_true); 9296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_multiplebools_false); 9306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_multiplebools_unknowncond_neg); 9316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_true); 9326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_false); 9336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_unknowncond_neg); 9346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_nested); 9356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_nested_neg); 9366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_extra_neg); 9376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_extra_parens_neg); 9386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_nocond); 9396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_neg); 9406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_dbnull_neg); 9416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_currnull_neg); 9426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_astnull_neg); 9436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_nocond_neg); 9446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_notruelist_neg); 9456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_boolif_empty_cond_neg); 9466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_boolif); 9476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_boolif_neg); 9486cd6a6acSopenharmony_ci 9496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_multiplebools_true); 9506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_multiplebools_false); 9516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_multiplebools_unknowncond_neg); 9526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_true); 9536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_false); 9546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_unknowncond_neg); 9556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_nocond); 9566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_nested); 9576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_nested_neg); 9586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_extra_neg); 9596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_extra_parens_neg); 9606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_neg); 9616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_dbnull_neg); 9626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_currnull_neg); 9636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_astnull_neg); 9646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_nocond_neg); 9656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_tunif_notruelist_neg); 9666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_tunif); 9676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_tunif_neg); 9686cd6a6acSopenharmony_ci 9696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_true); 9706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_false); 9716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_dbnull_neg); 9726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_currnull_neg); 9736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_astnull_neg); 9746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_nocond_neg); 9756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_condblock_extra_neg); 9766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_condblock_true); 9776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_condblock_true_neg); 9786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_condblock_false); 9796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_condblock_false_neg); 9806cd6a6acSopenharmony_ci 9816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias); 9826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias_incomplete_neg); 9836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias_incomplete_neg2); 9846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias_extratype_neg); 9856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typealias); 9866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typealias_notype_neg); 9876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias_dbnull_neg); 9886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias_currnull_neg); 9896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typealias_astnull_neg); 9906cd6a6acSopenharmony_ci 9916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset); 9926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_and_two_types); 9936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_not); 9946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_exclude_attr); 9956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_exclude_neg); 9966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_dbnull_neg); 9976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_currnull_neg); 9986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_astnull_neg); 9996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_noname_neg); 10006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_nameinparens_neg); 10016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_emptylists_neg); 10026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_listinparens_neg); 10036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_typeattributeset_extra_neg); 10046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typeattributeset); 10056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_typeattributeset_neg); 10066cd6a6acSopenharmony_ci 10076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds); 10086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_notype1_neg); 10096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_type1_inparens_neg); 10106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_notype2_neg); 10116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_type2_inparens_neg); 10126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_extra_neg); 10136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_dbnull_neg); 10146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_currnull_neg); 10156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userbounds_astnull_neg); 10166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userbounds); 10176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userbounds_neg); 10186cd6a6acSopenharmony_ci 10196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_role); 10206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_role_dbnull_neg); 10216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_role_currnull_neg); 10226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_role_astnull_neg); 10236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_role_extrarole_neg); 10246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_role_noname_neg); 10256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_role); 10266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_role_neg); 10276cd6a6acSopenharmony_ci 10286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition); 10296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition_currnull_neg); 10306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition_astnull_neg); 10316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition_srcnull_neg); 10326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition_tgtnull_neg); 10336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition_resultnull_neg); 10346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletransition_extra_neg); 10356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_roletransition); 10366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_roletransition_neg); 10376cd6a6acSopenharmony_ci 10386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_true); 10396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_tunable_true); 10406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_false); 10416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_tunable_false); 10426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_none_neg); 10436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_dbnull_neg); 10446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_currnull_neg); 10456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_astnull_neg); 10466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_notbool_neg); 10476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_boolname_neg); 10486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_extraname_false_neg); 10496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_bool_extraname_true_neg); 10506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_bool); 10516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_bool_neg); 10526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_bool_tunable); 10536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_bool_tunable_neg); 10546cd6a6acSopenharmony_ci 10556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_t1type); 10566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_t1t1_neg); 10576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_t2type); 10586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_t2t2_neg); 10596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_r1role); 10606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_r1r1_neg); 10616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_r2role); 10626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_r2r2_neg); 10636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_t1t2); 10646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_r1r2); 10656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_r1r2); 10666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_u1u2); 10676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_u1user); 10686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_u1u1_neg); 10696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_u2user); 10706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_u2u2_neg); 10716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l2h2); 10726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l2_neg); 10736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l1l2); 10746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l1h1); 10756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l1h2); 10766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_h1l2); 10776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_h1h2); 10786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_h1_neg); 10796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l1l1_neg); 10806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_l1l2_constrain_neg); 10816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_l1l2_constrain_neg); 10826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_leftkeyword_neg); 10836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_noexpr1_neg); 10846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_expr1inparens_neg); 10856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_noexpr2_neg); 10866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_expr2inparens_neg); 10876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq_extraexpr_neg); 10886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2); 10896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_noexpr1_neg); 10906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_expr1inparens_neg); 10916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_noexpr2_neg); 10926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_expr2inparens_neg); 10936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_eq2_extraexpr_neg); 10946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_noteq); 10956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_noteq_noexpr1_neg); 10966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_noteq_expr1inparens_neg); 10976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_noteq_noexpr2_neg); 10986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_noteq_expr2inparens_neg); 10996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_noteq_extraexpr_neg); 11006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_not); 11016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_not_noexpr_neg); 11026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_not_emptyparens_neg); 11036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_not_extraparens_neg); 11046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or); 11056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or_neg); 11066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or_noexpr_neg); 11076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or_emptyfirstparens_neg); 11086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or_missingsecondexpr_neg); 11096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or_emptysecondparens_neg); 11106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_or_extraexpr_neg); 11116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and); 11126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and_neg); 11136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and_noexpr_neg); 11146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and_emptyfirstparens_neg); 11156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and_missingsecondexpr_neg); 11166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and_emptysecondparens_neg); 11176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_and_extraexpr_neg); 11186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_dom); 11196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_dom_noexpr1_neg); 11206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_dom_expr1inparens_neg); 11216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_dom_noexpr2_neg); 11226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_dom_expr2inparens_neg); 11236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_dom_extraexpr_neg); 11246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_domby); 11256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_domby_noexpr1_neg); 11266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_domby_expr1inparens_neg); 11276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_domby_noexpr2_neg); 11286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_domby_expr2inparens_neg); 11296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_domby_extraexpr_neg); 11306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incomp); 11316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incomp_noexpr1_neg); 11326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incomp_expr1inparens_neg); 11336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incomp_noexpr2_neg); 11346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incomp_expr2inparens_neg); 11356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incomp_extraexpr_neg); 11366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_currnull_neg); 11376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_stacknull_neg); 11386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_operatorinparens_neg); 11396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expr_stack_incorrectcall_neg); 11406cd6a6acSopenharmony_ci 11416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow); 11426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow_dbnull_neg); 11436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow_currnull_neg); 11446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow_astnull_neg); 11456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow_srcnull_neg); 11466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow_tgtnull_neg); 11476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roleallow_extra_neg); 11486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_roleallow); 11496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_roleallow_neg); 11506cd6a6acSopenharmony_ci 11516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds); 11526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_norole1_neg); 11536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_role1_inparens_neg); 11546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_norole2_neg); 11556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_role2_inparens_neg); 11566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_extra_neg); 11576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_dbnull_neg); 11586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_currnull_neg); 11596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_rolebounds_astnull_neg); 11606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_rolebounds); 11616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_rolebounds_neg); 11626cd6a6acSopenharmony_ci 11636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule); 11646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_permset); 11656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_permset_anon); 11666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_extra_neg); 11676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_sourceparens); 11686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_sourceemptyparen_neg); 11696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_targetparens); 11706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_targetemptyparen_neg); 11716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_currnull_neg); 11726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_astnull_neg); 11736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_sourcedomainnull_neg); 11746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_targetdomainnull_neg); 11756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_objectclassnull_neg); 11766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_permsnull_neg); 11776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_avrule_twolists_neg); 11786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_allow); 11796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_allow_neg); 11806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_auditallow); 11816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_auditallow_neg); 11826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_dontaudit); 11836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_dontaudit_neg); 11846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_neverallow); 11856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_avrule_neverallow_neg); 11866cd6a6acSopenharmony_ci 11876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition); 11886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_currnull_neg); 11896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_astnull_neg); 11906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_srcnull_neg); 11916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_tgtnull_neg); 11926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_objnull_neg); 11936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_resultnull_neg); 11946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_transition_extra_neg); 11956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_rule_transition); 11966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_rule_transition_neg); 11976cd6a6acSopenharmony_ci 11986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change); 11996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_currnull_neg); 12006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_astnull_neg); 12016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_srcnull_neg); 12026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_tgtnull_neg); 12036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_objnull_neg); 12046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_resultnull_neg); 12056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_change_extra_neg); 12066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_rule_change); 12076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_rule_change_neg); 12086cd6a6acSopenharmony_ci 12096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member); 12106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_extra_neg); 12116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_currnull_neg); 12126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_astnull_neg); 12136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_srcnull_neg); 12146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_tgtnull_neg); 12156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_objnull_neg); 12166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_resultnull_neg); 12176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_type_rule_member_extra_neg); 12186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_rule_member); 12196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_type_rule_member_neg); 12206cd6a6acSopenharmony_ci 12216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_user); 12226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_user_dbnull_neg); 12236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_user_currnull_neg); 12246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_user_astnull_neg); 12256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_user_nouser_neg); 12266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_user_xsinfo_neg); 12276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_user); 12286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_user_neg); 12296cd6a6acSopenharmony_ci 12306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel); 12316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_anon_level); 12326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_anon_level_neg); 12336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_usernull_neg); 12346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_userrange_neg); 12356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_levelnull_neg); 12366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_levelrangeempty_neg); 12376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_extra_neg); 12386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_dbnull_neg); 12396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_currnull_neg); 12406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userlevel_astnull_neg); 12416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userlevel); 12426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userlevel_neg); 12436cd6a6acSopenharmony_ci 12446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_named); 12456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_anon); 12466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_usernull_neg); 12476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_anonuser_neg); 12486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_rangenamenull_neg); 12496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_anonrangeinvalid_neg); 12506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_anonrangeempty_neg); 12516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_extra_neg); 12526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_dbnull_neg); 12536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_currnull_neg); 12546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrange_astnull_neg); 12556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userrange); 12566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userrange_neg); 12576cd6a6acSopenharmony_ci 12586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity); 12596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity_dbnull_neg); 12606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity_currnull_neg); 12616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity_astnull_neg); 12626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity_sensnull_neg); 12636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity_senslist_neg); 12646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensitivity_extra_neg); 12656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sensitivity); 12666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sensitivity_neg); 12676cd6a6acSopenharmony_ci 12686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias); 12696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_dbnull_neg); 12706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_currnull_neg); 12716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_astnull_neg); 12726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_sensnull_neg); 12736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_senslist_neg); 12746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_aliasnull_neg); 12756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_aliaslist_neg); 12766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_sensalias_extra_neg); 12776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sensalias); 12786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_sensalias_neg); 12796cd6a6acSopenharmony_ci 12806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category); 12816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category_dbnull_neg); 12826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category_currnull_neg); 12836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category_astnull_neg); 12846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category_catnull_neg); 12856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category_catlist_neg); 12866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_category_extra_neg); 12876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_category); 12886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_category_neg); 12896cd6a6acSopenharmony_ci 12906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset); 12916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_dbnull_neg); 12926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_currnull_neg); 12936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_astnull_neg); 12946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_namenull_neg); 12956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_setnull_neg); 12966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_namelist_neg); 12976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_extra_neg); 12986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_nodefail_neg); 12996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_notset_neg); 13006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catset_settolistfail_neg); 13016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catset); 13026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catset_neg); 13036cd6a6acSopenharmony_ci 13046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias); 13056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias_dbnull_neg); 13066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias_currnull_neg); 13076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias_astnull_neg); 13086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias_catnull_neg); 13096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias_aliasnull_neg); 13106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catalias_extra_neg); 13116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catalias); 13126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catalias_neg); 13136cd6a6acSopenharmony_ci 13146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange); 13156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_noname_neg); 13166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_norange_neg); 13176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_emptyrange_neg); 13186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_extrarange_neg); 13196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_extra_neg); 13206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_dbnull_neg); 13216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_currnull_neg); 13226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catrange_astnull_neg); 13236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catrange); 13246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catrange_neg); 13256cd6a6acSopenharmony_ci 13266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype); 13276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_currnull_neg); 13286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_dbnull_neg); 13296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_astnull_neg); 13306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_empty_neg); 13316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_rolelist_neg); 13326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_roletype_sublist_neg); 13336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_roletype_typelist_neg); 13346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_roletype); 13356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_roletype_neg); 13366cd6a6acSopenharmony_ci 13376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole); 13386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_currnull_neg); 13396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_dbnull_neg); 13406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_astnull_neg); 13416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_empty_neg); 13426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_userlist_neg); 13436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_userrole_sublist_neg); 13446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_userrole_rolelist_neg); 13456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userrole); 13466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_userrole_neg); 13476cd6a6acSopenharmony_ci 13486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon); 13496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon_dbnull_neg); 13506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon_currnull_neg); 13516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon_astnull_neg); 13526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon_missingclassname_neg); 13536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon_noperms_neg); 13546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_classcommon_extraperms_neg); 13556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_classcommon); 13566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_classcommon_neg); 13576cd6a6acSopenharmony_ci 13586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder); 13596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder_dbnull_neg); 13606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder_currnull_neg); 13616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder_astnull_neg); 13626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder_missingcats_neg); 13636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder_nosublist_neg); 13646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_catorder_nestedcat_neg); 13656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catorder); 13666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_catorder_neg); 13676cd6a6acSopenharmony_ci 13686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_dominance); 13696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_dominance_dbnull_neg); 13706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_dominance_currnull_neg); 13716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_dominance_astnull_neg); 13726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_dominance_nosensitivities_neg); 13736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_dominance_nosublist_neg); 13746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_dominance); 13756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_dominance_neg); 13766cd6a6acSopenharmony_ci 13776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat); 13786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_nosublist); 13796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_dbnull_neg); 13806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_currnull_neg); 13816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_astnull_neg); 13826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_nosensitivities_neg); 13836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_sublist_neg); 13846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_senscat_nocat_neg); 13856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_senscat); 13866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_senscat_neg); 13876cd6a6acSopenharmony_ci 13886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_level); 13896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_level_sensnull_neg); 13906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_level_levelnull_neg); 13916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_level_nocat); 13926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_level_emptycat_neg); 13936cd6a6acSopenharmony_ci 13946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level); 13956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_nameinparens_neg); 13966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_emptysensparens_neg); 13976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_extra_neg); 13986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_emptycat_neg); 13996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_noname_neg); 14006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_nosens_neg); 14016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_dbnull_neg); 14026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_currnull_neg); 14036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_level_astnull_neg); 14046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_level); 14056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_level_neg); 14066cd6a6acSopenharmony_ci 14076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange); 14086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_rangeinvalid_neg); 14096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_namenull_neg); 14106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_rangenull_neg); 14116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_rangeempty_neg); 14126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_extra_neg); 14136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_dbnull_neg); 14146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_currnull_neg); 14156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_levelrange_astnull_neg); 14166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_levelrange); 14176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_levelrange_neg); 14186cd6a6acSopenharmony_ci 14196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain); 14206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_neg); 14216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_classset_neg); 14226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_classset_noperm_neg); 14236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_classset_noclass_neg); 14246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_permset_neg); 14256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_permset_noclass_neg); 14266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_permset_noperm_neg); 14276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_expression_neg); 14286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_dbnull_neg); 14296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_currnull_neg); 14306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_constrain_astnull_neg); 14316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_constrain); 14326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_constrain_neg); 14336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_mlsconstrain); 14346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_mlsconstrain_neg); 14356cd6a6acSopenharmony_ci 14366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context); 14376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_unnamedlvl); 14386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_nocontext_neg); 14396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_nouser_neg); 14406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_norole_neg); 14416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_notype_neg); 14426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_nolowlvl_neg); 14436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_nohighlvl_neg); 14446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_unnamedlvl_nocontextlow_neg); 14456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_context_unnamedlvl_nocontexthigh_neg); 14466cd6a6acSopenharmony_ci 14476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context); 14486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_notinparens_neg); 14496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_extralevel_neg); 14506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_emptycontext_neg); 14516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_extra_neg); 14526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_doubleparen_neg); 14536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_norole_neg); 14546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_roleinparens_neg); 14556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_notype_neg); 14566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_typeinparens_neg); 14576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_nolevels_neg); 14586cd6a6acSopenharmony_ci// SUITE_ADD_TEST(suite, test_cil_gen_context_nosecondlevel_neg); 14596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_noname_neg); 14606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_nouser_neg); 14616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_dbnull_neg); 14626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_currnull_neg); 14636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_context_astnull_neg); 14646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_context); 14656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_context_neg); 14666cd6a6acSopenharmony_ci 14676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_file); 14686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_dir); 14696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_char); 14706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_block); 14716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_socket); 14726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_pipe); 14736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_symlink); 14746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_any); 14756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_neg); 14766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_anon_context); 14776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_dbnull_neg); 14786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_currnull_neg); 14796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_astnull_neg); 14806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_str1null_neg); 14816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_str1_inparens_neg); 14826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_str2null_neg); 14836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_str2_inparens_neg); 14846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_classnull_neg); 14856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_class_inparens_neg); 14866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_contextnull_neg); 14876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_context_neg); 14886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_filecon_extra_neg); 14896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_filecon); 14906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_filecon_neg); 14916cd6a6acSopenharmony_ci 14926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_udp); 14936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_tcp); 14946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_unknownprotocol_neg); 14956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_anon_context); 14966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_portrange); 14976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_portrange_one_neg); 14986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_portrange_morethanone_neg); 14996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_singleport_neg); 15006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_lowport_neg); 15016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_highport_neg); 15026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_dbnull_neg); 15036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_currnull_neg); 15046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_astnull_neg); 15056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_str1null_neg); 15066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_str1parens_neg); 15076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_portnull_neg); 15086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_contextnull_neg); 15096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_context_neg); 15106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_portcon_extra_neg); 15116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_portcon); 15126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_portcon_neg); 15136cd6a6acSopenharmony_ci 15146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_ipaddr); 15156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_ipaddr_addrnodenull_neg); 15166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_ipaddr_addrnull_neg); 15176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_ipaddr_addrinparens_neg); 15186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_fill_ipaddr_extra_neg); 15196cd6a6acSopenharmony_ci 15206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon); 15216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_anon_context); 15226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_dbnull_neg); 15236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_currnull_neg); 15246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_astnull_neg); 15256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_ipnull_neg); 15266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_ipanon); 15276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_ipanon_neg); 15286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_netmasknull_neg); 15296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_netmaskanon); 15306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_netmaskanon_neg); 15316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_contextnull_neg); 15326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_context_neg); 15336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_nodecon_extra_neg); 15346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_nodecon); 15356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_nodecon_neg); 15366cd6a6acSopenharmony_ci 15376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon); 15386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_anon_context); 15396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_dbnull_neg); 15406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_currnull_neg); 15416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_astnull_neg); 15426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_typenull_neg); 15436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_typeparens_neg); 15446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_pathnull_neg); 15456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_pathparens_neg); 15466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_contextnull_neg); 15476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_context_neg); 15486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_genfscon_extra_neg); 15496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_genfscon); 15506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_genfscon_neg); 15516cd6a6acSopenharmony_ci 15526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon); 15536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_nested); 15546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_nested_neg); 15556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_nested_emptysecondlist_neg); 15566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_extra_nested_secondlist_neg); 15576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_nested_missingobjects_neg); 15586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_nested_secondnested_missingobjects_neg); 15596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_dbnull_neg); 15606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_currnull_neg); 15616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_astnull_neg); 15626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_ethmissing_neg); 15636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_interfacemissing_neg); 15646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_netifcon_packetmissing_neg); 15656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_netifcon); 15666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_netifcon_neg); 15676cd6a6acSopenharmony_ci 15686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon); 15696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_pirqnotint_neg); 15706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_nopirq_neg); 15716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_pirqrange_neg); 15726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_nocontext_neg); 15736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_anoncontext_neg); 15746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_extra_neg); 15756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_dbnull_neg); 15766cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_currnull_neg); 15776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pirqcon_astnull_neg); 15786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_pirqcon); 15796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_pirqcon_neg); 15806cd6a6acSopenharmony_ci 15816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon); 15826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemrange); 15836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemrange_firstnotint_neg); 15846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemrange_secondnotint_neg); 15856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemrange_empty_neg); 15866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemrange_singleiomem_neg); 15876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemrange_morethantwoiomem_neg); 15886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_iomemnotint_neg); 15896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_noiomem_neg); 15906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_nocontext_neg); 15916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_anoncontext_neg); 15926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_extra_neg); 15936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_dbnull_neg); 15946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_currnull_neg); 15956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_iomemcon_astnull_neg); 15966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_iomemcon); 15976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_iomemcon_neg); 15986cd6a6acSopenharmony_ci 15996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon); 16006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportrange); 16016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportrange_firstnotint_neg); 16026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportrange_secondnotint_neg); 16036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportrange_empty_neg); 16046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportrange_singleioport_neg); 16056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportrange_morethantwoioport_neg); 16066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_ioportnotint_neg); 16076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_noioport_neg); 16086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_nocontext_neg); 16096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_anoncontext_neg); 16106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_extra_neg); 16116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_dbnull_neg); 16126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_currnull_neg); 16136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ioportcon_astnull_neg); 16146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_ioportcon); 16156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_ioportcon_neg); 16166cd6a6acSopenharmony_ci 16176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon); 16186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_pcidevicenotint_neg); 16196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_nopcidevice_neg); 16206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_pcidevicerange_neg); 16216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_nocontext_neg); 16226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_anoncontext_neg); 16236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_extra_neg); 16246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_dbnull_neg); 16256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_currnull_neg); 16266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_pcidevicecon_astnull_neg); 16276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_pcidevicecon); 16286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_pcidevicecon_neg); 16296cd6a6acSopenharmony_ci 16306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_anoncontext); 16316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_anoncontext_neg); 16326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_xattr); 16336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_task); 16346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_transition); 16356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_invalidtype_neg); 16366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_notype_neg); 16376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_typeinparens_neg); 16386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_nofilesystem_neg); 16396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_filesysteminparens_neg); 16406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_nocontext_neg); 16416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_emptyconparens_neg); 16426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_extra_neg); 16436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_dbnull_neg); 16446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_currnull_neg); 16456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_fsuse_astnull_neg); 16466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_fsuse); 16476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_fsuse_neg); 16486cd6a6acSopenharmony_ci 16496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_noparams); 16506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_type); 16516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_role); 16526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_user); 16536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_sensitivity); 16546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_category); 16556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_catset); 16566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_level); 16576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_class); 16586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_classmap); 16596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_permset); 16606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_duplicate); 16616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_duplicate_neg); 16626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_unknown_neg); 16636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_dbnull_neg); 16646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_currnull_neg); 16656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_astnull_neg); 16666cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_unnamed_neg); 16676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_noparam_neg); 16686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_nosecondparam_neg); 16696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_noparam_name_neg); 16706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_emptyparam_neg); 16716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_macro_paramcontainsperiod_neg); 16726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_macro); 16736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_macro_neg); 16746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_macro_nested_macro_neg); 16756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_macro_nested_tunif_neg); 16766cd6a6acSopenharmony_ci 16776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call); 16786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_noargs); 16796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_anon); 16806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_empty_call_neg); 16816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_dbnull_neg); 16826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_currnull_neg); 16836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_astnull_neg); 16846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_name_inparens_neg); 16856cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_call_noname_neg); 16866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_call); 16876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_call_neg); 16886cd6a6acSopenharmony_ci 16896cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional); 16906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_emptyoptional); 16916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_dbnull_neg); 16926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_currnull_neg); 16936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_astnull_neg); 16946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_unnamed_neg); 16956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_extra_neg); 16966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_nameinparens_neg); 16976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_optional_norule_neg); 16986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_optional); 16996cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_optional_neg); 17006cd6a6acSopenharmony_ci 17016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap); 17026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap_noname_neg); 17036cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap_nameinparens_neg); 17046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap_extra_neg); 17056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap_dbnull_neg); 17066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap_currnull_neg); 17076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_policycap_astnull_neg); 17086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_policycap); 17096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_policycap_neg); 17106cd6a6acSopenharmony_ci 17116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_ipv4); 17126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_ipv4_neg); 17136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_ipv6); 17146cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_ipv6_neg); 17156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_noname_neg); 17166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_nameinparens_neg); 17176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_noip_neg); 17186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_ipinparens_neg); 17196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_extra_neg); 17206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_dbnull_neg); 17216cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_currnull_neg); 17226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_gen_ipaddr_astnull_neg); 17236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_ipaddr); 17246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_gen_ipaddr_neg); 17256cd6a6acSopenharmony_ci 17266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_node_helper_extraargsnull_neg); 17276cd6a6acSopenharmony_ci 17286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_last_child_helper); 17296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_build_ast_last_child_helper_extraargsnull_neg); 17306cd6a6acSopenharmony_ci 17316cd6a6acSopenharmony_ci return suite; 17326cd6a6acSopenharmony_ci} 17336cd6a6acSopenharmony_ci 17346cd6a6acSopenharmony_ciCuSuite* CilTreeGetSuite(void) { 17356cd6a6acSopenharmony_ci CuSuite* suite = CuSuiteNew(); 17366cd6a6acSopenharmony_ci 17376cd6a6acSopenharmony_ci /* CilTest.c */ 17386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_symtab_init); 17396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_symtab_init_no_table_neg); 17406cd6a6acSopenharmony_ci 17416cd6a6acSopenharmony_ci 17426cd6a6acSopenharmony_ci /* test_cil.c */ 17436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_symtab_array_init); 17446cd6a6acSopenharmony_ci 17456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_db_init); 17466cd6a6acSopenharmony_ci 17476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_block); 17486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_class); 17496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_root); 17506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_flavor_neg); 17516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_null_neg); 17526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_node_null_neg); 17536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_get_symtab_parent_null_neg); 17546cd6a6acSopenharmony_ci 17556cd6a6acSopenharmony_ci 17566cd6a6acSopenharmony_ci /* test_cil_list.c */ 17576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_append_item); 17586cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_append_item_append); 17596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_append_item_append_extra); 17606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_append_item_listnull_neg); 17616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_append_item_itemnull_neg); 17626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_prepend_item_prepend); 17636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_prepend_item_prepend_neg); 17646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_prepend_item_listnull_neg); 17656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_list_prepend_item_itemnull_neg); 17666cd6a6acSopenharmony_ci 17676cd6a6acSopenharmony_ci 17686cd6a6acSopenharmony_ci /* test_cil_symtab.c */ 17696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_symtab_insert); 17706cd6a6acSopenharmony_ci 17716cd6a6acSopenharmony_ci 17726cd6a6acSopenharmony_ci /* test_cil_tree.c */ 17736cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_tree_init); 17746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_tree_node_init); 17756cd6a6acSopenharmony_ci 17766cd6a6acSopenharmony_ci 17776cd6a6acSopenharmony_ci /* test_cil_lexer.c */ 17786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_lexer_setup); 17796cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_lexer_next); 17806cd6a6acSopenharmony_ci 17816cd6a6acSopenharmony_ci 17826cd6a6acSopenharmony_ci /* test_cil_parser.c */ 17836cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_parser); 17846cd6a6acSopenharmony_ci 17856cd6a6acSopenharmony_ci 17866cd6a6acSopenharmony_ci /* test_cil_fqn.c */ 17876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_qualify_name); 17886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_qualify_name_cil_flavor); 17896cd6a6acSopenharmony_ci 17906cd6a6acSopenharmony_ci /* test cil_copy_ast.c */ 17916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_list); 17926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_list_sublist); 17936cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_list_sublist_extra); 17946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_list_orignull_neg); 17956cd6a6acSopenharmony_ci 17966cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_block); 17976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_block); 17986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_block_merge); 17996cd6a6acSopenharmony_ci 18006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_perm); 18016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_perm); 18026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_perm_neg); 18036cd6a6acSopenharmony_ci 18046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_class); 18056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_class); 18066cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_class_dup_neg); 18076cd6a6acSopenharmony_ci 18086cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_common); 18096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_common); 18106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_common_dup_neg); 18116cd6a6acSopenharmony_ci 18126cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_classcommon); 18136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_classcommon); 18146cd6a6acSopenharmony_ci 18156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_sid); 18166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sid); 18176cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sid_merge); 18186cd6a6acSopenharmony_ci 18196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_sidcontext); 18206cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sidcontext); 18216cd6a6acSopenharmony_ci 18226cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_user); 18236cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_user); 18246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_user_merge); 18256cd6a6acSopenharmony_ci 18266cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_role); 18276cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_role); 18286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_role_merge); 18296cd6a6acSopenharmony_ci 18306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_userrole); 18316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_userrole); 18326cd6a6acSopenharmony_ci 18336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_type); 18346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_type); 18356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_type_merge); 18366cd6a6acSopenharmony_ci 18376cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_typeattribute); 18386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_typeattribute); 18396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_typeattribute_merge); 18406cd6a6acSopenharmony_ci 18416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_typealias); 18426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_typealias); 18436cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_typealias_dup_neg); 18446cd6a6acSopenharmony_ci 18456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_bool); 18466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_bool); 18476cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_bool_dup_neg); 18486cd6a6acSopenharmony_ci 18496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_avrule); 18506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_avrule); 18516cd6a6acSopenharmony_ci 18526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_type_rule); 18536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_type_rule); 18546cd6a6acSopenharmony_ci 18556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_sens); 18566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sens); 18576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sens_merge); 18586cd6a6acSopenharmony_ci 18596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_sensalias); 18606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sensalias); 18616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_sensalias_dup_neg); 18626cd6a6acSopenharmony_ci 18636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_cat); 18646cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_cat); 18656cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_cat_merge); 18666cd6a6acSopenharmony_ci 18676cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_catalias); 18686cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_catalias); 18696cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_catalias_dup_neg); 18706cd6a6acSopenharmony_ci 18716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_senscat); 18726cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_senscat); 18736cd6a6acSopenharmony_ci 18746cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_catorder); 18756cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_catorder); 18766cd6a6acSopenharmony_ci 18776cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_dominance); 18786cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_dominance); 18796cd6a6acSopenharmony_ci 18806cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_level); 18816cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_level); 18826cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_level_dup_neg); 18836cd6a6acSopenharmony_ci 18846cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_fill_level); 18856cd6a6acSopenharmony_ci 18866cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_context); 18876cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_context); 18886cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_context_dup_neg); 18896cd6a6acSopenharmony_ci 18906cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_netifcon); 18916cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_netifcon_nested); 18926cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_netifcon); 18936cd6a6acSopenharmony_ci 18946cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_fill_context); 18956cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_fill_context_anonrange); 18966cd6a6acSopenharmony_ci 18976cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_call); 18986cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_call); 18996cd6a6acSopenharmony_ci 19006cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_optional); 19016cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_optional); 19026cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_optional_merge); 19036cd6a6acSopenharmony_ci 19046cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_nodecon); 19056cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_nodecon_anon); 19066cd6a6acSopenharmony_ci 19076cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_fill_ipaddr); 19086cd6a6acSopenharmony_ci 19096cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_ipaddr); 19106cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_ipaddr); 19116cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_ipaddr_dup_neg); 19126cd6a6acSopenharmony_ci 19136cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_conditional); 19146cd6a6acSopenharmony_ci 19156cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_boolif); 19166cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_boolif); 19176cd6a6acSopenharmony_ci 19186cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_constrain); 19196cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_mlsconstrain); 19206cd6a6acSopenharmony_ci 19216cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_copy_ast); 19226cd6a6acSopenharmony_ci //SUITE_ADD_TEST(suite, test_cil_copy_ast_neg); 19236cd6a6acSopenharmony_ci 19246cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_orignull_neg); 19256cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_copy_node_helper_extraargsnull_neg); 19266cd6a6acSopenharmony_ci 19276cd6a6acSopenharmony_ci /* test_post.c */ 19286cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_meta_a_not_b); 19296cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_meta_b_not_a); 19306cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b); 19316cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_meta_a_and_b_strlen_b_greater_a); 19326cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_type_atype_greater_btype); 19336cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_type_btype_greater_atype); 19346cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_stemlen_a_greater_b); 19356cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_stemlen_b_greater_a); 19366cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_filecon_compare_equal); 19376cd6a6acSopenharmony_ci 19386cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_genfscon_compare_atypestr_greater_btypestr); 19396cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_genfscon_compare_btypestr_greater_atypestr); 19406cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_genfscon_compare_apathstr_greater_bpathstr); 19416cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_genfscon_compare_bpathstr_greater_apathstr); 19426cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_genfscon_compare_equal); 19436cd6a6acSopenharmony_ci 19446cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_netifcon_compare_a_greater_b); 19456cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_netifcon_compare_b_greater_a); 19466cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_netifcon_compare_equal); 19476cd6a6acSopenharmony_ci 19486cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_aipv4_bipv6); 19496cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_aipv6_bipv4); 19506cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_aipv4_greaterthan_bipv4); 19516cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_aipv4_lessthan_bipv4); 19526cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_amaskipv4_greaterthan_bmaskipv4); 19536cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_amaskipv4_lessthan_bmaskipv4); 19546cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6); 19556cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_aipv6_lessthan_bipv6); 19566cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6); 19576cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_nodecon_compare_amaskipv6_lessthan_bmaskipv6); 19586cd6a6acSopenharmony_ci 19596cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_fsuse_compare_type_a_greater_b); 19606cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_fsuse_compare_type_b_greater_a); 19616cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_fsuse_compare_fsstr_a_greater_b); 19626cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_fsuse_compare_fsstr_b_greater_a); 19636cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_cil_post_fsuse_compare_equal); 19646cd6a6acSopenharmony_ci 19656cd6a6acSopenharmony_ci return suite; 19666cd6a6acSopenharmony_ci} 19676cd6a6acSopenharmony_ci 19686cd6a6acSopenharmony_ciCuSuite* CilTestFullCil(void) { 19696cd6a6acSopenharmony_ci CuSuite* suite = CuSuiteNew(); 19706cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_min_policy); 19716cd6a6acSopenharmony_ci SUITE_ADD_TEST(suite, test_integration); 19726cd6a6acSopenharmony_ci 19736cd6a6acSopenharmony_ci return suite; 19746cd6a6acSopenharmony_ci} 1975