;just: functest: allow any shelltest options
This commit is contained in:
parent
7163bb4290
commit
4e3db05507
8
Justfile
8
Justfile
@ -57,7 +57,7 @@ watchgitdbg *OPTS:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
watchexec -r --filter-file <(git ls-files) {{ OPTS }} -- 'env | rg "WATCHEXEC\w*"; true'
|
watchexec -r --filter-file <(git ls-files) {{ OPTS }} -- 'env | rg "WATCHEXEC\w*"; true'
|
||||||
|
|
||||||
# show watchexec env vars when any file changes, ignoring nothing and printing events
|
# show watchexec env vars when any file changes, printing events and ignoring nothing
|
||||||
watchdbg *OPTS:
|
watchdbg *OPTS:
|
||||||
watchexec --ignore-nothing --print-events {{ OPTS }} -- 'env | rg "WATCHEXEC\w*"; true'
|
watchexec --ignore-nothing --print-events {{ OPTS }} -- 'env | rg "WATCHEXEC\w*"; true'
|
||||||
|
|
||||||
@ -480,10 +480,10 @@ SHELLTEST := 'COLUMNS=80 ' + STACK + ' exec -- shelltest --execdir --threads=64
|
|||||||
|
|
||||||
# --hide-successes
|
# --hide-successes
|
||||||
|
|
||||||
# build hledger quickly and run functional tests, or just the ones matching PAT. (Run mktestaddons first.)
|
# build hledger quickly and run functional tests, with any shelltest OPTS (requires mktestaddons)
|
||||||
@functest *PAT:
|
@functest *OPTS:
|
||||||
{{ STACK }} build --fast hledger
|
{{ STACK }} build --fast hledger
|
||||||
({{ SHELLTEST }} {{ if PAT == '' { '' } else { '-i "' + PAT + '"' } }} \
|
({{ 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 \
|
||||||
&& echo $@ PASSED) || (echo $@ FAILED; false)
|
&& echo $@ PASSED) || (echo $@ FAILED; false)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user