| •1 |
#!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`. |
| 2 |
|
| 3 |
if ! command -v ocamlopt; then |
| 4 |
echoscip-shell system . . echo. "Skipped: no ocamlopt" |
| 5 |
exit 0 |
| 6 |
fi |
| 7 |
|
| 8 |
. ../template/init.shscip-shell source . . `../template/init.sh`. |
| 9 |
|
| 10 |
rocq makefile -f _CoqProject -o Makefile |
| 11 |
|
| 12 |
if ! grepscip-shell system . . grep. -q COQMF_COQ_NATIVE_COMPILER_DEFAULT=yes Makefile.conf; then |
| 13 |
echoscip-shell system . . echo. "Skipped: native compile disabled or ondemand" |
| 14 |
exit 0 |
| 15 |
fi |
| 16 |
|
| 17 |
catscip-shell system . . cat. Makefile.conf |
| 18 |
makescip-shell system . . make. |
| 19 |
makescip-shell system . . make. html mlihtml |
| 20 |
makescip-shell system . . make. install DSTROOT="$PWD/tmp" |
| 21 |
#make debug |
| 22 |
(cd "$(findscip-shell system . . find. tmp -name user-contrib)" && findscip-shell system . . find. .) | sortscip-shell system . . sort. > actual |
| 23 |
sortscip-shell system . . sort. > desired <<EOT |
| 24 |
. |
| 25 |
./test |
| 26 |
./test/test.glob |
| 27 |
./test/test.v |
| 28 |
./test/test.vo |
| 29 |
./test/.coq-native |
| 30 |
./test/.coq-native/Ntest_test.cmi |
| 31 |
./test/.coq-native/Ntest_test.cmx |
| 32 |
./test/.coq-native/Ntest_test.cmxs |
| 33 |
EOT |
| 34 |
diffscip-shell system . . diff. -u desired actual |
| 35 |
|
| 36 |
(cd "$(findscip-shell system . . find. tmp -name coq-test-suite)" && findscip-shell system . . find. .) | sortscip-shell system . . sort. > actual |
| 37 |
sortscip-shell system . . sort. > desired <<EOT |
| 38 |
. |
| 39 |
./META |
| 40 |
./test_plugin.cmi |
| 41 |
./test_plugin.cmx |
| 42 |
./test_plugin.cmxa |
| 43 |
./test_plugin.cmxs |
| 44 |
EOT |
| 45 |
diffscip-shell system . . diff. -u desired actual |