Auto merge of #13091 - zack1030:issue-12792, r=shinglyu

Create ./mach test-perf command

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [X] These changes fix #12792 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is low-risk

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

in **testing_commands.py**, I linked the new command to **test_perf.sh**
in **test_perf.sh**, it prepares tp5n.zip and virtual environment
then runs **test_all.sh**

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13091)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-09-26 04:36:04 -05:00 committed by GitHub
commit 99435663f8
5 changed files with 43 additions and 5 deletions

View file

@ -169,6 +169,16 @@ class MachCommands(CommandBase):
return call(["cargo", "test"], env=env, cwd=path.join("ports", "geckolib"))
@Command('test-perf',
description='Run the page load performance test',
category='testing')
def test_perf(self):
self.ensure_bootstrapped()
env = self.build_env()
return call(["bash", "test_perf.sh"],
env=env,
cwd=path.join("etc", "ci", "performance"))
@Command('test-unit',
description='Run unit tests',
category='testing')