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

Add debug info tests #4862

Closed
wants to merge 1 commit into from
Closed

Add debug info tests #4862

wants to merge 1 commit into from

Conversation

bleibig
Copy link
Contributor

@bleibig bleibig commented Feb 9, 2013

Fixes #2195.

The testing procedure mimics the way clang/llvm does their debuginfo tests - it creates a debugging commands script from directives in the header file which gdb runs in batch mode with the executable, and then checks if output is as expected. I have two very simple tests included, and they're both ignored because rust doesn't seem to emit good enough symbols for them to pass (by the way, I'll see if I can help fix that).

Note that once debug info tests are enabled, gdb will become a dependency for 'make check'.

(This replaces a pull request based on an earlier commit.)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@catamorphism
Copy link
Contributor

Are we okay with making gdb a dependency? @pcwalton / @brson / anyone else?

@brson
Copy link
Contributor

brson commented Feb 10, 2013

@catamorphism That's a good point, and no I don't think so. I think turning debug info tests off if configure doesn't find gdb would be appropriate. We could also turn the gdb tests off by default (like the perf tests) and just configure the bots to run them, but i prefer the former. I am going to take a stab at that - I want to try to put a big warning on the test output that some tests weren't run - but I'm going to r+ this anyway to see how the bots feel about gdb.

@brson
Copy link
Contributor

brson commented Feb 10, 2013

Oh, it looks like this doesn't make the debuginfo tests run by default, so I think we're ok as far as the gdb dependency. You would have to type make check-stage1-debuginfo to run these.

@brson brson mentioned this pull request Feb 10, 2013
@brson
Copy link
Contributor

brson commented Feb 10, 2013

I opened #4876 with that typo fix and the change to run the tests conditionally

@brson brson closed this Feb 10, 2013
bors added a commit that referenced this pull request Feb 12, 2013
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.

None yet

3 participants