selftest: bin/ is under $(builddir) instead of $(srcdir)
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Jan 2009 09:05:53 +0000 (10:05 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 21 Jan 2009 12:35:35 +0000 (13:35 +0100)
metze

selftest/selftest.pl

index 292a2d2dd6bb9139c2c86722a77ecf70e2c85754..fd0b85c9b017232c9bfb6f97f65589724ada8b40 100755 (executable)
@@ -443,9 +443,10 @@ my $testenv_default = "none";
 if ($opt_target eq "samba4") {
        $testenv_default = "member";
        require target::Samba4;
-       $target = new Samba4($opt_bindir or "$srcdir/bin", $ldap, "$srcdir/setup");
+       $target = new Samba4($opt_bindir or "$builddir/bin",
+                            $ldap, "$srcdir/setup", $exeext);
 } elsif ($opt_target eq "samba3") {
-       my $bindir = ($opt_bindir or "$srcdir/bin");
+       my $bindir = ($opt_bindir or "$builddir/bin");
        if ($opt_socket_wrapper and `$bindir/smbd -b | grep SOCKET_WRAPPER` eq "") {
                die("You must include --enable-socket-wrapper when compiling Samba in order to execute 'make test'.  Exiting....");
        }