summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture/spoolss.py
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-14 07:25:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:52 -0500
commite3627c2c6eaf8b0ede0b014aacb3478d25faf1b8 (patch)
tree7be165a23d71007c83a13d4f5cf2720ce23a4167 /source4/scripting/swig/torture/spoolss.py
parent913d5df89e759d858bc7704b8aa50d63ce67a0c1 (diff)
downloadsamba-e3627c2c6eaf8b0ede0b014aacb3478d25faf1b8.tar.gz
samba-e3627c2c6eaf8b0ede0b014aacb3478d25faf1b8.tar.bz2
samba-e3627c2c6eaf8b0ede0b014aacb3478d25faf1b8.zip
r2965: Ignore *.pyc files in torture directory.
Allow test module name to be specified on command line for pytorture module. Start spoolss torture test. (This used to be commit 44bab84f765f6a4d37733a353fc6b74b09c1b39a)
Diffstat (limited to 'source4/scripting/swig/torture/spoolss.py')
-rw-r--r--source4/scripting/swig/torture/spoolss.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/source4/scripting/swig/torture/spoolss.py b/source4/scripting/swig/torture/spoolss.py
new file mode 100644
index 0000000000..78d573a7cd
--- /dev/null
+++ b/source4/scripting/swig/torture/spoolss.py
@@ -0,0 +1,24 @@
+import dcerpc
+
+def test_EnumPrinters(pipe):
+
+ r = {}
+ r['flags'] = 0x02
+ r['server'] = None
+ r['level'] = 1
+ r['buffer'] = 392 * '\x00'
+ r['buf_size'] = 392
+
+ result = dcerpc.spoolss_EnumPrinters(pipe, r)
+
+ print result
+
+def runtests(binding, domain, username, password):
+
+ print 'Testing SPOOLSS pipe'
+
+ pipe = dcerpc.pipe_connect(binding,
+ dcerpc.DCERPC_SPOOLSS_UUID, dcerpc.DCERPC_SPOOLSS_VERSION,
+ domain, username, password)
+
+ test_EnumPrinters(pipe)