Launching make test with LDAP
To be able to override LDAP parameters to launch test suite, I need to patch Makefile:
diff --git a/Makefile b/Makefile
index fa2538f07..357fee831 100644
--- a/Makefile
+++ b/Makefile
@@ -128,9 +128,9 @@ TESTUSESSL=0
E2E_TESTS='portal/*.js'
# LDAP backend test
-LLNGTESTLDAP_SLAPD_BIN=/usr/sbin/slapd
-LLNGTESTLDAP_SLAPADD_BIN=/usr/sbin/slapdadd
-LLNGTESTLDAP_SCHEMA_DIR=/etc/slapd/schema
+#LLNGTESTLDAP_SLAPD_BIN=/usr/sbin/slapd
+#LLNGTESTLDAP_SLAPADD_BIN=/usr/sbin/slapdadd
+#LLNGTESTLDAP_SCHEMA_DIR=/etc/slapd/schema
# Other
SRCCOMMONDIR=lemonldap-ng-common
Then I am able to launch this command:
LLNGTESTLDAP=1 LLNGTESTLDAP_SLAPD_BIN=/usr/local/openldap/libexec/slapd LLNGTESTLDAP_SLAPADD_BIN=/usr/local/openldap/sbin/slapadd LLNGTESTLDAP_SCHEMA_DIR=/usr/local/openldap/etc/openldap/schema/ make test
Is there a better way to override Makefile vars?