projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c3a27d
)
perf-test: use 'eval' in memory_run
author
David Bremner
<david@tethera.net>
Sat, 18 Mar 2017 16:34:32 +0000
(13:34 -0300)
committer
David Bremner
<david@tethera.net>
Sat, 18 Mar 2017 16:34:32 +0000
(13:34 -0300)
This allows the use of redirection in the tests
performance-test/perf-test-lib.sh
patch
|
blob
|
history
diff --git
a/performance-test/perf-test-lib.sh
b/performance-test/perf-test-lib.sh
index 00d2f1c6050bb7330bba19e4a17a7bbe097cae42..c89d5aab39a069e7ee28596b3f20ea0e7a8803ed 100644
(file)
--- a/
performance-test/perf-test-lib.sh
+++ b/
performance-test/perf-test-lib.sh
@@
-149,7
+149,7
@@
memory_run ()
printf "[ %d ]\t%s\n" $test_count "$1"
- NOTMUCH_TALLOC_REPORT="$talloc_log"
valgrind --leak-check=full --log-file="$log_file" $2
+ NOTMUCH_TALLOC_REPORT="$talloc_log"
eval "valgrind --leak-check=full --log-file='$log_file' $2"
awk '/LEAK SUMMARY/,/suppressed/ { sub(/^==[0-9]*==/," "); print }' "$log_file"
echo