File: ert-helper.el

package info (click to toggle)
markdown-mode 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,264 kB
  • sloc: lisp: 15,774; makefile: 60; sh: 17
file content (13 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
(require 'cl-lib)
;; The upstream Makefile runs their tests with the following expression:
(setq byte-compile-warnings (quote (not cl-functions)))
;; Byte-compile the test suite before running it, like upstream's Makefile
(cl-loop for f in
         (directory-files-recursively default-directory ".*\\.el$") do
         (byte-compile-file f))
;; Some tests fails as default-directory may change in the middle of ERT tests
;; when running under a chroot. Setting project-current-directory-override at
;; the beginning works around such cases.
(setq project-current-directory-override default-directory)

(cd "tests")