all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul van der Walt <paul@denknerd.org>
To: ericbavier@openmailbox.org
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add ghc-doctest.
Date: Thu, 22 Oct 2015 14:58:50 +0200	[thread overview]
Message-ID: <87twpjqctx.fsf@denknerd.org> (raw)
In-Reply-To: <1445484780-25990-1-git-send-email-ericbavier@openmailbox.org>


On 2015-10-22 at 05:32, quoth ericbavier@openmailbox.org:
> Testing for and with doctest is tricky.  I'm not sure your comment about
> missing test frameworks is accurate; it looks, from what I can tell, like all
> the necessary inputs are present.
>
> I believe the issue is that tests that call the 'doctest' function may not
> (probably do not) include the "-package-db" argument in the parameter list
> given, but since haskell-build-system relies on the fact that cabal passes
> that argument to GHC, it is essential that that information get there somehow.
> I would say it's a deficiency of most package's build systems that they do not
> take this situation into account.

I see, i finally understand the issue.  That sounds exactly right,
indeed.

> So, either the tests files can be patched to include "-package-db" in the GHC
> arguments given to the 'doctest' function, or GHC_PACKAGE_PATH can be defined
> appropriately before the 'check' phase (at that point in the build cabal will
> not complain, as it would if GHC_PACKAGE_PATH were defined during the
> 'configure' phase).

I think this is unnecessarily complex, especially given the upcoming
native-search-path patch.

> It looks to me like tests are disabled for all packages that use doctest in
> this patch series:
>
> ghc-trifecta
> ghc-lens
> ghc-wai-logger
> ghc-parsers
> ghc-semigroupoids
> ghc-comonad
> ghc-distributive
> ghc-http-types
> ghc-unix-time
> ghc-iproute
>
> I would suggest that tests for these packages simply be disabled (and the
> corresponding test-only inputs be removed) for the time being.  The pending
> GHC native-search-path patches should trivially resolve this issue, at which
> time tests for these packages can be revisited.

I have indeed simply removed the test-only inputs on these packages, and
fixed the comments to correspond to the real problem.

Thanks,
p.

  parent reply	other threads:[~2015-10-22 12:58 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22  3:10 Reviews for wip-haskell-platform-7.10.2-a ericbavier
2015-10-22  3:10 ` [PATCH] gnu: Add ghc-attoparsec ericbavier
2015-10-22 10:40   ` Paul van der Walt
2015-10-22  3:10 ` [PATCH] gnu: Add ghc-base64-bytestring ericbavier
2015-10-22 10:44   ` Paul van der Walt
2015-10-22  3:18 ` [PATCH] gnu: Add ghc-blaze-builder ericbavier
2015-10-22  3:18   ` [PATCH] gnu: Add ghc-blaze-markup ericbavier
2015-10-22 10:54     ` Paul van der Walt
2015-10-22  3:18   ` [PATCH] gnu: Add ghc-bytestring-builder ericbavier
2015-10-22 11:01     ` Paul van der Walt
2015-10-22 11:02   ` [PATCH] gnu: Add ghc-blaze-builder Paul van der Walt
2015-10-22  3:25 ` [PATCH] gnu: Add ghc-cereal ericbavier
2015-10-22  3:25   ` [PATCH] gnu: Add ghc-clock ericbavier
2015-10-22 13:57     ` Paul van der Walt
2015-10-22  3:25   ` [PATCH] gnu: Add ghc-cpphs ericbavier
2015-10-22 11:20     ` Paul van der Walt
2015-10-22 11:25   ` [PATCH] gnu: Add ghc-cereal Paul van der Walt
2015-10-22  3:32 ` [PATCH] gnu: Add ghc-doctest ericbavier
2015-10-22  3:32   ` [PATCH] gnu: Add ghc-fingertree ericbavier
2015-10-22 11:27     ` Paul van der Walt
2015-10-22  3:32   ` [PATCH] gnu: Add ghc-free ericbavier
2015-10-22 11:28     ` Paul van der Walt
2015-10-22 12:58   ` Paul van der Walt [this message]
2015-10-22  8:47 ` [PATCH] gnu: Add ghc-gluraw ericbavier
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-haddock-api ericbavier
2015-10-22 15:20     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-haskell-src-exts ericbavier
2015-10-22 14:07     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-hlint ericbavier
2015-10-22 15:15     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-hscolour ericbavier
2015-10-22 15:17     ` Paul van der Walt
2015-10-22 16:48       ` Eric Bavier
2015-10-22 16:53         ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-opengl ericbavier
2015-10-22 15:10     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-openglraw ericbavier
2015-10-22 15:07     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-pcre-light ericbavier
2015-10-22 15:06     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-reflection ericbavier
2015-10-22 15:04     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-regex-base ericbavier
2015-10-22 15:03     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-regex-posix ericbavier
2015-10-22 15:01     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-regex-tdfa-rc ericbavier
2015-10-22 15:00     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-sdl-mixer ericbavier
2015-10-22 16:04     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-semigroupoids ericbavier
2015-10-22 14:57     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-semigroups ericbavier
2015-10-22 14:15     ` Paul van der Walt
2015-10-22 16:54       ` Eric Bavier
2015-10-22 14:56     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-tasty-golden ericbavier
2015-10-22 14:54     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-uniplate ericbavier
2015-10-22 14:52     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-unix-time ericbavier
2015-10-22 15:43     ` Paul van der Walt
2015-10-22 16:22       ` Andreas Enge
2015-10-22 16:50         ` Paul van der Walt
2015-10-22 16:57       ` Eric Bavier
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-wai ericbavier
2015-10-22 14:50     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-xml ericbavier
2015-10-22 14:48     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add ghc-zip-archive ericbavier
2015-10-22 14:47     ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: Add Idris, the dependently-typed language ericbavier
2015-10-22 14:45     ` Paul van der Walt
2015-10-22 17:02       ` Eric Bavier
2015-10-22 17:20         ` Paul van der Walt
2015-10-22  8:47   ` [PATCH] gnu: ghc-split: Update dependencies ericbavier
2015-10-22 16:16     ` Paul van der Walt
2015-10-22 17:06       ` Eric Bavier
2015-10-22 17:26         ` Paul van der Walt
2015-10-22 14:21   ` [PATCH] gnu: Add ghc-gluraw Paul van der Walt
2015-10-22 10:27 ` Reviews for wip-haskell-platform-7.10.2-a Paul van der Walt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twpjqctx.fsf@denknerd.org \
    --to=paul@denknerd.org \
    --cc=ericbavier@openmailbox.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.