Mercurial > public > mercurial-scm > hg-stable
diff tests/test-contrib-emacs.t @ 41797:19979b8b87e2
tests: add test for hg-test-mode emacs code
This is just coverage for the compilation-mode support, but that was
enough of a hassle that I wanted to have it covered somehow. Test
methodology is _extremely_ cargo-culted from the test for
compilation-mode in emacs, so I still have no idea what I'm doing.
Differential Revision: https://phab.mercurial-scm.org/D6003
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 21 Feb 2019 23:07:54 -0500 |
parents | |
children | 814c7430f828 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-contrib-emacs.t Thu Feb 21 23:07:54 2019 -0500 @@ -0,0 +1,8 @@ +#require emacs + $ emacs -q -no-site-file -batch -l $TESTDIR/../contrib/hg-test-mode.el \ + > -f ert-run-tests-batch-and-exit + Running 1 tests (*) (glob) + passed 1/1 hg-test-mode--compilation-mode-support + + Ran 1 tests, 1 results as expected (*) (glob) +