Debian Codegraph @

test-suite/coq-makefile/native3/run.sh

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/env bash
2
3 if ! command -v ocamlopt; then
4 echo "Skipped: no ocamlopt"
5 exit 0
6 fi
7
8 . ../template/init.sh
9
10 rocq makefile -f _CoqProject -o Makefile
11
12 if ! grep -q COQMF_COQ_NATIVE_COMPILER_DEFAULT=yes Makefile.conf; then
13 echo "Skipped: native compile disabled or ondemand"
14 exit 0
15 fi
16
17 cat Makefile.conf
18 make
19 make html mlihtml
20 make install DSTROOT="$PWD/tmp"
21 #make debug
22 (cd "$(find tmp -name user-contrib)" && find .) | sort > actual
23 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 diff -u desired actual
35
36 (cd "$(find tmp -name coq-test-suite)" && find .) | sort > actual
37 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 diff -u desired actual