diff options
author | Thomas Haller <thaller@redhat.com> | 2023-09-08 00:07:22 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-08 11:50:41 +0200 |
commit | d5df3b9e148af22d715173bc0cc1c02537c73b90 (patch) | |
tree | d1b0cc616d8772ebf5ea48f5412fd78f14303401 /include | |
parent | fd21f36e831df6e728853dcdaaed9e10a0ecc47d (diff) |
tests/shell: record wall time of test run in result data
When running tests, it's useful to see how long it took. Keep track if
the timestamps in a "times" file.
Try:
( \
for d in /tmp/nft-test.latest.*/test-*/ ; do \
printf '%10.2f %s\n' \
"$(sed '1!d' "$d/times")" \
"$(cat "$d/name")" ; \
done \
| sort -n \
| awk '{print $0; s+=$1} END{printf("%10.2f\n", s)}' ; \
printf '%10.2f wall time\n' "$(sed '1!d' /tmp/nft-test.latest.*/times)" \
)
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions