svn commit: samba r8217 - in branches/SAMBA_4_0/testprogs/ejs: .

tridge at samba.org tridge at samba.org
Fri Jul 8 04:08:18 GMT 2005


Author: tridge
Date: 2005-07-08 04:08:17 +0000 (Fri, 08 Jul 2005)
New Revision: 8217

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8217

Log:
added testing of echo_TestSleep() and echo_TestEnum() in echo js code

Modified:
   branches/SAMBA_4_0/testprogs/ejs/echo.js


Changeset:
Modified: branches/SAMBA_4_0/testprogs/ejs/echo.js
===================================================================
--- branches/SAMBA_4_0/testprogs/ejs/echo.js	2005-07-08 04:07:26 UTC (rev 8216)
+++ branches/SAMBA_4_0/testprogs/ejs/echo.js	2005-07-08 04:08:17 UTC (rev 8217)
@@ -152,7 +152,44 @@
 	}
 }
 
+/*
+  test the echo_TestSleep interface
+*/
+function test_TestSleep(conn)
+{
+	var io = irpcObj();
 
+	print("Testing echo_TestSleep\n");
+
+	io.input.seconds = 1;
+	status = dcerpc_echo_TestSleep(conn, io);
+	check_status_ok(status);
+}
+
+/*
+  test the echo_TestEnum interface
+*/
+function test_TestEnum(conn)
+{
+	var io = irpcObj();
+
+	print("Testing echo_TestEnum\n");
+
+	io.input.foo1 = 1;
+	io.input.foo2 = new Object();
+	io.input.foo2.e1 = 1;
+	io.input.foo2.e2 = 1;
+	io.input.foo3 = new Object();
+	io.input.foo3.e1 = 2;
+	status = dcerpc_echo_TestEnum(conn, io);
+	check_status_ok(status);
+	assert(io.output.foo1    == 1);
+	assert(io.output.foo2.e1 == 2);
+	assert(io.output.foo2.e2 == 1);
+	assert(io.output.foo3.e1 == 2);
+}
+
+
 if (ARGV.length == 0) {
    print("Usage: echo.js <RPCBINDING>\n");
    exit(0);
@@ -174,5 +211,7 @@
 test_SourceData(conn);
 test_TestCall(conn);
 test_TestCall2(conn);
+test_TestSleep(conn);
+test_TestEnum(conn);
 
 print("All OK\n");



More information about the samba-cvs mailing list