Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Run ghc's test can't work #494

Closed
sighingnow opened this issue Jan 15, 2018 · 6 comments
Closed

Run ghc's test can't work #494

sighingnow opened this issue Jan 15, 2018 · 6 comments
Labels

Comments

@sighingnow
Copy link
Contributor

When I run build.stack.sh test, I get the following error:

runtests.py: error: unrecognized arguments: --configfile=testsuite/config/ghc

The ghc's --configfile flag has already been renamed to --config-file six months ago.

@sighingnow
Copy link
Contributor Author

I would like to push a patch to improve the test support of hadrian. Should I submit the patch to GHC phabricator or open a pull request here ?

@snowleopard
Copy link
Owner

snowleopard commented Jan 15, 2018

@sighingnow Many thanks for the report and for offering your help! Please open a PR here.

Note that there is also the validate build rule, which runs GHC's validation script, which you might want to try as well. However, in any case we should try to fix the test rule.

@bgamari
Copy link
Collaborator

bgamari commented Feb 19, 2018

@angerman, @alpmestan, I believe this is relevant to your work.

@alpmestan
Copy link
Collaborator

alpmestan commented Feb 19, 2018

@bgamari It is, but as you can see in #495, @sighingnow and I discussed all the problems that we respectively had identified, both there and by email a little bit. @sighingnow seemed well on the way to getting a good chunk of the tests working. We'll be able to reuse that work directly (even though it might require a tweak or two) with the relocatable approach, nothing scary really. :)

@izgzhen
Copy link
Collaborator

izgzhen commented May 5, 2018

Running ./build.sh test now led to an error:

/home/zhen/repos/ghc/_build/stage1/rts/build/libCffi_p.a: copyFile: does not exist (No such file or directory)
shakeArgsWith    0.000s    0%                           
Function shake   0.219s    0%                           
Database read    0.232s    0%                           
With database    0.098s    0%                           
Running rules  604.736s   99%  =========================
Total          605.286s  100%                           
Error when running Shake build system:
* test
* _build/stage1/bin/ghc
* OracleQ (PackageDataFile (Context {stage = Stage1, package = Package {pkgLanguage = Haskell, pkgType = Program, pkgName = "ghc-bin", pkgPath = "ghc"}, way = v}))
* _build/stage1/ghc/setup-config
* _build/stage1/lib/package.conf.d/containers-0.5.11.0.conf
* OracleQ (PackageDataFile (Context {stage = Stage1, package = Package {pkgLanguage = Haskell, pkgType = Library, pkgName = "containers", pkgPath = "libraries/containers"}, way = v}))
* _build/stage1/libraries/containers/setup-config
* _build/stage1/lib/package.conf.d/ghc-prim-0.5.2.0.conf
* OracleQ (PackageDataFile (Context {stage = Stage1, package = Package {pkgLanguage = Haskell, pkgType = Library, pkgName = "ghc-prim", pkgPath = "libraries/ghc-prim"}, way = v}))
* _build/stage1/libraries/ghc-prim/setup-config
* _build/stage1/lib/package.conf.d/rts-1.0.conf
ExitFailure 1

@snowleopard
Copy link
Owner

This seems to be superseded by #669.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants