#!/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