svn commit: samba r11091 - in branches/SAMBA_4_0/source/torture: .
nbt
metze at samba.org
metze at samba.org
Sat Oct 15 12:30:09 GMT 2005
Author: metze
Date: 2005-10-15 12:30:08 +0000 (Sat, 15 Oct 2005)
New Revision: 11091
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11091
Log:
add a NBT-WINSREPLICATION-QUICK test that passed the current samba4 server
metze
Modified:
branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
branches/SAMBA_4_0/source/torture/torture.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
===================================================================
--- branches/SAMBA_4_0/source/torture/nbt/winsreplication.c 2005-10-15 12:23:33 UTC (rev 11090)
+++ branches/SAMBA_4_0/source/torture/nbt/winsreplication.c 2005-10-15 12:30:08 UTC (rev 11091)
@@ -1487,6 +1487,36 @@
/*
test WINS replication operations
*/
+BOOL torture_nbt_winsreplication_quick(void)
+{
+ const char *address;
+ struct nbt_name name;
+ TALLOC_CTX *mem_ctx = talloc_new(NULL);
+ NTSTATUS status;
+ BOOL ret = True;
+
+ make_nbt_name_server(&name, lp_parm_string(-1, "torture", "host"));
+
+ /* do an initial name resolution to find its IP */
+ status = resolve_name(&name, mem_ctx, &address, NULL);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Failed to resolve %s - %s\n",
+ name.name, nt_errstr(status));
+ talloc_free(mem_ctx);
+ return False;
+ }
+
+ ret &= test_assoc_ctx1(mem_ctx, address);
+ ret &= test_assoc_ctx2(mem_ctx, address);
+
+ talloc_free(mem_ctx);
+
+ return ret;
+}
+
+/*
+ test WINS replication operations
+*/
BOOL torture_nbt_winsreplication(void)
{
const char *address;
Modified: branches/SAMBA_4_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_4_0/source/torture/torture.c 2005-10-15 12:23:33 UTC (rev 11090)
+++ branches/SAMBA_4_0/source/torture/torture.c 2005-10-15 12:30:08 UTC (rev 11091)
@@ -2340,8 +2340,9 @@
/* nbt tests */
{"NBT-REGISTER", torture_nbt_register, 0},
{"NBT-WINS", torture_nbt_wins, 0},
+ {"NBT-DGRAM", torture_nbt_dgram, 0},
+ {"NBT-WINSREPLICATION-QUICK", torture_nbt_winsreplication_quick, 0},
{"NBT-WINSREPLICATION", torture_nbt_winsreplication, 0},
- {"NBT-DGRAM", torture_nbt_dgram, 0},
/* libnet tests */
{"NET-USERINFO", torture_userinfo, 0},
More information about the samba-cvs
mailing list