unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob ca0b3ab513d002b82bec192c6e6ca18c41364f63 543 bytes (raw)
name: performance-test/T06-emacs.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
#!/usr/bin/env bash

test_description='emacs operations'

. $(dirname "$0")/perf-test-lib.sh || exit 1
. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1

if [ "${NOTMUCH_with_EMACS}" = "0" ]; then
    echo "notmuch was not configured with emacs"
    exit 0
fi

time_start

print_emacs_header

MSGS=$(notmuch search --output=messages "*" | shuf -n 50 | awk '{printf " \"%s\"",$1}')

test_emacs "(test-time
 \"tag messages\"
 (dolist (msg (list $MSGS))
   (notmuch-tag msg (list \"+test\"))
   (notmuch-tag msg (list \"-test\"))))
"

time_done

debug log:

solving ca0b3ab5 ...
found ca0b3ab5 in https://yhetil.org/notmuch/20220129194439.2790761-5-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/20220129194439.2790761-5-david@tethera.net/
diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh
new file mode 100755
index 00000000..ca0b3ab5

Checking patch performance-test/T06-emacs.sh...
Applied patch performance-test/T06-emacs.sh cleanly.

index at:
100755 ca0b3ab513d002b82bec192c6e6ca18c41364f63	performance-test/T06-emacs.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).