Run doctests with doctest, not cabal-doctest#11793
Run doctests with doctest, not cabal-doctest#11793philderbeast wants to merge 1 commit intohaskell:masterfrom
Conversation
|
there's a lot in here... One thing I worry about is making the Makefile more complicated with generating targets ( As for switching back to |
The motivation is fixing #11493. I agree, the |
We already have variables with lists in the makefile: Lines 28 to 50 in e6ff0cc
I included your above suggestion but without the I also added convenience DOCTEST_PACKAGES := \
Cabal \
Cabal-described \
Cabal-syntax \
cabal-install \
cabal-install-solver \
cabal-testsuite
DOCTEST_TARGETS := $(addprefix doctest-, $(DOCTEST_PACKAGES))
doctest-%: ## Run doctests for a specific package.
$(DOCTEST) $*
doctest-PACKAGENAME: ## Run doctests for a single package (replace PACKAGENAME).
@echo 'Please use one of the following targets:'
@printf "%s\n" $(DOCTEST_TARGETS)
.PHONY: doctest
doctest: ## Run doctests in all packages.
doctest: $(DOCTEST_TARGETS) |
|
I see |
|
Ah, got you. It was hard to discern given the slew of changes... We really should report it upstream: do you think you could do that? |
I think one cd is much better than adding one |
|
@philderbeast what is the reason you pinned In general, I would prefer to stay with @ulysses4ever thanks for looping me in. |
The |
13eb9c1 to
2b840f9
Compare
2b840f9 to
c632a9f
Compare
@ulysses4ever I've split this pull request. Please see the note in the description of this pull request for details. |
9ba2e2f to
eeb092e
Compare
- Pin doctest-0.24.3
eeb092e to
7ef40f3
Compare
Fixes #11493.
doctesttool, not the way using the experimentalcabal-doctestexternal command.cabal replin quiet mode so that we only see the doctests summary output.-Wno-inconsistent-flagswarning suppression that only seems to be triggered byCabal-syntax.Note
Moved to -XCPP doctest expectations for ghc-9.14 and above #11797.
doctest-%pattern rule, I've split from this pull request.Moved to Add a doctest-% pattern target #11799.