Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:2.1:contribute [2019/08/17 20:58]
xguimard [Working Project]
documentation:2.1:contribute [2019/09/24 14:40] (current)
coudot [Working Project]
Line 90: Line 90:
 ===== Working Project ​ ===== ===== Working Project ​ =====
  
-  ## Launch unit tests:+==== Unit tests ==== 
 + 
 +Launch unit tests: 
 +<​code>​
   make test # or manager_test,​ portal_test,​ ... to launch unit tests   make test # or manager_test,​ portal_test,​ ... to launch unit tests
-  ## Same tests launched on a simulated install+</​code>​ 
 + 
 +Same tests launched on a simulated install 
 +<​code>​
   make autopkgtest # or autopkg_portal,​ autopkg_manager,​ ... to launch unit tests   make autopkgtest # or autopkg_portal,​ autopkg_manager,​ ... to launch unit tests
 +</​code>​
   ​   ​
-  ## Execute an unit test :+Execute an unit test : 
 +<​code>​
   # Building project   # Building project
   cd ~/​lemonldap-ng/;​ make   cd ~/​lemonldap-ng/;​ make
Line 102: Line 110:
   # and execute the unit test:   # and execute the unit test:
   prove -v t/​67-CheckUser.t   prove -v t/​67-CheckUser.t
-  ​ +</​code>​ 
-  ## Using local platform ​:+ 
 +Launch tests with LDAP backend, for example with OpenLDAP LTB package: 
 +<​code>​ 
 +make 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/​ test 
 +</​code>​ 
 + 
 +==== Other commands ==== 
 +<​code>​
   make start_web_server # TESTUSESSL=1 to enable SSL engine (only available for Apache)   make start_web_server # TESTUSESSL=1 to enable SSL engine (only available for Apache)
   make start_web_server TESTWEBSERVER=nginx # to use Nginx web server   make start_web_server TESTWEBSERVER=nginx # to use Nginx web server
Line 113: Line 128:
   make manifest # to update manifest   make manifest # to update manifest
   make tidy # to magnify perl files (perl best pratices)   make tidy # to magnify perl files (perl best pratices)
 +</​code>​