From 26ab75062027869cac0e39e13b36db6f4b60033b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 11 Jun 2019 15:09:17 -0700 Subject: [PATCH] ;tools: make functest-PAT [ci skip] --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 46e4732e2..3ad48668c 100644 --- a/Makefile +++ b/Makefile @@ -363,7 +363,7 @@ ghcid-shake: $(call def-help,ghcid-shake, start ghcid autobuilder on Shake.hs) ghci: $(call def-help,ghci, start ghci REPL on hledger-lib + hledger) $(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger/Hledger/Cli/Main.hs -ghci-prof: $(call def-help,ghci-prof, start ghci REPL on hledger-lib + hledger with profiling information) +ghci-prof: $(call def-help,ghci-prof, start ghci REPL on hledger-lib + hledger with profiling/call stack information) stack build --profile hledger --only-dependencies $(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fexternal-interpreter -prof -fprof-auto hledger/Hledger/Cli/Main.hs @@ -453,6 +453,12 @@ functest: tests/addons/hledger-addon \ @($(SHELLTESTSTK) -w `stack exec -- which hledger` tests \ && echo $@ PASSED) || (echo $@ FAILED; false) +functest-%: tests/addons/hledger-addon \ + $(call def-help,functest-PAT, build hledger quickly and run just the functional tests matching PAT ) + @stack build --fast hledger + @($(SHELLTESTSTK) -w `stack exec -- which hledger` tests -i "$*" \ + && echo $@ PASSED) || (echo $@ FAILED; false) + ADDONEXTS=pl py rb sh hs lhs rkt exe com bat tests/addons/hledger-addon: \ $(call def-help,tests/addons/hledger-addon,\