-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathMakefile
44 lines (36 loc) · 1.27 KB
/
Makefile
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
# 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
COQ_TESTS:=$(wildcard coq-test-*.el)
QRHL_TESTS:=$(wildcard qrhl-test-*.el)
COQ_SUCCESS:=$(COQ_TESTS:.el=.success)
QRHL_SUCCESS:=$(QRHL_TESTS:.el=.success)
.PHONY: coq-all
coq-all: $(COQ_SUCCESS) coq-proof-stat-batch-test
.PHONY: qrhl-all
qrhl-all: $(QRHL_SUCCESS)
%.success: %.el
emacs -batch -l ../../generic/proof-site.el -l $< \
-f ert-run-tests-batch-and-exit \
&& touch $@
# The following tests the batch mode functionality of
# proof-check-proofs. It generates human readable and TAP output for
# proof_stat.v and compares it with the expected output in file
# proof_stat.exp-out.
coq-proof-stat-batch-test:
rm -rf proof_stat.gen-out
emacs -batch -l ../../generic/proof-site.el proof_stat.v \
--eval '(proof-check-proofs nil "proof_stat.gen-out")'
emacs -batch -l ../../generic/proof-site.el proof_stat.v \
--eval '(proof-check-proofs t "proof_stat.gen-out")'
cmp proof_stat.gen-out proof_stat.exp-out && \
touch coq-proof-stat-batch-test
.PHONY: clean
clean:
rm -f *.vo *.glob *.vio *.vos *.vok .*.aux *.success
rm -f coq-proof-stat-batch-test proof_stat.gen-out