HTF icon indicating copy to clipboard operation
HTF copied to clipboard

`cabal test` does not work, even after `cabal install`

Open andreasabel opened this issue 1 year ago • 0 comments

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.

andreasabel avatar Sep 22 '24 19:09 andreasabel