File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 6
6
use PostgreSQL::Test::Utils;
7
7
use PostgreSQL::Test::Cluster;
8
8
use Test::More;
9
+ use Config;
9
10
10
- if ($ENV {with_ldap } ne ' yes' )
11
- {
12
- plan skip_all => ' LDAP not supported by this build' ;
13
- }
14
11
15
12
my ($slapd , $ldap_bin_dir , $ldap_schema_dir );
16
13
17
14
$ldap_bin_dir = undef ; # usually in PATH
18
15
19
- if ($^O eq ' darwin' && -d ' /usr/local/opt/openldap' )
16
+ if ($ENV {with_ldap } ne ' yes' )
17
+ {
18
+ plan skip_all => ' LDAP not supported by this build' ;
19
+ }
20
+ elsif ($^O eq ' darwin' && -d ' /usr/local/opt/openldap' )
20
21
{
21
22
# typical paths for Homebrew
22
23
$slapd = ' /usr/local/opt/openldap/libexec/slapd' ;
39
40
$slapd = ' /usr/local/libexec/slapd' ;
40
41
$ldap_schema_dir = ' /usr/local/etc/openldap/schema' ;
41
42
}
43
+ else
44
+ {
45
+ plan skip_all => " ldap tests not supported on $^O or dependencies not installed" ;
46
+ }
42
47
43
48
# make your own edits here
44
49
# $slapd = '';
You can’t perform that action at this time.
0 commit comments