This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,29 @@
(rule
(action
(with-outputs-to
config.output
(progn
(echo "COQLIB=%{coq:coqlib}\n")
(echo "COQ_NATIVE_COMPILER_DEFAULT=%{coq:coq_native_compiler_default}\n")
(echo "")
(echo "%{coq:version} %{coq:ocaml-version}\n")
(echo
"%{coq:version.major}.%{coq:version.minor}%{coq:version.suffix} %{coq:ocaml-version}\n")))))
(rule
(action
(with-outputs-to
config.expected
(progn
(pipe-outputs
; We need to scrub ignored config values
(run %{bin:coqc} --config)
(run sed "/^COQCORELIB=/d")
(run sed "/^DOCDIR=/d")
(run sed "/^OCAMLFIND=/d")
(run sed "/^CAMLFLAGS=/d")
(run sed "/^WARN=/d")
(run sed "/^HASNATDYNLINK=/d")
(run sed "/^COQ_SRC_SUBDIRS=/d"))
(run %{bin:coqc} -print-version)
(run %{bin:coqc} -print-version)))))

View file

@ -0,0 +1,2 @@
(lang dune 3.4)
(using coq 0.4)

View file

@ -0,0 +1,8 @@
Testing the Coq macro
$ dune build
$ cd _build/default
Testing the output of the version and configuration values
$ diff config.output config.expected