25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Better certfile location detection by the test suite

This commit is contained in:
Evgeniy Khramtsov 2013-06-15 01:23:57 +10:00 committed by Alexey Shchepin
parent 2f7d27677e
commit c9efdf6167
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,8 @@ init_per_suite(Config) ->
SASLPath = filename:join([PrivDir, "sasl.log"]),
MnesiaDir = filename:join([PrivDir, "mnesia"]),
CertFile = filename:join([DataDir, "cert.pem"]),
{ok, CWD} = file:get_cwd(),
{ok, _} = file:copy(CertFile, filename:join([CWD, "cert.pem"])),
application:set_env(ejabberd, config, ConfigPath),
application:set_env(ejabberd, log_path, LogPath),
application:set_env(sasl, sasl_error_logger, {file, SASLPath}),

View File

@ -1,6 +1,6 @@
{loglevel, 4}.
{hosts, ["localhost"]}.
{define_macro, 'CERTFILE', "../../test/ejabberd_SUITE_data/cert.pem"}.
{define_macro, 'CERTFILE', "cert.pem"}.
{listen,
[
{5222, ejabberd_c2s, [