Lines Matching refs:cfg

87     cfg = config.factory(None)
88 self.assertIsNone(cfg)
94 cfg = config.factory(test_config.name)
96 cfg.get_available_build_targets(),
111 cfg = config.factory(test_config.name)
113 self.assertSetEqual(cfg.get_tags('android_target_1'), set())
115 cfg.get_tags('android_target_2'), set(['cool', 'hot', 'warm']))
117 cfg.get_tags('build_target_2'), set(['cool', 'hot', 'dry']))
118 self.assertSetEqual(cfg.get_tags('android_target_3'), set())
120 self.assertFalse(cfg.has_tag('android_target_1', 'cool'))
121 self.assertFalse(cfg.has_tag('android_target_1', 'hot'))
122 self.assertFalse(cfg.has_tag('android_target_1', 'meh'))
124 self.assertTrue(cfg.has_tag('android_target_2', 'cool'))
125 self.assertTrue(cfg.has_tag('android_target_2', 'hot'))
126 self.assertFalse(cfg.has_tag('android_target_2', 'meh'))
128 self.assertTrue(cfg.has_tag('build_target_2', 'cool'))
129 self.assertTrue(cfg.has_tag('build_target_2', 'hot'))
130 self.assertFalse(cfg.has_tag('build_target_2', 'meh'))
132 self.assertFalse(cfg.has_tag('android_target_3', 'cool'))
133 self.assertFalse(cfg.has_tag('android_target_3', 'hot'))
134 self.assertFalse(cfg.has_tag('android_target_3', 'meh'))
140 cfg = config.factory(test_config.name)
144 cfg.get_build_config_android_target('android_target_1'),
149 cfg.get_build_config_android_target('android_target_2'),
154 cfg.get_build_config_android_target('build_target_2'),
159 cfg.get_build_config_android_target('some_target'),
166 cfg = config.factory(test_config.name)
170 cfg.get_build_goals('android_target_1'),
176 cfg.get_build_goals('android_target_2'),
181 cfg.get_build_goals('build_target_2'),
185 self.assertEqual(cfg.get_build_goals('no_goals_target'),[])
191 cfg = config.factory(test_config.name)
196 build_goals = cfg.get_build_goals('test_target')
202 build_goals = cfg.get_build_goals('test_target', set())
208 build_goals = cfg.get_build_goals('test_target', set('no_matchy'))
214 build_goals = cfg.get_build_goals('test_target', set(['x']))
223 build_goals = cfg.get_build_goals('test_target', set(['ci', 'x']))
251 cfg = config.factory(test_config.name)
253 self.assertTrue(cfg.get_allow_readwrite_all('target_allowed'))
255 self.assertFalse(cfg.get_allow_readwrite_all('target_not_allowed'))
257 self.assertFalse(cfg.get_allow_readwrite_all('target_also_not_allowed'))
277 cfg = config.factory(test_config.name)
280 cfg.get_allowed_projects_file('target_name'),
283 cfg.get_allowed_projects_file('has_allowed_projects_file'),
286 cfg.get_allowed_projects_file('no_allowed_projects_file'))
292 cfg = config.factory(test_config.name)
294 bc_at2 = cfg.get_build_config('android_target_2')
300 bc_bt2 = cfg.get_build_config('build_target_2')