summaryrefslogtreecommitdiff
path: root/selftest/target
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-30 23:39:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-02 01:00:13 +0200
commit45125a459ab39b973de6536e1ffe4de63eb33170 (patch)
tree092a8f7f5d00dd65e0bc203da164caa4545d1da8 /selftest/target
parentc65bc4aa92ccc3f202abec3e882493ca828b1967 (diff)
downloadsamba-45125a459ab39b973de6536e1ffe4de63eb33170.tar.gz
samba-45125a459ab39b973de6536e1ffe4de63eb33170.tar.bz2
samba-45125a459ab39b973de6536e1ffe4de63eb33170.zip
selftest: add hooks required for printing to Samba4.pm
Diffstat (limited to 'selftest/target')
-rw-r--r--selftest/target/Samba4.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index c566e76838..3be0714f98 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -1269,6 +1269,9 @@ sub provision_plugin_s4_dc($$)
my $prefix_abs = abs_path($prefix);
+ my $bindir_abs = abs_path($self->{bindir});
+ my $lockdir="$prefix_abs/lockdir";
+
my $extra_smbconf_options = "
server services = -smb +s3fs
xattr_tdb:file = $prefix_abs/statedir/xattr.tdb
@@ -1296,6 +1299,19 @@ sub provision_plugin_s4_dc($$)
vfs objects = acl_xattr xattr_tdb streams_depot
dcerpc endpoint servers = -winreg
+
+ printcap name = /dev/null
+
+ printing = vlp
+ print command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb print %p %s
+ lpq command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb lpq %p
+ lp rm command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb lprm %p %j
+ lp pause command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb lppause %p %j
+ lp resume command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb lpresume %p %j
+ queue pause command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb queuepause %p
+ queue resume command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb queueresume %p
+ lpq cache time = 0
+
";
my $extra_smbconf_shares = "