Closed
Description
I'm not sure what to make of the following behavior in Cabal 1.24. hslogger
has a flag buildtests
that marks the test suite "buildable" when enabled, but it defaults to "disabled". Now, the effective value of the flag is determined automatically by Cabal, but it sticks to the "disabled" setting, apparently not realizing that it could build the test suite if "enabled" would be chosen. As a result, users cannot run the test suite unless they realize that flag exists and specify it explicitly:
$ cabal get hslogger
Downloading hslogger-1.2.10...
Unpacking to hslogger-1.2.10/
$ cd hslogger-1.2.10/
$ cabal configure -v --enable-tests
[...]
Configuring hslogger-1.2.10...
Flags chosen: buildtests=False, small_base=True
[...]
$ cabal test
Package has no buildable test suites.
Now I wonder: are we happy with that result? Or can a legitimate case be made that Cabal should strive to maximize the set of buildable components in a package?