Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 5e63c23

Browse files
committed
Adding flag to run tests with the new option
1 parent afc17df commit 5e63c23

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

makefiles/variables.mk

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ PRECISION?=double
5555
MLANG_DEFAULT_OPTS=\
5656
-A iliad\
5757
--display_time --debug\
58-
--precision $(PRECISION)
58+
--precision $(PRECISION)\
5959

6060
##################################################
6161
# C backend configuration
@@ -110,6 +110,12 @@ else
110110
TEST_FILES=$(TESTS_DIR)/*
111111
endif
112112

113+
ifeq ($(NO_LOCAL_VAR), 1)
114+
NO_LOCAL_VAR_FLAG=--no-local-var
115+
else
116+
CODE_COVERAGE_FLAG=
117+
endif
118+
113119
# Précision des comparaisons entre flottants pendant les calculs
114120
COMPARISON_ERROR_MARGIN?=0.000001
115121

@@ -118,7 +124,7 @@ MLANG_INTERPRETER_OPTS=\
118124
--comparison_error_margin=$(COMPARISON_ERROR_MARGIN) \
119125
--mpp_function=$(MPP_FUNCTION)
120126

121-
MLANG_TEST=$(MLANG_BIN) $(MLANG_DEFAULT_OPTS) $(MLANG_INTERPRETER_OPTS) $(CODE_COVERAGE_FLAG)
127+
MLANG_TEST=$(MLANG_BIN) $(MLANG_DEFAULT_OPTS) $(MLANG_INTERPRETER_OPTS) $(CODE_COVERAGE_FLAG) $(NO_LOCAL_FLAG)
122128

123129
DGFIP_DIR?=examples/dgfip_c/ml_primitif
124130

0 commit comments

Comments
 (0)