mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 10:17:34 +03:00
tools: functest: try again to reduce rebuilding/slowdowns when testing
--fast is always fighting with my non-fast builds and defeating the purpose. --threads 64 was making my macbook air m1 stutter, 32 seems better.
This commit is contained in:
parent
5b83e5c2f0
commit
9d6cb0f969
4
Justfile
4
Justfile
@ -473,13 +473,13 @@ STACKTEST := STACK + ' test --fast'
|
|||||||
@unittest:
|
@unittest:
|
||||||
($STACK exec hledger test && echo $@ PASSED) || (echo $@ FAILED; false)
|
($STACK exec hledger test && echo $@ PASSED) || (echo $@ FAILED; false)
|
||||||
|
|
||||||
SHELLTEST := 'COLUMNS=80 ' + STACK + ' exec -- shelltest --execdir --threads=64 --exclude=/_'
|
SHELLTEST := 'COLUMNS=80 ' + STACK + ' exec -- shelltest --execdir --exclude=/_ --threads=32'
|
||||||
|
|
||||||
# --hide-successes
|
# --hide-successes
|
||||||
|
|
||||||
# build hledger quickly and run functional tests, with any shelltest OPTS (requires mktestaddons)
|
# build hledger quickly and run functional tests, with any shelltest OPTS (requires mktestaddons)
|
||||||
@functest *OPTS:
|
@functest *OPTS:
|
||||||
$STACK build --fast hledger
|
$STACK build hledger
|
||||||
time (({{ SHELLTEST }} {{ if OPTS == '' { '' } else { OPTS } }} \
|
time (({{ SHELLTEST }} {{ if OPTS == '' { '' } else { OPTS } }} \
|
||||||
hledger/test/ bin/ \
|
hledger/test/ bin/ \
|
||||||
-x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-extra \
|
-x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-extra \
|
||||||
|
Loading…
Reference in New Issue
Block a user