mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;tools: make functest-PAT
[ci skip]
This commit is contained in:
parent
233f72b7bf
commit
26ab750620
8
Makefile
8
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,\
|
||||
|
Loading…
Reference in New Issue
Block a user