aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-10-13 18:17:06 +0200
committerGaëtan Gilbert2019-10-14 10:24:40 +0200
commit3f5417422b7498514a148242979431aa2990c584 (patch)
treeb1664e0e831627a25ecee9317cfc15932f4dc96b
parent81216e8947fb4906f5a2b109cbed3e2584383c57 (diff)
test-suite/Makefile: work when manually involved for dune-compiled Coq
i.e. you can do ~~~ make -f Makefile.dune world make -C test-suite success ~~~ to make just the success tests, then modify Coq sources and retest just the ones you want
-rw-r--r--test-suite/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/test-suite/Makefile b/test-suite/Makefile
index c0bdb29fab..c60f39231e 100644
--- a/test-suite/Makefile
+++ b/test-suite/Makefile
@@ -32,18 +32,21 @@ include ../Makefile.common
# Variables
#######################################################################
-# Default value when called from a freshly compiled Coq, but can be
-# easily overridden
-
+ifneq ($(wildcard ../_build),)
+BIN:=$(shell cd ..; pwd)/_build/install/default/bin/
+COQLIB:=$(shell cd ..; pwd)/_build/install/default/lib/coq
+else
BIN := $(shell cd ..; pwd)/bin/
-COQFLAGS?=
COQLIB?=
ifeq ($(COQLIB),)
COQLIB := $(shell ocaml ocaml_pwd.ml ..)
endif
+endif # exists ../_build
export COQLIB
+COQFLAGS?=
+
coqc := $(BIN)coqc -q -R prerequisite TestSuite $(COQFLAGS)
coqchk := $(BIN)coqchk -R prerequisite TestSuite
coqdoc := $(BIN)coqdoc