From ebe2d529652b2abaaadb6502b58cbba7f1bb299d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 4 Aug 2018 16:12:13 +0100 Subject: [PATCH] tools: make functest: build hledger and test that, without installing --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a370dc639..1d004ce21 100644 --- a/Makefile +++ b/Makefile @@ -670,8 +670,9 @@ builtintest: $(call def-help,builtintest, run hledgers built in test command) # assumes hledger is built and uses whatever build is there, avoiding excessive rebuilding #functest: addons tests/addons/hledger-addon functest: tests/addons/hledger-addon \ - $(call def-help,functest, run the functional tests for hledger ) - @($(SHELLTESTSTK) tests \ + $(call def-help,functest, build hledger quickly and run the functional tests (and some unit tests) ) + @stack build --fast hledger + @($(SHELLTESTSTK) -w `stack exec -- which hledger` tests \ && echo $@ PASSED) || (echo $@ FAILED; false) ADDONEXTS=pl py rb sh hs lhs rkt exe com bat