Commit 618f20da authored by VERDIN David's avatar VERDIN David

Including stub to libraries, so Constants.pm is found. Adding Sympa constants...

Including stub to libraries, so Constants.pm is found. Adding Sympa constants because most of them are needed when using
 Sympa libraries. Specifying the sources 'default' directory for 'DEFAULTDIR' constant to allow access to distributed templates.
parent 92fe806c
......@@ -12,6 +12,7 @@ use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove);
use FindBin qw($Bin);
use lib "$Bin/../src/lib";
use lib 't/stub';
use Test::More;
......
......@@ -6,7 +6,35 @@
package Sympa::Constants;
use constant LOCALEDIR => 't/locale';
use constant VERSION => '6.2.52';
use constant USER => [getpwuid $<]->[0];
use constant GROUP => [getgrgid $(]->[0];
use constant CONFIG => 't/tmp/etc/sympa.conf';
use constant WWSCONFIG => 't/tmp/etc/wwsympa.conf';
use constant SENDMAIL_ALIASES => 't/tmp/etc/mail/sympa_aliases';
use constant PIDDIR => 't/tmp';
use constant EXPLDIR => 't/tmp/list_data';
use constant SPOOLDIR => 't/tmp/spool';
use constant SYSCONFDIR => 't/tmp/etc';
use constant LOCALEDIR => 't/locale';
use constant LIBEXECDIR => 't/tmp/bin';
use constant SBINDIR => 't/tmp/bin';
use constant SCRIPTDIR => 't/tmp/bin';
use constant MODULEDIR => 't/tmp/bin';
use constant DEFAULTDIR => 'default';
use constant ARCDIR => 't/tmp/arc';
use constant BOUNCEDIR => 't/tmp/bounce';
use constant EXECCGIDIR => 't/tmp/bin';
use constant STATICDIR => 't/tmp/static_content';
use constant CSSDIR => 't/tmp/static_content/css';
use constant PICTURESDIR => 't/tmp/static_content/pictures';
use constant EMAIL_LEN => 100;
use constant FAMILY_LEN => 50;
use constant LIST_LEN => 50;
use constant ROBOT_LEN => 80;
1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment