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

test_integration_cmds: compile in install test. #479

Merged
merged 1 commit into from
Jul 11, 2016
Merged

test_integration_cmds: compile in install test. #479

merged 1 commit into from
Jul 11, 2016

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Jul 9, 2016

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew tests with your changes locally?

Most of our formulae do compilation so let's do it here too.

CC @UniqMartin @eirinikos

@BrewTestBot BrewTestBot added the in progress Maintainers are working on this label Jul 9, 2016
@@ -123,6 +123,10 @@ def setup_test_formula(name, content = nil)
def install
(prefix/"foo"/"test").write("test") if build.with? "foo"
prefix.install Dir["*"]
(buildpath/"test.c").write \
"#include <stdio.h>\\nint main(){printf(\\"test\\");}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was so hoping for the first nested heredoc. 😉

But in all seriousness, you might want to add a return 0; to that main function, as some older versions of Clang tend to produce code that generates a random exit code otherwise. (Which will be annoying if we decide to use this formula/binary to test brew test.)

@UniqMartin
Copy link
Contributor

CC @UniqMartin @eirinikos

Interesting that adding this line afterwards doesn't move the PR into the list of notifications one is participating in (in the GitHub web UI).

Most of our formulae do compilation so let's do it here too.
@MikeMcQuaid MikeMcQuaid merged commit ac229f9 into Homebrew:master Jul 11, 2016
@MikeMcQuaid MikeMcQuaid deleted the test-install-compilation branch July 11, 2016 08:20
@BrewTestBot BrewTestBot removed the in progress Maintainers are working on this label Jul 11, 2016
souvik1997 pushed a commit to souvik1997/brew that referenced this pull request Jul 25, 2016
Most of our formulae do compilation so let's do it here too.
@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants