mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
;dev: cli: ledger tests: summary, failures
This commit is contained in:
parent
1b56687708
commit
470e906e97
2
hledger/test/ledger-compat/failures
Executable file
2
hledger/test/ledger-compat/failures
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
grep -v ': ok$' log
|
@ -12,8 +12,6 @@ for f in $FILES ; do
|
||||
# printf "." 1>&2
|
||||
done 2>&1 | tee log
|
||||
echo
|
||||
cp log log."$(date +%Y%m%d)"
|
||||
printf "test files: %4d\n" "$(rg -c '^:' log || echo 0)"
|
||||
printf "success: %4d\n" "$(rg -c ': ok$' log || echo 0)"
|
||||
printf "failure: %4d\n" "$(rg -c '(^|: )fail$' log || echo 0)"
|
||||
echo "tested on $(date +%Y-%m-%d) with $(hledger --version)"
|
||||
cp log log."$(date +%Y%m%d)"
|
||||
./summary
|
||||
|
6
hledger/test/ledger-compat/summary
Executable file
6
hledger/test/ledger-compat/summary
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Summarise the results of the last test run
|
||||
set -e
|
||||
printf "test files: %4d\n" "$(rg -c '^:' log || echo 0)"
|
||||
printf "success: %4d\n" "$(rg -c ': ok$' log || echo 0)"
|
||||
printf "failure: %4d\n" "$(rg -c '(^|: )fail$' log || echo 0)"
|
Loading…
Reference in New Issue
Block a user