summaryrefslogtreecommitdiff
path: root/hadrian
blob: 63a556382f4b3154ed2ce3a6c8a36f79d9b8e3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
tree c6d4d3cff44649fa4bc55390cb1486b79a0ead51
parent fdc35b1859c5b0781f26bb8b1754f4087f2afdbd
author HE, Tao <sighingnow@gmail.com> 1516972248 -0600
committer Andrey Mokhov <andrey.mokhov@gmail.com> 1516972248 +0000

[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.