s4-smbtorture: Make test names lowercase and dot-separated.
[metze/samba/wip.git] / source4 / torture / local / torture.c
index 17d83456d590672e32726c78c7fecc881864309a..0eb69a5db89eb2289bb9e8e1b44bf0f152f5726d 100644 (file)
@@ -20,9 +20,7 @@
 */
 
 #include "includes.h"
-#include "torture/torture.h"
 #include "system/wait.h"
-#include "lib/events/events.h"
 #include "libcli/raw/libcliraw.h"
 #include "torture/util.h"
 #include "param/provision.h"
@@ -43,7 +41,7 @@ static bool test_tempdir(struct torture_context *tctx)
 static bool test_provision(struct torture_context *tctx)
 {
        NTSTATUS status;
-       struct provision_settings *settings = talloc(tctx, struct provision_settings);
+       struct provision_settings *settings = talloc_zero(tctx, struct provision_settings);
        struct provision_result result;
        char *targetdir = NULL;
 
@@ -51,7 +49,6 @@ static bool test_provision(struct torture_context *tctx)
                                   "torture_temp_dir should return NT_STATUS_OK" );
        settings->targetdir = talloc_steal(settings, targetdir);
 
-       settings->dns_name = "example.com";
        settings->site_name = "SOME-SITE-NAME";
        settings->root_dn_str = "DC=EXAMPLE,DC=COM";
        settings->domain_dn_str = "DC=EXAMPLE,DC=COM";
@@ -61,7 +58,7 @@ static bool test_provision(struct torture_context *tctx)
        settings->netbios_name = "FOO";
        settings->realm = "EXAMPLE.COM";
        settings->domain = "EXAMPLE";
-       settings->ntds_guid = NULL;
+       settings->netbios_name = "torture";
        settings->ntds_dn_str = NULL;
        settings->machine_password = "geheim";
 
@@ -77,8 +74,7 @@ static bool test_provision(struct torture_context *tctx)
 
 struct torture_suite *torture_local_torture(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(mem_ctx, 
-                                                                                                          "TORTURE");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "torture");
 
        torture_suite_add_simple_test(suite, "tempdir", test_tempdir);
        torture_suite_add_simple_test(suite, "provision", test_provision);