Debian Codegraph @

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

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/usr/bin/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 COQEXTRAFLAGS="-w +native-compiler-disabled -native-compiler yes" 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