From 184269d959e7b94876ca228f56978a1b7ef316af Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 29 Jun 2022 08:03:50 +0100 Subject: [PATCH] tools: make ghci-unit-test --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb44632a5..8bb4f9b7b 100644 --- a/Makefile +++ b/Makefile @@ -357,7 +357,7 @@ ghcid: $(call def-help,ghcid, start ghcid autobuilder on hledger-lib + hledger) ghcid -c 'make ghci' ghcid-ui: $(call def-help,ghcid-ui, start ghcid autobuilder on hledger-lib + hledger + hledger-ui) - ghcid -c 'make ghci-ui' + ghcid -c 'make ui' ghcid-web: $(call def-help,ghcid-web, start ghcid autobuilder on hledger-lib + hledger + hledger-web) ghcid -c 'make ghci-web' @@ -418,6 +418,11 @@ ghci-web: webdirs $(call def-help,ghci-web, start ghci REPL on hledger-lib + hle ghci-web-test: webdirs $(call def-help,ghci-web-test, start ghci REPL on hledger-lib + hledger + hledger-web + hledger-web test suite) $(STACKGHCI) exec -- $(GHCI) $(BUILDFLAGS) hledger-web/test/test.hs +# better than stack exec ? +# XXX does not see changes to files +ghci-unit-test: $(call def-help,ghci-unit-test, start ghci REPL on hledger-lib + unit test suite) + $(STACKGHCI) ghci --ghc-options='-rtsopts -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-name-shadowing -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind -ihledger-lib -DDEVELOPMENT -DVERSION="\"1.26.99\""' hledger-lib/test/unittest.hs + # ghci-all: $(call def-help,ghci-all, start ghci REPL on all the hledger) # $(STACK) exec -- $(GHCI) $(BUILDFLAGS) \ # hledger-ui/Hledger/UI/Main.hs \