aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/coq-makefile/template
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-11-27 17:26:22 +0100
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-11-27 17:26:22 +0100
commit437f20f0a1c2717cd7baae52e2ab20750dd9d4fb (patch)
tree5586b6b33fbe7ccaff33dd9fab4edefd30cb98a4 /test-suite/coq-makefile/template
parentc5ccbf0f4cb4d0dbfbc94cb71f3bdfe1ca888698 (diff)
parent4a9295baa83c1922d9defd601ed410d0a8241135 (diff)
Merge PR #6237: coq_makefile tests: build in easily removed temporary subdirectory.
Diffstat (limited to 'test-suite/coq-makefile/template')
-rwxr-xr-xtest-suite/coq-makefile/template/init.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/test-suite/coq-makefile/template/init.sh b/test-suite/coq-makefile/template/init.sh
index db34e9182..e19d168cf 100755
--- a/test-suite/coq-makefile/template/init.sh
+++ b/test-suite/coq-makefile/template/init.sh
@@ -1,15 +1,17 @@
. ../template/path-init.sh
-rm -rf theories src Makefile Makefile.conf tmp
-git clean -dfx || true
+rm -rf _test
+mkdir _test
+find . -maxdepth 1 -not -name . -not -name _test -exec cp -r '{}' -t _test ';'
+cd _test
mkdir -p src
mkdir -p theories/sub
-cp ../template/theories/sub/testsub.v theories/sub
-cp ../template/theories/test.v theories
-cp ../template/src/test.ml4 src
-cp ../template/src/test_aux.mli src
-cp ../template/src/test.mli src
-cp ../template/src/test_plugin.mlpack src
-cp ../template/src/test_aux.ml src
+cp ../../template/theories/sub/testsub.v theories/sub
+cp ../../template/theories/test.v theories
+cp ../../template/src/test.ml4 src
+cp ../../template/src/test_aux.mli src
+cp ../../template/src/test.mli src
+cp ../../template/src/test_plugin.mlpack src
+cp ../../template/src/test_aux.ml src