;; adapted from flycheck/debian/ert-helper.el

(load-library "cl-lib")
(load-file "ivy-mock.el")
(load-file "../find-file-in-project.el")
(load-file "general.el")
(load-file "windows.el")

;; stack will fail if $HOME is not a writable directory, and the
;; autopkgtest specification does not guarantee that it is.  So tell
;; stack to work somewhere else
(setenv "STACK_ROOT" (or (getenv "AUTOPKGTEST_TMP")
                         (getenv "ADT_TMP")))

(ert-run-tests-batch-and-exit)
