aboutsummaryrefslogtreecommitdiff
path: root/ci/compile-tests/002-require-no-dependencies/runtest.el
blob: f2feefad7e86eaad8c79a5c11ed128dc2ec9814b (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;; This file is part of Proof General.
;; 
;; © Copyright 2020  Hendrik Tews
;; 
;; Authors: Hendrik Tews
;; Maintainer: Hendrik Tews <hendrik@askra.de>
;; 
;; License:     GPL (GNU GENERAL PUBLIC LICENSE)

;;; Commentary:
;;
;; Coq Compile Tests (cct) --
;; ert tests for parallel background compilation for Coq
;;
;; Test parallel background compilation when one require command does
;; not produce any dependencies.
;;
;; The following graph shows the file dependencies in this test:
;; 
;;      a    b
;;           |
;;           c


;; require cct-lib for the elisp compilation, otherwise this is present already
(require 'cct-lib)

;;; set configuration
(cct-configure-proof-general)

;;; Define the tests

(ert-deftest cct-one-require-with-no-dependencies ()
  "Test background compilation with an require with no dependencies."
  (find-file "a.v")
  (cct-process-to-line 25)
  
  (cct-check-locked 24 'locked)
  (cct-locked-ancestors 22 '()))
    
(ert-deftest cct-two-requires-first-no-dependencies ()
  "Test background compilation with an require with no dependencies."
  (find-file "b.v")
  (cct-process-to-line 25)
  
  (cct-check-locked 24 'locked)
  (cct-locked-ancestors 22 '())
  (cct-locked-ancestors 23 '("./c.v")))