summaryrefslogtreecommitdiff
path: root/selftest/target
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-02-18 00:48:58 +0100
committerGünther Deschner <gd@samba.org>2010-02-18 02:27:04 +0100
commit34ad5da5cd5b891c2aa18d06cbb1023e8b5c5ddc (patch)
treeee48da2445db3554d924c842d4681473a5a3ce03 /selftest/target
parent43e3d8f51da4bbdb3108af45e2fddab7e2e91f04 (diff)
downloadsamba-34ad5da5cd5b891c2aa18d06cbb1023e8b5c5ddc.tar.gz
samba-34ad5da5cd5b891c2aa18d06cbb1023e8b5c5ddc.tar.bz2
samba-34ad5da5cd5b891c2aa18d06cbb1023e8b5c5ddc.zip
s3-selftest: include addprinter/deleteprinter command.
Guenther
Diffstat (limited to 'selftest/target')
-rw-r--r--selftest/target/Samba3.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 0e1602231a..c3f696a99d 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -436,6 +436,8 @@ sub provision($$$$$$)
my $nss_wrapper_passwd = "$privatedir/passwd";
my $nss_wrapper_group = "$privatedir/group";
+ my $mod_printer_pl = "$ENV{PERL} $RealBin/../source3/script/tests/printing/modprinter.pl";
+
open(CONF, ">$conffile") or die("Unable to open $conffile");
print CONF "
[global]
@@ -469,6 +471,9 @@ sub provision($$$$$$)
delete group script = $nss_wrapper_pl --group_path $nss_wrapper_group --type group --action delete --name %g
delete user from group script = $nss_wrapper_pl --passwd_path $nss_wrapper_passwd --type member --action delete --member %u --name %g --group_path $nss_wrapper_group
+ addprinter command = $mod_printer_pl -a -s $conffile --
+ deleteprinter command = $mod_printer_pl -d -s $conffile --
+
kernel oplocks = no
kernel change notify = no