File: test-coqtop-unavailable.el

package info (click to toggle)
proofgeneral 4.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,172 kB
  • sloc: lisp: 33,783; makefile: 388; sh: 118; perl: 109
file content (24 lines) | stat: -rw-r--r-- 601 bytes parent folder | download
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>
;; 
;; SPDX-License-Identifier: GPL-3.0-or-later

;;; 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))