[commit: ghc] master: Refactor testsuite with normalise_version() (8cbd7f5)
git at git.haskell.org
git at git.haskell.org
Tue Mar 10 22:20:59 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8cbd7f5d97cdc0f4cd6b8baaa999f990533dc801/ghc
>---------------------------------------------------------------
commit 8cbd7f5d97cdc0f4cd6b8baaa999f990533dc801
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date: Tue Mar 10 14:10:26 2015 -0700
Refactor testsuite with normalise_version()
Summary:
This function generalizes the normaliseBytestringPackage and other similar
one-off functions into normalise_version() with takes a package name to
normalize against. This JUST manages package versions; we also could use
a normalize for keys.
In the process, I modified all the normalization functions to be accumulative;
I don't think this makes a difference for current test cases but I think it
makes things nicer.
Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>
Reviewers: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D725
>---------------------------------------------------------------
8cbd7f5d97cdc0f4cd6b8baaa999f990533dc801
testsuite/driver/testlib.py | 20 ++++++++++++++++----
testsuite/tests/package/all.T | 9 +++------
testsuite/tests/safeHaskell/check/all.T | 5 +----
testsuite/tests/safeHaskell/check/pkg01/all.T | 21 +++++----------------
testsuite/tests/safeHaskell/ghci/all.T | 15 ++++-----------
testsuite/tests/th/all.T | 4 +++-
6 files changed, 32 insertions(+), 42 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 8cbd7f5d97cdc0f4cd6b8baaa999f990533dc801
More information about the ghc-commits
mailing list