Debian Codegraph @

test-suite/coq-makefile/native4/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 # Shoud override the _CoqProject flag "-native-compiler no"
11 export COQEXTRAFLAGS="-native-compiler yes"
12
13 rocq makefile -f _CoqProject -o Makefile
14
15 if ! grep -q COQMF_COQ_NATIVE_COMPILER_DEFAULT=yes Makefile.conf; then
16 echo "Skipped: native compile disabled or ondemand"
17 exit 0
18 fi
19
20 cat Makefile.conf
21 make
22 make html mlihtml
23 make install DSTROOT="$PWD/tmp"
24 #make debug
25 (cd "$(find tmp -name user-contrib)" && find .) | sort > actual
26 sort > desired <<EOT
27 .
28 ./test
29 ./test/test.glob
30 ./test/test.v
31 ./test/test.vo
32 ./test/.coq-native
33 ./test/.coq-native/Ntest_test.cmi
34 ./test/.coq-native/Ntest_test.cmx
35 ./test/.coq-native/Ntest_test.cmxs
36 EOT
37 diff -u desired actual
38
39 (cd "$(find tmp -name coq-test-suite)" && find .) | sort > actual
40 sort > desired <<EOT
41 .
42 ./META
43 ./test_plugin.cmi
44 ./test_plugin.cmx
45 ./test_plugin.cmxa
46 ./test_plugin.cmxs
47 EOT
48 diff -u desired actual