TODO... selftest: add Samba34 target
[metze/samba/wip.git] / selftest / selftest.pl
index ef4c385d33fd0a53713af5af48fb7073830367e7..82be64124ad534f29a6c9c5ff5b06cef29f85772 100755 (executable)
@@ -465,6 +465,13 @@ if ($opt_target eq "samba4") {
        $testenv_default = "member";
        require target::Samba3;
        $target = new Samba3($bindir);
+} elsif ($opt_target eq "samba34") {
+       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....");
+       }
+       $testenv_default = "franky_dc";
+       require target::Samba34;
+       $target = new Samba34($bindir);
 } elsif ($opt_target eq "win") {
        die("Windows tests will not run with socket wrapper enabled.") 
                if ($opt_socket_wrapper);