Add TEST_HC_OPTS to every Makefile invocation of TEST_HC
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Apr 2011 16:39:11 +0000 (17:39 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Apr 2011 16:39:11 +0000 (17:39 +0100)
commit6c32ee85bb4c5f6052f66617f2acadab69189fc2
tree8a67679b1e12ea313205b43884b4cf4386777ee9
parent16fb7aebe43a55c515c5c89bf58dd12fd323b21f
Add TEST_HC_OPTS to every Makefile invocation of TEST_HC

In the testsuite there are numerous Makefiles that invoke $(TEST_HC).
But, unlike the tests invoked directly by the harness, they didn't pass
-dno-debug-output, or $(EXTRA_HC_OPTS).

This patch goes part-way towards the goal of making the two consistent:

* Almost all invocations in the Makefiles now go
    '$(TEST_HC)' $(TEST_HC_OPTS)

* In test.mk we initialise
     TEST_HC_OPTS = -dno-debug-output $(EXTRA_HC_OPTS)

Still to come (I don't know how to do these)

* The invocations of TEST_HC via cabal are not treated
  (eg cabal01, cabal04), and they should be

* TEST_HC_OPTS should probably be initialised the same way
  as the Python script computes the flags to pass to the
  TEST_HC that it calls directly
47 files changed:
testsuite/mk/test.mk
testsuite/tests/ghc-regress/cabal/Makefile
testsuite/tests/ghc-regress/codeGen/should_compile/Makefile
testsuite/tests/ghc-regress/concurrent/should_run/Makefile
testsuite/tests/ghc-regress/deriving/should_fail/Makefile
testsuite/tests/ghc-regress/driver/1372/Makefile
testsuite/tests/ghc-regress/driver/1959/Makefile
testsuite/tests/ghc-regress/driver/Makefile
testsuite/tests/ghc-regress/driver/bug1677/Makefile
testsuite/tests/ghc-regress/driver/conflicting_flags/Makefile
testsuite/tests/ghc-regress/driver/dynamic_flags_001/Makefile
testsuite/tests/ghc-regress/driver/recomp001/Makefile
testsuite/tests/ghc-regress/driver/recomp002/Makefile
testsuite/tests/ghc-regress/driver/recomp003/Makefile
testsuite/tests/ghc-regress/driver/recomp004/Makefile
testsuite/tests/ghc-regress/driver/recomp005/Makefile
testsuite/tests/ghc-regress/driver/recomp006/Makefile
testsuite/tests/ghc-regress/driver/recomp008/Makefile
testsuite/tests/ghc-regress/dynlibs/Makefile
testsuite/tests/ghc-regress/ffi/should_run/Makefile
testsuite/tests/ghc-regress/gadt/Makefile
testsuite/tests/ghc-regress/ghc-api/T4891/Makefile
testsuite/tests/ghc-regress/ghc-api/apirecomp001/Makefile
testsuite/tests/ghc-regress/ghc-e/should_run/Makefile
testsuite/tests/ghc-regress/ghci/prog004/Makefile
testsuite/tests/ghc-regress/ghci/scripts/Makefile
testsuite/tests/ghc-regress/ghci/should_run/Makefile
testsuite/tests/ghc-regress/hsc2hs/Makefile
testsuite/tests/ghc-regress/indexed-types/should_compile/Makefile
testsuite/tests/ghc-regress/layout/Makefile
testsuite/tests/ghc-regress/lib/IO/Makefile
testsuite/tests/ghc-regress/module/Makefile
testsuite/tests/ghc-regress/module/base01/Makefile
testsuite/tests/ghc-regress/module/mod175/Makefile
testsuite/tests/ghc-regress/perf/compiler/Makefile
testsuite/tests/ghc-regress/perf/should_run/Makefile
testsuite/tests/ghc-regress/profiling/should_run/Makefile
testsuite/tests/ghc-regress/quasiquotation/Makefile
testsuite/tests/ghc-regress/rename/prog006/Makefile
testsuite/tests/ghc-regress/rename/should_compile/Makefile
testsuite/tests/ghc-regress/rts/Makefile
testsuite/tests/ghc-regress/simplCore/should_compile/Makefile
testsuite/tests/ghc-regress/th/2014/Makefile
testsuite/tests/ghc-regress/th/Makefile
testsuite/tests/ghc-regress/th/TH_recompile/Makefile
testsuite/tests/ghc-regress/typecheck/bug1465/Makefile
testsuite/tests/ghc-regress/typecheck/should_compile/Makefile