24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02:00
xmpp.chapril.org-ejabberd/src
Mickael Remond a3a33bd5fc Allow running test groups independently
We need to be able to run only a few test groups, even if we do not have all
database backends installed and configured locally.

ejabberd test suite configures a specific host per backend. I changed ejabberd
to allow ignoring some hosts from config file on start, by providing the exact
list of hosts we want to start.

This is done by setting an ejabberd app Erlang environment variable 'hosts' and
passing the list of hosts we want to actually define.

When doing so, the backend specific hosts defined in ejabberd test configuration file
are simply ignored. As a result, we do not try to connect to unavailable backends.

I linked that part to CT run test by defining the hosts list based on environment variable
CT_BACKENDS. This variable is expected to be a comma separated list of available backends.

When Erlang Common Tests are run with that environment variable set, only the host matching
the name of the backend will be set, plus the default "localhost", common to many tests.

This can be combined with rebar ct groups list.

Example commands to run tests:
CT_BACKENDS=riak,mnesia rebar ct suites=ejabberd
CT_BACKENDS=mnesia rebar ct suites=ejabberd groups=mnesia
2016-03-24 10:02:13 +01:00
..
acl.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
adhoc.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
cyrsasl_anonymous.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
cyrsasl_digest.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
cyrsasl_oauth.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
cyrsasl_plain.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
cyrsasl_scram.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
cyrsasl.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_admin.erl New command delete_mnesia deletes all tables that can be exported 2016-03-21 16:19:06 +01:00
ejabberd_app.erl Start ezlib only if required, as it's optional (#1006) 2016-03-16 11:11:43 +01:00
ejabberd_auth_anonymous.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_auth_external.erl Fixed type specifications for 'rebar doc' 2016-03-07 15:06:19 +01:00
ejabberd_auth_internal.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_auth_ldap.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_auth_odbc.erl Update more SQL queries 2016-03-02 00:12:49 +03:00
ejabberd_auth_pam.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_auth_riak.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_auth.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_c2s_config.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_c2s.erl Fix issue #1015 2016-03-17 18:41:39 +01:00
ejabberd_captcha.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_cluster.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_commands_doc.erl Don't include empty line after java example 2016-02-25 12:14:17 +01:00
ejabberd_commands.erl Add a way to get all ejabberd_commands, not only those that was registered 2016-01-26 10:00:28 +01:00
ejabberd_config.erl Allow running test groups independently 2016-03-24 10:02:13 +01:00
ejabberd_ctl.erl Fix format_result so get_room_options command works again after aa5caa3 2016-02-17 20:43:35 +01:00
ejabberd_frontend_socket.erl Switch to fast_tls and update app names 2016-02-03 16:13:16 +01:00
ejabberd_hooks.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_http_bind.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_http_ws.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_http.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_idna.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_listener.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_local.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
ejabberd_logger.erl Lager to Elixir Logger bridge is now compliant with ejabberd loglevel set / get 2016-03-09 22:30:46 +01:00
ejabberd_node_groups.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_oauth.erl Remove compile warnings 2016-02-08 10:50:28 +01:00
ejabberd_odbc_sup.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_odbc.erl Do not auto append IP suffix to usernames (#1008) 2016-03-22 13:25:34 +03:00
ejabberd_piefxis.erl Fixed type specifications for 'rebar doc' 2016-03-07 15:06:19 +01:00
ejabberd_rdbms.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_receiver.erl Start ezlib only if required, as it's optional (#1006) 2016-03-16 11:11:43 +01:00
ejabberd_regexp.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_riak_sup.erl Keep alive Riak connections by default 2016-03-22 19:32:30 +03:00
ejabberd_riak.erl Fix is_connected/0 function 2016-03-22 20:01:23 +03:00
ejabberd_router_multicast.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_router.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
ejabberd_s2s_in.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_s2s_out.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_s2s.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
ejabberd_service.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
ejabberd_sm_mnesia.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_sm_odbc.erl Make it possible to define 'sm_db_type' per virtual host 2016-02-19 16:38:43 +03:00
ejabberd_sm_redis.erl Make it possible to define 'sm_db_type' per virtual host 2016-02-19 16:38:43 +03:00
ejabberd_sm.erl Experimental MIX (XEP-0369) support 2016-03-08 20:04:29 +03:00
ejabberd_socket.erl Switch to fast_tls and update app names 2016-02-03 16:13:16 +01:00
ejabberd_sql_pt.erl Raise an error when there are no fields to set in ?SQL_UPSERT 2016-03-02 00:12:49 +03:00
ejabberd_stun.erl Move to new dependencies for SIP and STUN 2016-02-03 11:26:14 +01:00
ejabberd_sup.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_system_monitor.erl Don't store watchdog notifications in MAM archives 2016-03-14 00:05:50 +01:00
ejabberd_tmp_sup.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_update.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_web_admin.erl Mark get_queue_length obsolete, and use count_offline_messages (#970) 2016-03-04 11:09:14 +01:00
ejabberd_web.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejabberd_websocket.erl Switch to fast_tls and update app names 2016-02-03 16:13:16 +01:00
ejabberd_xmlrpc.erl Fix format_result also in xmlrpc, after aa5caa3 (#982) 2016-03-07 17:34:08 +01:00
ejabberd.app.src.in Switch to rebar build tool 2013-06-13 11:11:02 +02:00
ejabberd.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
ejd2odbc.erl New command delete_mnesia deletes all tables that can be exported 2016-03-21 16:19:06 +01:00
eldap_filter_yecc.yrl Set dnAttributes on when it's requested by a filter 2014-07-29 15:22:54 -03:00
eldap_filter.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
eldap_pool.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
eldap_utils.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
eldap.erl cosmetic cleanup 2015-10-07 14:18:38 +02:00
ELDAPv3.asn1db Do not generate LDAP's ASN.1 code when compiling ejabberd. 2013-06-22 03:27:59 +10:00
ELDAPv3.erl Do not generate LDAP's ASN.1 code when compiling ejabberd. 2013-06-22 03:27:59 +10:00
elixir_logger_backend.erl Lager to Elixir Logger bridge is now compliant with ejabberd loglevel set / get 2016-03-09 22:30:46 +01:00
ext_mod.erl ext_mod: switch to fast_xml and remove old p1_logger reference 2016-03-03 15:46:15 +01:00
extauth.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
gen_iq_handler.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
gen_mod.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
gen_pubsub_node.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
gen_pubsub_nodetree.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
jd2ejd.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
jid.erl Add simple Elixir unit test on jid:from_string 2016-03-21 09:44:23 +01:00
jlib.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_adhoc.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_admin_extra.erl Improve ban_account command to work with other DBs than Mnesia (#977) 2016-03-21 18:30:05 +01:00
mod_announce.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_blocking.erl Update more SQL queries 2016-03-02 00:12:49 +03:00
mod_caps.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_carboncopy.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_client_state.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_configure.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_configure2.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_disco.erl XEP-0013: Flexible Offline Message Retrieval support 2016-02-09 17:59:54 +03:00
mod_echo.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_fail2ban.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_http_api.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_http_bind.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_http_fileserver.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_http_upload_quota.erl mod_http_upload: Also expand @HOST@ in 'docroot' 2016-02-20 20:13:30 +01:00
mod_http_upload.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_ip_blacklist.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_irc_connection.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_irc.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_last.erl Update mod_last SQL queries to the new API 2016-03-02 00:12:49 +03:00
mod_mam.erl mod_mam: Send new preferences when they are set 2016-02-10 23:06:31 +01:00
mod_metrics.erl Define opt_type required be ejabberd_config behaviour. 2016-03-04 11:45:18 +01:00
mod_mix.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_muc_admin.erl Remove remanants of pre-binary strings 2016-02-09 15:50:35 +01:00
mod_muc_log.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_muc_room.erl mod_muc_room: Let members see admin/owner JIDs 2016-02-11 22:52:27 +01:00
mod_muc.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_multicast.erl Fix Addresses element which lacked others local destinations 2016-03-14 12:53:14 +01:00
mod_offline.erl Mark get_queue_length obsolete, and use count_offline_messages (#970) 2016-03-04 11:09:14 +01:00
mod_ping.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_pres_counter.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_privacy.erl Update more SQL queries 2016-03-02 00:12:49 +03:00
mod_private.erl Update more SQL queries 2016-03-02 00:12:49 +03:00
mod_proxy65_lib.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_proxy65_service.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_proxy65_sm.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_proxy65_stream.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_proxy65.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_pubsub.erl Unregister route at the very end 2016-03-13 17:37:39 +03:00
mod_register_web.erl mod_register_web: Choose the right error messages 2016-02-29 00:39:57 +01:00
mod_register.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_roster.erl Missed a few calls in previous commits 2016-03-02 02:00:02 +03:00
mod_service_log.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_shared_roster_ldap.erl EJAB-1480: fix issue with retreiving user roster 2016-03-04 15:52:38 +03:00
mod_shared_roster.erl Fix section links to the Guide in the WebAdmin 2016-02-08 16:16:53 +01:00
mod_sic.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_sip_proxy.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_sip_registrar.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_sip.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_stats.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_time.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
mod_vcard_ldap.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_vcard_xupdate.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
mod_vcard.erl Make it possible to get virtual host of a registered route 2016-03-13 11:38:40 +03:00
mod_version.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_buddy.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_club.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_dag.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_dispatch.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_flat_odbc.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
node_flat.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_hometree_odbc.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_hometree.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_mb.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_mix_odbc.erl Add ODBC backend for MIX 2016-03-13 15:38:50 +03:00
node_mix.erl Experimental MIX (XEP-0369) support 2016-03-08 20:04:29 +03:00
node_online.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_pep_odbc.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_pep.erl Make caps warning less confusing (#955) 2016-02-23 14:14:24 +01:00
node_private.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
node_public.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
nodetree_dag.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
nodetree_tree_odbc.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
nodetree_tree.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
nodetree_virtual.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
odbc_queries.erl Update more SQL queries 2016-03-02 00:12:49 +03:00
prosody2ejabberd.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
pubsub_db_odbc.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
pubsub_index.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
pubsub_migrate.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
pubsub_subscription_odbc.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
pubsub_subscription.erl Switch to Fast XML module 2016-02-03 19:03:17 +01:00
randoms.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
scram.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
shaper.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
str.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
translate.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00
win32_dns.erl Update copyright to 2016 (#901) 2016-01-13 12:29:14 +01:00