Home | History | Annotate | Download | only in tests

Lines Matching refs:base

37  * - single boolean in base
39 * - single boolean in base optional
41 * - 2 booleans in base
43 * - 2 booleans in base optional
45 * - 2 booleans, base and module
46 * - 2 booleans, base optional and module
47 * - 2 booleans, base optional and module optional
48 * - 3 booleans, base, base optional, module
49 * - 4 boolean, base, base optional, module, module optional
87 void base_cond_tests(policydb_t * base)
93 /* these tests look at booleans and conditionals in the base only
97 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b");
99 test_sym_presence(base, "g_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
100 test_bool_state(base, "g_b_bool_1", 0);
104 test_cond_expr_mapping(base, d, bools, 1);
107 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b");
109 test_sym_presence(base, "o1_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
110 test_bool_state(base, "o1_b_bool_1", 1);
114 test_cond_expr_mapping(base, d, bools, 1);
118 void module_cond_tests(policydb_t * base)
125 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1");
127 test_sym_presence(base, "g_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
128 test_bool_state(base, "g_m1_bool_1", 1);
132 test_cond_expr_mapping(base, d, bools, 1);
135 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1");
137 test_sym_presence(base, "o1_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
138 test_bool_state(base, "o1_m1_bool_1", 0);
142 test_cond_expr_mapping(base, d, bools, 1);
145 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2");
147 test_sym_presence(base, "g_m2_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
148 test_sym_presence(base, "g_m2_bool_2", SYM_BOOLS, SCOPE_DECL, decls, 1);
149 test_bool_state(base, "g_m2_bool_1", 1);
150 test_bool_state(base, "g_m2_bool_2", 0);
158 test_cond_expr_mapping(base, d, bools, 3);