|
|
|
Lines 802-809
class B2GCommands(MachCommandBase):
|
Link Here
|
|---|
|
| 802 |
|
802 |
|
| 803 |
self._ensure_state_subdir_exists('.') |
803 |
self._ensure_state_subdir_exists('.') |
| 804 |
|
804 |
|
| 805 |
driver = self._spawn(BuildDriver) |
805 |
driver = self._spawn(BuildDriver) |
| 806 |
driver.install_tests(remove=False) |
806 |
driver.install_tests(remove=False) |
| 807 |
|
807 |
|
| 808 |
mochitest = self._spawn(MochitestRunner) |
808 |
mochitest = self._spawn(MochitestRunner) |
| 809 |
return mochitest.run_b2g_test(test_paths=test_paths, **kwargs) |
809 |
return mochitest.run_b2g_test(test_paths=test_paths, **kwargs) |
|
|
810 |
@Command('build-gtest', category='testing', |
| 811 |
description='Run a remote gtest.', |
| 812 |
conditions=[conditions.is_b2g, is_emulator]) |
| 813 |
@B2GCommand |
| 814 |
def build_gtest(self, **kwargs): |
| 815 |
gecko_obj_folder = os.path.join(self.get_build_var('GECKO_OBJDIR')) |
| 816 |
self._run_make(directory=gecko_obj_folder + "/toolkit/library", target='gtestxul', ensure_exit_code=True) |
| 817 |
self._run_make(directory=os.path.join(gecko_obj_folder), target='package', ensure_exit_code=True) |
| 818 |
os.system(self.b2g_home + '/build.sh systemtarball') |