Lines Matching refs:base
38 * - single boolean in base
40 * - single boolean in base optional
42 * - 2 booleans in base
44 * - 2 booleans in base optional
46 * - 2 booleans, base and module
47 * - 2 booleans, base optional and module
48 * - 2 booleans, base optional and module optional
49 * - 3 booleans, base, base optional, module
50 * - 4 boolean, base, base optional, module, module optional
88 void base_cond_tests(policydb_t * base)
94 /* these tests look at booleans and conditionals in the base only
98 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b");
100 test_sym_presence(base, "g_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
101 test_bool_state(base, "g_b_bool_1", 0);
105 test_cond_expr_mapping(base, d, bools, 1);
108 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b");
110 test_sym_presence(base, "o1_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
111 test_bool_state(base, "o1_b_bool_1", 1);
115 test_cond_expr_mapping(base, d, bools, 1);
119 void module_cond_tests(policydb_t * base)
126 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1");
128 test_sym_presence(base, "g_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
129 test_bool_state(base, "g_m1_bool_1", 1);
133 test_cond_expr_mapping(base, d, bools, 1);
136 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1");
138 test_sym_presence(base, "o1_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
139 test_bool_state(base, "o1_m1_bool_1", 0);
143 test_cond_expr_mapping(base, d, bools, 1);
146 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2");
148 test_sym_presence(base, "g_m2_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1);
149 test_sym_presence(base, "g_m2_bool_2", SYM_BOOLS, SCOPE_DECL, decls, 1);
150 test_bool_state(base, "g_m2_bool_1", 1);
151 test_bool_state(base, "g_m2_bool_2", 0);
159 test_cond_expr_mapping(base, d, bools, 3);