aboutsummaryrefslogtreecommitdiff
path: root/ci/simple-tests/test-coqtop-unavailable.el
blob: 8d16bf4e27d98e22a4139e885992078fb48d610a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;; This file is part of Proof General.
;; 
;; © Copyright 2021  Hendrik Tews
;; 
;; Authors: Hendrik Tews
;; Maintainer: Hendrik Tews <hendrik@askra.de>
;; 
;; License:     GPL (GNU GENERAL PUBLIC LICENSE)

;;; Commentary:
;;
;; Test that Proof General can open Coq files even when coqtop is
;; unavailable.


(ert-deftest coqtop-unavailable ()
  "Proof General can open Coq files even when coqtop is unavailable.."
  (setq coq-prog-name "unavailable-program")

  ;; ensure coq-prog-name cannot be found
  (should (not (locate-file coq-prog-name exec-path)))

  (find-file "simple.v")
  (coq-prog-args))