diff options
| author | Gaëtan Gilbert | 2017-11-24 14:48:34 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2017-11-24 14:55:11 +0100 |
| commit | 4a9295baa83c1922d9defd601ed410d0a8241135 (patch) | |
| tree | 6cff39752ab73e96201f332f1f7e3aeaed739a34 | |
| parent | f9b3414888aebd1186f53c46d737536670171ab6 (diff) | |
coq_makefile tests: build in easily removed temporary subdirectory.
This allows us to avoid doing git clean.
| -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 0000000000..e866161ceb --- /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 c4bd11c57d..ec6c91263b 100755 --- a/test-suite/coq-makefile/template/init.sh +++ b/test-suite/coq-makefile/template/init.sh @@ -4,16 +4,18 @@ set -o pipefail export PATH=$COQBIN:$PATH export LC_ALL=C -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 |
