Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate compiletest_rs #9469

Merged
merged 1 commit into from Feb 4, 2016
Merged

Integrate compiletest_rs #9469

merged 1 commit into from Feb 4, 2016

Conversation

@fhahn
Copy link
Contributor

fhahn commented Jan 30, 2016

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.

Review on Reviewable

@highfive
Copy link

highfive commented Jan 30, 2016

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @larsbergstrom (or someone else) soon.

@highfive
Copy link

highfive commented Jan 30, 2016

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@jdm
Copy link
Member

jdm commented Jan 31, 2016

Let's add ./mach test-compiletest to .travis.yml as well!

@fhahn
Copy link
Contributor Author

fhahn commented Jan 31, 2016

Done.

@KiChjang
Copy link
Member

KiChjang commented Feb 1, 2016

r? @jdm

]))
assert len(properties) >= 100
assert "margin-top" in properties
assert "margin" in properties

This comment has been minimized.

Copy link
@jdm

jdm Feb 3, 2016

Member

This block isn't relevant to this test harness.


test_patterns = []
for test in test_name:
# add package if 'tests/unit/<package>'

This comment has been minimized.

Copy link
@jdm

jdm Feb 3, 2016

Member

tests/compiletest/

match = re.search("tests/compiletest/(\\w+)/?$", test)
if match:
packages.add(match.group(1))
# add package & test if '<package>/<test>', 'tests/unit/<package>/<test>.rs', or similar

This comment has been minimized.

Copy link
@jdm

jdm Feb 3, 2016

Member

tests/compiletest/

@jdm
Copy link
Member

jdm commented Feb 3, 2016

This is really great work! If you fix the small nits I mentioned, this is ready to merge! Thanks!

@fhahn
Copy link
Contributor Author

fhahn commented Feb 4, 2016

Thanks for the feedback! I've pushed a commit which should address it.

@jdm
Copy link
Member

jdm commented Feb 4, 2016

Looks good! Please squash them and we'll merge your changes.

@jdm jdm added S-needs-squash and removed S-awaiting-review labels Feb 4, 2016
Also adds compilefail tests for some lints, closes #5646.
@KiChjang
Copy link
Member

KiChjang commented Feb 4, 2016

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 4, 2016

📌 Commit dfdbcab has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 4, 2016

Testing commit dfdbcab with merge d574b78...

bors-servo added a commit that referenced this pull request Feb 4, 2016
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 -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 4, 2016

@bors-servo bors-servo merged commit dfdbcab into servo:master Feb 4, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@fhahn fhahn deleted the fhahn:compiletest2 branch Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.