aboutsummaryrefslogtreecommitdiff
path: root/test-suite/Makefile
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-05-18 17:34:27 +0200
committerEmilio Jesus Gallego Arias2020-05-18 17:53:04 +0200
commit17de81c8c006e89088b2173d1aeaae24b4c09cfa (patch)
tree0bd05b0cd5447f227350748f04376ae57b10c548 /test-suite/Makefile
parentea6cb6b542e8c356192bb77f234586e0f6d55c8c (diff)
[test-suite] Ensure copies of files are writable
This is needed for the case the sources are set to read-only mode, for example when using Dune >= 2.5 [needed for the global cache support] Fixes #12264 Co-authored-by: Ignat Insarov <kindaro@gmail.com>
Diffstat (limited to 'test-suite/Makefile')
-rw-r--r--test-suite/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/test-suite/Makefile b/test-suite/Makefile
index bbd31486fe..afc6080627 100644
--- a/test-suite/Makefile
+++ b/test-suite/Makefile
@@ -117,7 +117,11 @@ VSUBSYSTEMS := prerequisite success failure $(BUGS) output output-coqtop \
# All subsystems
SUBSYSTEMS := $(VSUBSYSTEMS) misc bugs ide vio coqchk coqwc coq-makefile tools $(UNIT_TESTS)
-PREREQUISITELOG = $(addsuffix .log,$(wildcard prerequisite/*.v))
+.csdp.cache: .csdp.cache.test-suite
+ cp $< $@
+ chmod u+w $@
+
+PREREQUISITELOG = $(addsuffix .log,$(wildcard prerequisite/*.v)) .csdp.cache
#######################################################################
# Phony targets
@@ -475,6 +479,7 @@ approve-output: output output-coqtop
output/MExtraction.out: ../plugins/micromega/micromega.ml
$(SHOW) GEN $@
$(HIDE) cp $< $@
+ $(HIDE) chmod u+w $@
$(HIDE) echo >> $@
$(addsuffix .log,$(wildcard output-modulo-time/*.v)): %.v.log: %.v %.out