Add a doctest-% pattern target#11799
Conversation
25a6c1e to
684b2db
Compare
|
thanks for the split but the PR title is still far from what is actually done because of how much is done. I think adding convenience targets and switching between |
a34b26c to
bad57c6
Compare
bad57c6 to
588b37f
Compare
588b37f to
f665cce
Compare
Is this still the case with If yes, what is the exact error you are encountering? |
I saw a different error with And with |
b78577e to
acd18d1
Compare
|
How am I supposed to build the test suite? $ git rev-parse HEAD
a51c4ee1556d816ad86e90db7e6330dd51b0b6e7
$ cd cabal-testsuite
$ cabal build .
Resolving dependencies...
Error: [Cabal-7107]
Could not resolve dependencies:
[__0] trying: cabal-testsuite-3 (user goal)
[__1] unknown package: Cabal-tests (dependency of cabal-testsuite)
[__1] fail (backjumping, conflict set: Cabal-tests, cabal-testsuite)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: cabal-testsuite, Cabal-tests |
- $ cabal build .
+ $ cabal build . --project-dir=.. |
|
cabal is supposed to detect project files up the directory tree though. This is a strange error. |
Does |
acd18d1 to
bc3abaf
Compare
$ cd cabal-testsuite/
$ rm cabal.project
$ mkdir -p foo && cabal repl --keep-temp-files --repl-multi-file foo
Configuration is affected by cabal.project at
'/home/sol/projects/haskell/cabal'.
Build profile: -w ghc-9.14.1 -O1
In order, the following will be built (use -v for more details):
- cabal-testsuite-3 (interactive) (file /home/sol/projects/haskell/cabal/dist-newstyle/build/x86_64-linux/ghc-9.14.1/Cabal-tests-3/cache/build changed)
unrecognized 'repl' option `--keep-temp-files'
Error: [Cabal-7125]
repl failed for cabal-testsuite-3.Does anybody know what's wrong with this If this doesn't work, |
bc3abaf to
26fb52d
Compare
Fixes #11798. Adds a
make helpitemdoctest-PACKAGENAMEand targets for running doctests for a single package using adoctest-%pattern rule.Note
There were doctests in
cabal-testsuite. These weren't being run before and cannot be run withcd cabal-testsuite && cabal doctestso these useREPL_WITH_DOCTEST. I renamedDOCTESTtoCABAL_DOCTEST.