]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib-emacs.sh
perf-test: allow running test_emacs from performance test suite.
[notmuch] / test / test-lib-emacs.sh
index a298526d5fedc7a310ffc98d44bf753ae649efa6..ad4c4aeb621afd02d5d3b4cf71b34cbe2f5b6d4e 100644 (file)
@@ -207,4 +207,12 @@ test_emacs () {
        ${TEST_EMACSCLIENT} --socket-name="$EMACS_SERVER" --eval "(notmuch-test-progn $*)"
 }
 
+time_emacs () {
+    rm -f MESSAGES
+    printf "%s" "$1"
+    shift
+    test_emacs "(test-time $*)" > emacs.out
+    tail -n 1 MESSAGES
+}
+
 emacs_generate_script