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

WIP: infrastructure for testing save-analysis #34522

Closed
wants to merge 2 commits into from
Closed

WIP: infrastructure for testing save-analysis #34522

wants to merge 2 commits into from

Conversation

aochagavia
Copy link
Contributor

No description provided.

@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@aochagavia
Copy link
Contributor Author

@alexcrichton Do I need to edit a makefile or something to let the new tests run?

@nrc Do you like the direction of this PR? I included a test example so you can see how it works.

@alexcrichton
Copy link
Member

The easiest thing to do will probably be to modify rustbuild (src/bootstrap/build/{mod.rs,step.rs}) to include this test suite like the other compiletest test suites, but if you want it to run with make check on the makefiles you'll also have to modify mk/tests.mk. We run both suites on the bots so as long as it's run somewhere it's fine. (note that it won't get run currently, though).

I also personally liked the approach in #34481 of using annotations in the source as it seems much easier to write the test, but perhaps json was just easier to implement?

@nrc
Copy link
Member

nrc commented Jun 29, 2016

I do like the general approach. I think the example test should probably be less thorough to ensure that we are being a bit 'fuzzy'. E.g., just test that the function names exist and only test the line numbers, rather than the whole span or something. I would also like to see if we could include the JSON inline as a comment or something in the test file, I guess that could happen later if it is tricky.

@bors
Copy link
Contributor

bors commented Jun 30, 2016

☔ The latest upstream changes (presumably #34552) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to reopen with a rebase!

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.

5 participants