• Home
  • Raw
  • Download

Lines Matching refs:mbw

160     mbw = FakeMBW(win32=win32)
161 mbw.files.setdefault(mbw.default_config, TEST_CONFIG)
162 mbw.files.setdefault(
163 mbw.ToAbsPath('//testing/buildbot/gn_isolate_map.pyl'),
171 mbw.files.setdefault(
172 mbw.ToAbsPath('//build/args/bots/fake_master/fake_args_bot.gn'),
176 mbw.files[path] = contents
177 return mbw
179 def check(self, args, mbw=None, files=None, out=None, err=None, ret=None): argument
180 if not mbw:
181 mbw = self.fake_mbw(files)
183 actual_ret = mbw.Main(args)
187 self.assertEqual(mbw.out, out)
189 self.assertEqual(mbw.err, err)
190 return mbw
204 mbw = self.fake_mbw(files)
205 mbw.Call = lambda cmd, env=None, buffer_output=True: (0, '', '')
208 '/tmp/in.json', '/tmp/out.json'], mbw=mbw, ret=0)
209 out = json.loads(mbw.files['/tmp/out.json'])
217 mbw = self.fake_mbw()
219 mbw=mbw, ret=0)
220 self.assertMultiLineEqual(mbw.files['/fake_src/out/Default/args.gn'],
226 self.assertIn('Writing """', mbw.out)
228 mbw.out)
230 mbw = self.fake_mbw(win32=True)
232 mbw=mbw, ret=0)
233 self.assertMultiLineEqual(mbw.files['c:\\fake_src\\out\\Debug\\args.gn'],
238 '--check\n', mbw.out)
240 mbw = self.fake_mbw()
243 mbw=mbw, ret=0)
245 mbw.files['/fake_src/out/Debug/args.gn'],
250 mbw = self.fake_mbw()
251 mbw.Call = lambda cmd, env=None, buffer_output=True: (1, '', '')
252 self.check(['gen', '-c', 'debug_goma', '//out/Default'], mbw=mbw, ret=1)
268 mbw = self.fake_mbw(files)
272 '//out/Default'], mbw=mbw, ret=0)
274 mbw.files)
276 mbw.files)
291 mbw = self.check(['gen', '-c', 'android_bot', '//out/Default',
297 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
325 mbw = self.check(['gen', '-c', 'android_bot', '//out/Default',
331 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
360 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
366 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
409 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
416 mbw.files['/fake_src/out/Default/base_unittests_script.isolate'])
442 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
448 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
482 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
488 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
530 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
536 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
579 mbw = self.fake_mbw(files=files, win32=True)
585 '//out/Default'], mbw=mbw, ret=0)
587 isolate_file = mbw.files['c:\\fake_src\\out\\Default\\unittests.isolate']
628 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
634 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
676 mbw = self.check(['gen', '-c', 'debug_goma', '//out/Default',
682 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
767 mbw = self.fake_mbw(files=files)
769 'base_unittests'], mbw=mbw, ret=0)
771 '//out/Default', 'base_unittests'], mbw=mbw, ret=0)
804 mbw = self.check(['lookup', '-m', 'fake_master', '-b', 'fake_multi_phase'],
806 self.assertIn('Must specify a build --phase', mbw.out)
809 mbw = self.check(['lookup', '-m', 'fake_master', '-b', 'fake_builder',
811 self.assertIn('Must not specify a build --phase', mbw.out)
814 mbw = self.check(['lookup', '-m', 'fake_master', '-b', 'fake_multi_phase',
816 self.assertIn('Phase wrong_phase doesn\'t exist', mbw.out)
819 mbw = self.check(['lookup', '-m', 'fake_master', '-b', 'fake_multi_phase',
821 self.assertIn('phase = 1', mbw.out)
823 mbw = self.check(['lookup', '-m', 'fake_master', '-b', 'fake_multi_phase',
825 self.assertIn('phase = 2', mbw.out)
828 mbw = self.fake_mbw()
829 self.check(['validate'], mbw=mbw, ret=0)