summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-23 02:49:42 +0200
committerGünther Deschner <gd@samba.org>2010-04-23 02:49:42 +0200
commit20133cfe560f2bd84b5c2ebab9dc25b0c98efeb9 (patch)
tree112a49f5869280c62986fec32c355e29902c2ae8 /source4/torture/rpc
parent413ffe9adb8eea488133da0249dcb2eca08fd69d (diff)
downloadsamba-20133cfe560f2bd84b5c2ebab9dc25b0c98efeb9.tar.gz
samba-20133cfe560f2bd84b5c2ebab9dc25b0c98efeb9.tar.bz2
samba-20133cfe560f2bd84b5c2ebab9dc25b0c98efeb9.zip
s4-smbtorture: samba currently supports level 3 and 6 driver adds.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index c046f1849c..fbcdc156a5 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -7307,6 +7307,18 @@ static bool test_add_driver_arg(struct torture_context *tctx,
for (i=0; i < ARRAY_SIZE(levels); i++) {
+ if (torture_setting_bool(tctx, "samba3", false)) {
+ switch (levels[i]) {
+ case 2:
+ case 4:
+ case 8:
+ torture_comment(tctx, "skipping level %d against samba\n", levels[i]);
+ continue;
+ default:
+ break;
+ }
+ }
+
torture_comment(tctx,
"Testing PrinterDriver%s '%s' add & delete level %d\n",
d->ex ? "Ex" : "", info8.driver_name, levels[i]);
@@ -7320,6 +7332,19 @@ static bool test_add_driver_arg(struct torture_context *tctx,
for (i=0; i < ARRAY_SIZE(levels); i++) {
+ if (torture_setting_bool(tctx, "samba3", false)) {
+ switch (levels[i]) {
+ case 2:
+ case 4:
+ case 8:
+ torture_comment(tctx, "skipping level %d against samba\n", levels[i]);
+ continue;
+ default:
+ break;
+ }
+ }
+
+
torture_comment(tctx,
"Testing PrinterDriver%s '%s' add & delete level %d (full unc paths)\n",
d->ex ? "Ex" : "", info8.driver_name, levels[i]);