From e6e912dcd250f666ebb0cd72eb922996f976ff3b Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Fri, 29 Jul 2016 17:26:42 +0200
Subject: [PATCH] [Tests] Update to new Makefile.plugin setup

- Declare explicitely the presence of tests/print.ml
- Compile it as dependency of `ptest_config` rather than
  `E_ACSL_TESTS` (in the latter case, they might not be compiled when
  `ptests` is launched, because `ptests` is launched by
  `E_ACSL_DEFAULT_TESTS` which is itself a dependency of `E_ACSL_TESTS`).
---
 src/plugins/e-acsl/Makefile.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/e-acsl/Makefile.in b/src/plugins/e-acsl/Makefile.in
index d4600372760..fd737c8e32f 100644
--- a/src/plugins/e-acsl/Makefile.in
+++ b/src/plugins/e-acsl/Makefile.in
@@ -117,8 +117,11 @@ $(PLUGIN_DIR)/tests/print.cmo: BFLAGS=-I $(FRAMAC_LIB) -I tests
 $(PLUGIN_DIR)/tests/print.cmx: OFLAGS=-I $(FRAMAC_LIB) -I tests
 
 PLUGIN_TESTS_DIRS := reject runtime bts gmp no-main
+PLUGIN_TESTS_LIB:=tests/print.ml
 
-E_ACSL_TESTS: $(PLUGIN_DIR)/tests/test_config \
+E_ACSL_TESTS: $(PLUGIN_DIR)/tests/test_config
+
+$(PLUGIN_DIR)/tests/ptests_config: \
 	$(PLUGIN_DIR)/tests/print.cmxs \
 	$(PLUGIN_DIR)/tests/print.cmo
 
-- 
GitLab