Create ./mach test-perf command

in testing_commands.py, I linked the new command to test_perf.sh
in test_perf.sh, it would prepare tp5n.zip and virtual environment
then run test_all.sh
This commit is contained in:
CHANG FU CHIAO 2016-08-28 16:16:34 +08:00
parent 0dd005eacc
commit fd204e0365
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')