diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2017-11-27 17:26:22 +0100 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2017-11-27 17:26:22 +0100 |
commit | 437f20f0a1c2717cd7baae52e2ab20750dd9d4fb (patch) | |
tree | 5586b6b33fbe7ccaff33dd9fab4edefd30cb98a4 /test-suite | |
parent | c5ccbf0f4cb4d0dbfbc94cb71f3bdfe1ca888698 (diff) | |
parent | 4a9295baa83c1922d9defd601ed410d0a8241135 (diff) |
Merge PR #6237: coq_makefile tests: build in easily removed temporary subdirectory.
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/coq-makefile/.gitignore | 1 | ||||
-rwxr-xr-x | test-suite/coq-makefile/template/init.sh | 20 |
2 files changed, 12 insertions, 9 deletions
diff --git a/test-suite/coq-makefile/.gitignore b/test-suite/coq-makefile/.gitignore new file mode 100644 index 000000000..e866161ce --- /dev/null +++ b/test-suite/coq-makefile/.gitignore @@ -0,0 +1 @@ +/*/_test 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 |