mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #9469 - fhahn:compiletest2, r=jdm
Integrate compiletest_rs This PR integrates `compiletest_rs` as suggested in #5646. I created a new `tests/compiletest` directory which contains separate crates for the tests. Currently this PR includes `compile-fail` tests for some lints (acutally all except inheritance_integrity, beacuse I'm not sure how to include the dom stuff in a way the `#[dom_struct]` works). I gathered that there should be more crates for which compiletests make sense and would appreciate any pointers to relevant crates. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9469) <!-- Reviewable:end -->
This commit is contained in:
commit
d574b78313
13 changed files with 257 additions and 1 deletions
25
components/servo/Cargo.lock
generated
25
components/servo/Cargo.lock
generated
|
@ -6,6 +6,7 @@ dependencies = [
|
|||
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"canvas 0.0.1",
|
||||
"canvas_traits 0.0.1",
|
||||
"compiletest_helper 0.0.1",
|
||||
"compositing 0.0.1",
|
||||
"devtools 0.0.1",
|
||||
"devtools_traits 0.0.1",
|
||||
|
@ -28,6 +29,7 @@ dependencies = [
|
|||
"net_traits 0.0.1",
|
||||
"net_traits_tests 0.0.1",
|
||||
"offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)",
|
||||
"plugin_compiletest 0.0.1",
|
||||
"plugin_tests 0.0.1",
|
||||
"profile 0.0.1",
|
||||
"profile_traits 0.0.1",
|
||||
|
@ -238,6 +240,21 @@ name = "color_quant"
|
|||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "compiletest_helper"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"compiletest_rs 0.0.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "compiletest_rs"
|
||||
version = "0.0.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "compositing"
|
||||
version = "0.0.1"
|
||||
|
@ -1384,6 +1401,14 @@ name = "pkg-config"
|
|||
version = "0.3.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "plugin_compiletest"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"compiletest_helper 0.0.1",
|
||||
"plugins 0.0.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "plugin_tests"
|
||||
version = "0.0.1"
|
||||
|
|
|
@ -41,6 +41,12 @@ path = "../../tests/unit/style"
|
|||
[dev-dependencies.util_tests]
|
||||
path = "../../tests/unit/util"
|
||||
|
||||
[dev-dependencies.compiletest_helper]
|
||||
path = "../../tests/compiletest/helper"
|
||||
|
||||
[dev-dependencies.plugin_compiletest]
|
||||
path = "../../tests/compiletest/plugin"
|
||||
|
||||
[[test]]
|
||||
name = "reftest"
|
||||
path = "../../tests/reftest.rs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue