# Change this if we ship a new test key
FINGERPRINT="5AEAB11F5E33DCE875DDB75B6D92612D94E46381"
+ SELF_USERID="Notmuch Test Suite <test_suite@notmuchmail.org> (INSECURE!)"
+ printf '%s:6:\n' "$FINGERPRINT" | gpg --quiet --batch --no-tty --import-ownertrust
}
# Each test should start with something like this, after copyright notices:
corpus=${1:-default}
rm -rf ${MAIL_DIR}
- if [ -d $TEST_DIRECTORY/corpora.mail/$corpus ]; then
- cp -a $TEST_DIRECTORY/corpora.mail/$corpus ${MAIL_DIR}
- else
- cp -a $NOTMUCH_SRCDIR/test/corpora/$corpus ${MAIL_DIR}
- notmuch new >/dev/null || die "'notmuch new' failed while adding email corpus"
- mkdir -p $TEST_DIRECTORY/corpora.mail
- cp -a ${MAIL_DIR} $TEST_DIRECTORY/corpora.mail/$corpus
- fi
+ cp -a $NOTMUCH_SRCDIR/test/corpora/$corpus ${MAIL_DIR}
+ notmuch new >/dev/null || die "'notmuch new' failed while adding email corpus"
}
test_begin_subtest ()