[API-NEXT,PATCHv11,4/5] test: preventing odp.conf loading for tests

Message ID 1485280086-3958-5-git-send-email-christophe.milard@linaro.org
State New
Headers show
Series
  • driver initialisation framework
Related show

Commit Message

Christophe Milard Jan. 24, 2017, 5:48 p.m.
The tests should not be affected by any system or user ODP configuration
file. The ODP_SYSCONFIG_FILE environment variables is therefore set
to "none" in TESTS_ENVIRONMENT.
Tests which need specific a configuration file will have to overwrite
this setting.
Note that tests ran manually (not using make check) may be affected
by configuration files. Setting ODP_SYSCONFIG_FILE to an appropriate value
(possibly "none") may be required.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

---
 test/Makefile.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.7.4

Patch

diff --git a/test/Makefile.inc b/test/Makefile.inc
index 1ebc047..896f863 100644
--- a/test/Makefile.inc
+++ b/test/Makefile.inc
@@ -22,4 +22,6 @@  AM_LDFLAGS += -L$(LIB)
 @VALGRIND_CHECK_RULES@
 valgrind_tools = memcheck
 
-TESTS_ENVIRONMENT= ODP_PLATFORM=${with_platform} EXEEXT=${EXEEXT}
+TESTS_ENVIRONMENT = ODP_PLATFORM=${with_platform} \
+		    EXEEXT=${EXEEXT} \
+		    ODP_SYSCONFIG_FILE=none