Skip to content
Snippets Groups Projects
Commit 409b7f3f authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[makefile] fixes testing aliases when plugins are disable

parent 0115dbd6
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,9 @@ FRAMAC_WTESTS:=$(FRAMAC_PTESTS_SRC)/wtests.exe ...@@ -152,6 +152,9 @@ FRAMAC_WTESTS:=$(FRAMAC_PTESTS_SRC)/wtests.exe
# Frama-C also have ptest directories in plugins, so we do not use default # Frama-C also have ptest directories in plugins, so we do not use default
PTEST_ALL_DIRS:=tests $(wildcard src/plugins/*/tests) PTEST_ALL_DIRS:=tests $(wildcard src/plugins/*/tests)
# Test aliasing definition allowing ./configure --disable-<plugin>
PTEST_ALIASES:=@tests/ptests @src/plugins/ptests
# Ptests needs config.sed so that dune can build Frama-C (if it is not built) # Ptests needs config.sed so that dune can build Frama-C (if it is not built)
PTEST_DEPS:=config.sed PTEST_DEPS:=config.sed
......
...@@ -38,6 +38,8 @@ PTEST_DIRS?=$(PTEST_ALL_DIRS) ...@@ -38,6 +38,8 @@ PTEST_DIRS?=$(PTEST_ALL_DIRS)
PTEST_DEPS?= PTEST_DEPS?=
# Indicate whether we use global WP cache # Indicate whether we use global WP cache
PTEST_USE_WP_CACHE?=no PTEST_USE_WP_CACHE?=no
# Defines the related dune targets
PTEST_ALIASES?=$(addsuffix /ptests,$(addprefix @,$(PTEST_DIRS)))
ifneq ($(FRAMAC_WP_QUALIF),) ifneq ($(FRAMAC_WP_QUALIF),)
FRAMAC_WP_CACHEDIR=$(FRAMAC_WP_QUALIF) FRAMAC_WP_CACHEDIR=$(FRAMAC_WP_QUALIF)
...@@ -59,9 +61,6 @@ endif ...@@ -59,9 +61,6 @@ endif
########################################################################## ##########################################################################
# Defines the related dune targets
PTEST_ALIASES=$(addsuffix /ptests,$(addprefix @,$(PTEST_DIRS)))
.PHONY: tests.info .PHONY: tests.info
tests.info: tests.info:
echo "FRAMAC_WTESTS='$(FRAMAC_WTESTS)'" echo "FRAMAC_WTESTS='$(FRAMAC_WTESTS)'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment