blob: e3cc561b2351d410223f3a8c23169e9fb9b097ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
ghci024:
@echo "~~~~~~~~~~ Testing :set"
printf ":set\n" \
| '$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci \
| grep -E "^([^ ]| -fno-print-explicit-foralls| -fno-warn-implicit-prelude)"
@echo "~~~~~~~~~~ Testing :show languages"
printf ":show languages\n" \
| '$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci \
| grep -E "^([^ ]| -XImplicitPrelude| -XMagicHash)"
@echo "~~~~~~~~~~ Testing :show languages, with -XMagicHash"
printf ":set -XMagicHash\n:show languages\n" \
| '$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci \
| grep -E "^([^ ]| -XImplicitPrelude| -XMagicHash)"
@echo "~~~~~~~~~~ Testing :show packages"
printf ":show packages\n" \
| '$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci \
| grep -E "^([^ ]| -package|base|ghc-prim|integer|rts|Cabal)" \
| sed "s/Cabal-[0-9.]*/Cabal-VERSION/"
@echo "~~~~~~~~~~ Testing :show packages, including the ghc package"
printf ":set -package ghc\n:show packages\n" \
| '$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci \
| grep -E "^([^ ]| -package|base|ghc-prim|integer|rts|Cabal)" \
| sed "s/Cabal-[0-9.]*/Cabal-VERSION/"
.PHONY: ghci037
ghci037:
'$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci < ghci037.script
'$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-dot-ghci -fno-ghci-sandbox < ghci037.script
|