aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/Makefile.common
diff options
context:
space:
mode:
authorCyril Cohen2020-09-17 17:46:05 +0200
committerGitHub2020-09-17 17:46:05 +0200
commitbff7cdfb8ee65d43303b6fffba2aaf9818e2cf49 (patch)
tree7916d749b432ae8350983f4351577256d780450d /mathcomp/Makefile.common
parent09954b1975f9811a2054501804ef0d330c644a3e (diff)
parent38b28c7d9756da7d346a1866a4ce712b1c3472af (diff)
Merge pull request #433 from math-comp/output-test
[test suite] infrastructure to test how some statements are printed
Diffstat (limited to 'mathcomp/Makefile.common')
-rw-r--r--mathcomp/Makefile.common21
1 files changed, 18 insertions, 3 deletions
diff --git a/mathcomp/Makefile.common b/mathcomp/Makefile.common
index b6b71ea..b1603e6 100644
--- a/mathcomp/Makefile.common
+++ b/mathcomp/Makefile.common
@@ -56,11 +56,26 @@ Makefile.coq: pre-makefile $(COQPROJECT) Makefile
# Test suite ---------------------------------------------------------
-test_suite/test_hierarchy_all.v: build
- COQBIN=$(COQBIN) ocaml ../etc/utils/hierarchy.ml -verify -R . mathcomp -lib all.all > test_suite/test_hierarchy_all.v
+ifneq "$(TEST_SKIP_BUILD)" ""
+TEST_DEP :=
+MATHCOMP_PATH := -R test_suite mathcomp.test_suite
+else
+TEST_DEP := build
+MATHCOMP_PATH := -R . mathcomp
+endif
+
+test_suite/test_hierarchy_all.v: $(TEST_DEP)
+ COQBIN=$(COQBIN) ocaml ../etc/utils/hierarchy.ml -verify $(MATHCOMP_PATH) \
+ -lib all_ssreflect \
+ -lib all_algebra \
+ -lib all_field \
+ -lib all_character \
+ -lib all_fingroup \
+ -lib all_solvable \
+ > test_suite/test_hierarchy_all.v
Makefile.test-suite.coq: test_suite/test_hierarchy_all.v
- $(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f Make.test-suite -o Makefile.test-suite.coq
+ $(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f Make.test-suite $(MATHCOMP_PATH) -o Makefile.test-suite.coq
# Global config, build, clean and distclean --------------------------
config: sub-config this-config