1 import Test
.Cabal
.Prelude
2 import Data
.Foldable
(traverse_
)
4 -- Test the forbidden characters except NUL. Reference:
5 -- https://www.gnu.org/software/autoconf/manual/autoconf.html#File-System-Conventions
6 -- Most of these are magic on Windows, so don't bother testing there.
8 -- Note: we bundle the configure script so no need to autoreconf
34 -- 'cabal' from the prelude requires the command to succeed; we
35 -- don't mind if it fails, so long as we get the warning. This is
36 -- an inlined+specialised version of 'cabal' for v1-configure.
37 check dir
= withSourceCopyDir dir
$
38 defaultRecordMode RecordMarked
$ do
39 recordHeader
["cabal", "v1-configure"]
43 , "-vverbose +markoutput +nowrap"
47 configured_prog
<- requireProgramM cabalProgram
48 r
<- liftIO
$ run
(testVerbosity env
)
49 (Just
(testCurrentDir env
))
51 (programPath configured_prog
)