[WIP] Support run GHC's test from hadrian. (#495)
authorHE, Tao <sighingnow@gmail.com>
Fri, 26 Jan 2018 13:10:48 +0000 (07:10 -0600)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Fri, 26 Jan 2018 13:10:48 +0000 (13:10 +0000)
commit63a556382f4b3154ed2ce3a6c8a36f79d9b8e3b1
treec6d4d3cff44649fa4bc55390cb1486b79a0ead51
parentfdc35b1859c5b0781f26bb8b1754f4087f2afdbd
[WIP] Support run GHC's test from hadrian. (#495)

* Support run GHC's test from hadrian.

1. Necessary command line arguments to run test driver.
   + `--test-only=<TEST_CASE>`
   + `--test-skip-perf`
   + `--test-summary=<SUMMARY_FILE>`
   + `--test-junit=<SUMMARY_FILE>`
   + `--test-config=<EXTRA_TEST_CONFIG>`
2. Synchronize configurations from test.mk.
3. Synchronize GHC's compilation flags from test.mk (that's very important).

* The `RunTest` builder and `test` rule to run GHC's test.
* Timeout rules.
* Reduce boilerplate.
* Fix warning.
* Move getTestArgs into Settings.Builders.RunTest.
* Drop `validate` related code to avoid confusion.
* Replace explicit `chmod +x` with `makeExecutable`.
* Fix executable's extension.
cfg/system.config.in
hadrian.cabal
src/Builder.hs
src/CommandLine.hs
src/Hadrian/Utilities.hs
src/Rules/Test.hs
src/Settings/Builders/RunTest.hs [new file with mode: 0644]
src/Settings/Default.hs