ghc: fix running of optional testsuite
`brew install ghc --tests` emits a bunch of warnings and subsequently fails because staging the "testsuite" resource makes its files available in a `testsuite` subdirectory—*not* in the current directory, which is where the formula *expects* them to be. Closes Homebrew/homebrew#28330. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
c86d768790
commit
86ecc65926
1 changed files with 7 additions and 5 deletions
|
@ -128,11 +128,13 @@ class Ghc < Formula
|
|||
|
||||
if build.include? "tests"
|
||||
resource("testsuite").stage do
|
||||
(buildpath+"Ghcsource/config").install Dir["config/*"]
|
||||
(buildpath+"Ghcsource/driver").install Dir["driver/*"]
|
||||
(buildpath+"Ghcsource/mk").install Dir["mk/*"]
|
||||
(buildpath+"Ghcsource/tests").install Dir["tests/*"]
|
||||
(buildpath+"Ghcsource/timeout").install Dir["timeout/*"]
|
||||
cd "testsuite" do
|
||||
(buildpath+"Ghcsource/config").install Dir["config/*"]
|
||||
(buildpath+"Ghcsource/driver").install Dir["driver/*"]
|
||||
(buildpath+"Ghcsource/mk").install Dir["mk/*"]
|
||||
(buildpath+"Ghcsource/tests").install Dir["tests/*"]
|
||||
(buildpath+"Ghcsource/timeout").install Dir["timeout/*"]
|
||||
end
|
||||
cd (buildpath+"Ghcsource/tests") do
|
||||
system "make", "CLEANUP=1", "THREADS=#{ENV.make_jobs}", "fast"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue