aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test/perf-test-lib.sh
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-12-05 21:41:44 -0400
committerGravatar David Bremner <bremner@debian.org>2012-12-15 08:17:57 -0400
commit925ebd1fde59b003a7215e8cd7e07225a8f8915d (patch)
tree0de68b9c0be5e1a0b31adc788d18eeec887c9c3d /performance-test/perf-test-lib.sh
parenta3137c61e144935fde9896855ffc8625f7505c37 (diff)
perf-test: optionally print description for each group of tests
Output from tests is indented slightly in the same style as the correctness tests.
Diffstat (limited to 'performance-test/perf-test-lib.sh')
-rw-r--r--performance-test/perf-test-lib.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh
index e399d3f5..bdf92449 100644
--- a/performance-test/perf-test-lib.sh
+++ b/performance-test/perf-test-lib.sh
@@ -67,12 +67,12 @@ add_email_corpus ()
}
print_header () {
- printf "[v%4s %6s] Wall(s)\tUsr(s)\tSys(s)\tRes(K)\tIn/Out(512B)\n" \
+ printf "[v%4s %6s] Wall(s)\tUsr(s)\tSys(s)\tRes(K)\tIn/Out(512B)\n" \
${PERFTEST_VERSION} ${corpus_size}
}
time_run () {
- printf "%-22s" "$1"
+ printf " %-22s" "$1"
if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi
if ! eval >&3 "/usr/bin/time -f '%e\t%U\t%S\t%M\t%I/%O' $2" ; then
test_failure=$(($test_failure + 1))
@@ -92,3 +92,6 @@ time_done () {
cd -P "$test" || error "Cannot setup test environment"
test_failure=0
+
+echo
+echo $(basename "$0"): "Testing ${test_description:-notmuch performance}"