summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-27 15:56:09 +0200
committerGünther Deschner <gd@samba.org>2010-04-27 16:42:16 +0200
commita2b8e28aef1799cac45809bfe38c9b0980aef68f (patch)
tree1d404550d25a5176357a8130dd6171386d5e3c82 /source4/torture
parentf44cec7b60f3b6449fe2844a1600438b7b13682c (diff)
downloadsamba-a2b8e28aef1799cac45809bfe38c9b0980aef68f.tar.gz
samba-a2b8e28aef1799cac45809bfe38c9b0980aef68f.tar.bz2
samba-a2b8e28aef1799cac45809bfe38c9b0980aef68f.zip
s4-smbtorture: upload the full cups driver, otherwise windows will not allow using it.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 6a8fe344d1..a0adff3696 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -6605,14 +6605,25 @@ struct torture_suite *torture_rpc_spoolss_printer(TALLOC_CTX *mem_ctx)
t = talloc_zero(mem_ctx, struct torture_printer_context);
- t->driver.info8.version = SPOOLSS_DRIVER_VERSION_200X;
- t->driver.info8.driver_name = TORTURE_DRIVER;
- t->driver.info8.architecture = "Windows NT x86";
- t->driver.info8.driver_path = "pscript5.dll";
- t->driver.info8.data_file = "cups6.ppd";
- t->driver.info8.config_file = "cupsui6.dll";
- t->driver.local.environment = "Windows NT x86";
- t->driver.local.driver_directory= "/usr/share/cups/drivers/i386";
+ t->driver.info8.version = SPOOLSS_DRIVER_VERSION_200X;
+ t->driver.info8.driver_name = TORTURE_DRIVER;
+ t->driver.info8.driver_path = "pscript5.dll";
+ t->driver.info8.data_file = "cups6.ppd";
+ t->driver.info8.config_file = "ps5ui.dll";
+ t->driver.info8.help_file = "pscript.hlp";
+ t->driver.info8.default_datatype = "RAW";
+ t->driver.info8.dependent_files = talloc_zero(t, struct spoolss_StringArray);
+ t->driver.info8.dependent_files->string = talloc_zero_array(t, const char *, 8 + 1);
+ t->driver.info8.dependent_files->string[0] = "pscript5.dll";
+ t->driver.info8.dependent_files->string[1] = "cups6.ppd";
+ t->driver.info8.dependent_files->string[2] = "ps5ui.dll";
+ t->driver.info8.dependent_files->string[3] = "pscript.hlp";
+ t->driver.info8.dependent_files->string[4] = "pscript.ntf";
+ t->driver.info8.dependent_files->string[5] = "cups6.ini";
+ t->driver.info8.dependent_files->string[6] = "cupsps6.dll";
+ t->driver.info8.dependent_files->string[7] = "cupsui6.dll";
+
+ t->driver.local.driver_directory= "/usr/share/cups/drivers";
t->info2.drivername = "Microsoft XPS Document Writer";
t->info2.portname = "LPT1:";