]> git.eshelyaron.com Git - emacs.git/commit
Migrate MH-E functional tests from SourceForge
authorStephen Gildea <stepheng+emacs@gildea.com>
Wed, 22 Sep 2021 05:01:03 +0000 (22:01 -0700)
committerStephen Gildea <stepheng+emacs@gildea.com>
Wed, 22 Sep 2021 05:03:08 +0000 (22:03 -0700)
commit7ce721bdacd65d47031060ee8e81d6117e94cc75
tree9b536da0638d3a50d1e250ca83fb8eadb46f232e
parent2a736738095c313ccef07d074aac4c5467b750e0
Migrate MH-E functional tests from SourceForge

* test/lisp/mh-e/mh-limit-tests.el:
* test/lisp/mh-e/mh-utils-tests.el:
* test/lisp/mh-e/mh-xface-tests.el:
Import the functional tests from src/mh-unit.el.

mh-unit.el is from the old SourceForge mh-e repository, last changed
in 2017.  To this are applied unmerged patches Mike Kupfer wrote in
2018 ("Refactor mh-unit into functional and release tests" and
"Fix the functional tests").

All tests have been converted to run under Emacs's ERT framework.

Some tests for mh-utils use MH programs to examine mail folders.
These tests require an MH variant to be installed on the system; for
these, added both a mock harness that pretends the needed files and MH
programs do exist, and a wrapper that creates the necessary mail files.

New function 'mh-test-utils-setup-with-variant' bears some resemblance
to 'mh-test-folders-set-up' from the original tests.  New function
'mh-test-utils-setup-with-mocks' is new functionality for these tests.
test/lisp/mh-e/mh-limit-tests.el [new file with mode: 0644]
test/lisp/mh-e/mh-utils-tests.el [new file with mode: 0644]
test/lisp/mh-e/mh-xface-tests.el