[commit: hadrian] master: [WIP] Support run GHC's test from hadrian. (#495) (63a5563)

git at git.haskell.org git at git.haskell.org
Sat Jan 27 03:21:41 UTC 2018


Repository : ssh://git@git.haskell.org/hadrian

On branch  : master
Link       : http://git.haskell.org/hadrian.git/commitdiff/63a556382f4b3154ed2ce3a6c8a36f79d9b8e3b1

>---------------------------------------------------------------

commit 63a556382f4b3154ed2ce3a6c8a36f79d9b8e3b1
Author: HE, Tao <sighingnow at gmail.com>
Date:   Fri Jan 26 07:10:48 2018 -0600

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


>---------------------------------------------------------------

63a556382f4b3154ed2ce3a6c8a36f79d9b8e3b1
 cfg/system.config.in             |   4 ++
 hadrian.cabal                    |   1 +
 src/Builder.hs                   |   6 ++
 src/CommandLine.hs               |  59 ++++++++++++++++--
 src/Hadrian/Utilities.hs         |  22 ++++++-
 src/Rules/Test.hs                | 131 ++++++++++++++++++++++++---------------
 src/Settings/Builders/RunTest.hs | 107 ++++++++++++++++++++++++++++++++
 src/Settings/Default.hs          |   2 +
 8 files changed, 276 insertions(+), 56 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 63a556382f4b3154ed2ce3a6c8a36f79d9b8e3b1


More information about the ghc-commits mailing list