Debian Codegraph @

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

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•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 # 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 ! grepscip-shell system . . grep. -q COQMF_COQ_NATIVE_COMPILER_DEFAULT=yes Makefile.conf; then
16 echoscip-shell system . . echo. "Skipped: native compile disabled or ondemand"
17 exit 0
18 fi
19
20 catscip-shell system . . cat. Makefile.conf
21 makescip-shell system . . make.
22 makescip-shell system . . make. html mlihtml
23 makescip-shell system . . make. install DSTROOT="$PWD/tmp"
24 #make debug
25 (cd "$(findscip-shell system . . find. tmp -name user-contrib)" && findscip-shell system . . find. .) | sortscip-shell system . . sort. > actual
26 sortscip-shell system . . 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 diffscip-shell system . . diff. -u desired actual
38
39 (cd "$(findscip-shell system . . find. tmp -name coq-test-suite)" && findscip-shell system . . find. .) | sortscip-shell system . . sort. > actual
40 sortscip-shell system . . 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 diffscip-shell system . . diff. -u desired actual