Select verbosity with "make VERBOSE=n". Options so far: n=0: No per-test output n=1: Only failing test results n=2: As above, plus progress information (names of all tests) n=3: As aobve, plus commands called. Default currently is n=3, although n=2 might be a nicer default.
Added a new test Makefile variable $(dllext), which is instantiated to .dll or .so or .dylib depending on your platform. Signed-off-by: Edward Z. Yang <firstname.lastname@example.org>
We used to use the base package to do the detection. However, base has extra-lib-dirs: @ICONV_LIB_DIRS@ in base.buildinfo.in, which means that if ICONV_LIB_DIRS is set then the package config will have library-dirs: [...]base/dist-install/build /path/for/iconv and, as paths may be double quoted and contains spaces, this makes it a little tricky to extra the path that we want to look in (the first path). We therefore now use the ghc-prim package, which has no such complication.
We were checking paths with if [ -f '"/path/to/Prelude"' ] i.e. the " quotes were being quoted by the ' quotes. Now we just use " quotes (which come from the ghc-pkg output).
It's often useful to be able to say 'make TEST_HC=ghc' to check that a test really fails with a different GHC.
dynamic ghci can't load .a files
So that we can still use the testsuite with older compilers. We should really test the GHC version, but I don't want to add another $(shell). Maybe modifying ghcconfig.hs would be better.