s4-smbtorture: samba currently supports level 3 and 6 driver adds.
authorGünther Deschner <gd@samba.org>
Fri, 23 Apr 2010 00:49:42 +0000 (02:49 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 23 Apr 2010 00:49:42 +0000 (02:49 +0200)
Guenther

source4/torture/rpc/spoolss.c

index c046f1849cc279ecb97cd505de8ecbbed8b1dc8f..fbcdc156a549b119e40563dafa651b77eaa4508c 100644 (file)
@@ -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]);