Repository navigation
Run bindings tests with whole crate - #13700
Conversation
|
Heads up! This PR modifies the following files:
|
| return 1 | ||
|
|
||
| print("OK") | ||
| print("(please test with ./mach test-stylo)") |
There was a problem hiding this comment.
Can we run this inline? It seems to me it's pretty convenient to have the results of struct layout tests right after generating the bindings.
There was a problem hiding this comment.
If you're running it inline you need the rest of style to compile, which might not be the case in the middle of development.
We could put these tests at the end of everything I guess (so that if it fails it doesn't cancel the next regen).
|
Do we run both debug and release layout tests on CI? On Tue, Oct 11, 2016 at 09:36:01AM -0700, Manish Goregaokar wrote:
|
|
No, but I can make that happen for test-stylo. |
|
blocks #13701 |
|
Please do test un both variants. r=me with that |
8afd8a6 to
d7f819b
Compare
|
@bors-servo r=emilio That can't be done here, it needs to be done on the saltfs side. But added a |
|
📌 Commit d7f819b has been approved by |
|
@bors-servo p=1 blocks other pr |
|
⌛ Testing commit d7f819b with merge fb89d12... |
Run bindings tests with whole crate We currently run bindgen's autogenerated `#[test]` blocks directly on the structs files. That is, after generating them, we run `rustc --test` on them. This works fine for now, but if you want to refer to types defined outside of these files (e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1309165), the tests are broken. This puts a `cargo test -p style` in `./mach test-stylo`. I disabled doctests because they were failing (unable to find the `ns!()` and `atom!()` macros), and I couldn't figure out why -- will investigate in a later bug. r? @emilio <!-- 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/13700) <!-- Reviewable:end -->
|
💔 Test failed - linux-dev |
d7f819b to
3d7c997
Compare
|
@bors-servo r=emilio |
|
📌 Commit 3d7c997 has been approved by |
Run bindings tests with whole crate We currently run bindgen's autogenerated `#[test]` blocks directly on the structs files. That is, after generating them, we run `rustc --test` on them. This works fine for now, but if you want to refer to types defined outside of these files (e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1309165), the tests are broken. This puts a `cargo test -p style` in `./mach test-stylo`. I disabled doctests because they were failing (unable to find the `ns!()` and `atom!()` macros), and I couldn't figure out why -- will investigate in a later bug. r? @emilio <!-- 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/13700) <!-- Reviewable:end -->
|
☀️ Test successful - arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-dev |
Add release stylo unit tests servo/servo#13700 moved some important binding layout tests to test-stylo (they used to be run by the regen script). Currently test-stylo is only run in debug mode. This runs it in release mode as well. Since linux-rel-css already contains a `./mach build-geckolib --release`, and `test-stylo` just needs a rebuild of style and geckolib (which takes half a minute), this shouldn't cause much of an issue. However, linux-rel-css is one of our slowest builders. Perhaps both `build-geckolib --release` and `test-stylo --release` should be put in linux-dev instead? r? @larsbergstrom <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/508) <!-- Reviewable:end -->
We currently run bindgen's autogenerated
#[test]blocks directly on the structs files.That is, after generating them, we run
rustc --teston them. This works fine for now, butif you want to refer to types defined outside of these files (e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1309165),
the tests are broken.
This puts a
cargo test -p stylein./mach test-stylo. I disabled doctests because they were failing (unable to find thens!()andatom!()macros), and I couldn't figure out why -- will investigate in a later bug.r? @emilio
This change is