[commit: packages/directory] master: Allow test parameters to be overridden via command-line arguments (4bcda8c)

git at git.haskell.org git at git.haskell.org
Fri Dec 18 09:52:36 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4bcda8ceb2d5773d6294cdd7271fa5271ea4b128/directory

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

commit 4bcda8ceb2d5773d6294cdd7271fa5271ea4b128
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Tue Sep 1 22:55:54 2015 -0400

    Allow test parameters to be overridden via command-line arguments
    
    Arguments of the form 'key=value' are accepted by test program.
    Currently, the following arguments are accepted:
    
      - silent=yes|no* (corresponds to testSilent in TestEnv)
      - keep-dirs=yes|no* (corresponds to testKeepDirs in TestEnv)
      - CreateDirectoryIfMissing001.num-repeats=<int> (10000*)
      - CreateDirectoryIfMissing001.num-threads=<int> (4*)
    
    * Default value.
    
    To keep the implementation simple, superfluous arguments or invalid
    arguments are silently ignored.


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

4bcda8ceb2d5773d6294cdd7271fa5271ea4b128
 tests/CreateDirectoryIfMissing001.hs | 26 ++++++----
 tests/Util.hs                        | 99 +++++++++++++++++++++++++-----------
 tests/util.inl                       |  2 +-
 3 files changed, 86 insertions(+), 41 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 4bcda8ceb2d5773d6294cdd7271fa5271ea4b128


More information about the ghc-commits mailing list