From 4e3db05507efa11897c2f2e95d8be4e82f6db80f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 16 Dec 2023 11:13:27 -1000 Subject: [PATCH] ;just: functest: allow any shelltest options --- Justfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Justfile b/Justfile index 6c59864f3..a7e8a354e 100644 --- a/Justfile +++ b/Justfile @@ -57,7 +57,7 @@ watchgitdbg *OPTS: #!/usr/bin/env bash 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: 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 -# build hledger quickly and run functional tests, or just the ones matching PAT. (Run mktestaddons first.) -@functest *PAT: +# build hledger quickly and run functional tests, with any shelltest OPTS (requires mktestaddons) +@functest *OPTS: {{ STACK }} build --fast hledger - ({{ SHELLTEST }} {{ if PAT == '' { '' } else { '-i "' + PAT + '"' } }} \ + ({{ SHELLTEST }} {{ if OPTS == '' { '' } else { OPTS } }} \ hledger/test/ bin/ \ -x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-extra \ && echo $@ PASSED) || (echo $@ FAILED; false)