Skip to content

cabal test does not work, even after cabal install  #131

@andreasabel

Description

@andreasabel

It seems that the testsuite is looking for the generated htfpp in very specific locations only.

Building test suite 'TestHTF' for HTF-0.15.0.2...
gfind: ‘/Users/abel/project/open-source/HTF/.stack-work/dist/x86_64-osx’: No such file or directory
TOP=/Users/abel/project/open-source/HTF
dist=.stack-work/dist/x86_64-osx/ghc-8.8.4
bin=
No executable named htfpp found in /Users/abel/project/open-source/HTF/.stack-work/dist/x86_64-osx/ghc-8.8.4. Aborting!
...
tests/Foo/A.hs:1:1: error:
    `local-htfpp' failed in phase `Haskell pre-processor'. (Exit code: 1)
  |
1 | {-# OPTIONS_GHC -F -pgmF ./scripts/local-htfpp #-}
  | ^
...

Cf. cabal list-bin which could reveal the path of the locally built executable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions