Skip to content

More testing and test infrastructure stuff #100

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

Merged
merged 3 commits into from
Oct 19, 2016

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Oct 18, 2016

See individual commit messages for details.

Fixes #97

r? @emilio

Changes include:

* Using argparse for argument parsing. This will help when extending the
  script to skip tests that will only pass when --features llvm_stable
  is used to build bindgen.

* Pulling out all the various steps of the script into helper functions
  that are easier to digest at a glance, and have docstrings describing
  their role in the script.

* Printing diffs between expected and actual generated bindings rather
  than the full source text of each.
This adds the ability for tests to supply required features, and if the
bindgen we're testing was not built with those features, then the test
will be skipped. The syntax used to require features is like this:

    // bindgen-features: llvm_stable some_experiment another
@emilio
Copy link
Contributor

emilio commented Oct 19, 2016

LGTM, though I really want to get rid of the llvm_stable flag eventually...

Thanks for doing this :)

@bors-servo: r+

@bors-servo
Copy link

📌 Commit 5ff5d5b has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit 5ff5d5b with merge 58aaf30...

bors-servo pushed a commit that referenced this pull request Oct 19, 2016
More testing and test infrastructure stuff

See individual commit messages for details.

Fixes #97

r? @emilio
@bors-servo
Copy link

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 5ff5d5b into rust-lang:master Oct 19, 2016
@fitzgen
Copy link
Member Author

fitzgen commented Oct 19, 2016

I really want to get rid of the llvm_stable flag eventually...

Yes, that would be very nice.

@fitzgen fitzgen deleted the more-testing-stuff branch October 19, 2016 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants