mirror of
https://github.com/servo/servo.git
synced 2025-06-09 00:53:26 +00:00
Run bindings tests with whole crate
This commit is contained in:
parent
cad5a4e326
commit
3d7c997a4f
3 changed files with 12 additions and 43 deletions
|
@ -260,7 +260,9 @@ class MachCommands(CommandBase):
|
|||
@Command('test-stylo',
|
||||
description='Run stylo unit tests',
|
||||
category='testing')
|
||||
def test_stylo(self):
|
||||
@CommandArgument('--release', default=False, action="store_true",
|
||||
help="Run with a release build of servo")
|
||||
def test_stylo(self, release=False):
|
||||
self.set_use_stable_rust()
|
||||
self.ensure_bootstrapped()
|
||||
|
||||
|
@ -268,8 +270,14 @@ class MachCommands(CommandBase):
|
|||
env["RUST_BACKTRACE"] = "1"
|
||||
env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "target", "geckolib").encode("UTF-8")
|
||||
|
||||
release = ["--release"] if release else []
|
||||
ret = 0
|
||||
with cd(path.join("ports", "geckolib")):
|
||||
return call(["cargo", "test", "-p", "stylo_tests"], env=env)
|
||||
ret = call(["cargo", "test", "-p", "stylo_tests"] + release, env=env)
|
||||
if ret != 0:
|
||||
return ret
|
||||
with cd(path.join("ports", "geckolib")):
|
||||
return call(["cargo", "test", "-p", "style"] + release, env=env)
|
||||
|
||||
@Command('test-compiletest',
|
||||
description='Run compiletests',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue