summaryrefslogtreecommitdiff
path: root/source3/script/tests/printing
AgeCommit message (Collapse)AuthorFilesLines
2024-07-23s3:tests: let modprinter.pl use $TMPDIRStefan Metzmacher1-1/+5
We should avoid using /tmp in selftest Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 23 13:53:13 UTC 2024 on atb-devel-224
2023-07-03tests: Enable a few tests for FreeBSDVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2022-05-02s3:tests: Reformat printing_var_exp_lpr_cmd.shAndreas Schneider1-2/+2
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-03-18s3: tests: Change logfile for printing expansion tests.Jeremy Allison1-1/+1
logfile=/tmp/$USER_printing_var_exp.log -> logfile="${SELFTEST_TMPDIR}/${USER}_printing_var_exp.log" Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Mar 18 02:57:08 UTC 2021 on sn-devel-184
2021-03-16selftest: fix cleanup of test_printing_var_exp.shRalph Boehme1-2/+4
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14668 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 16 22:08:10 UTC 2021 on sn-devel-184
2021-03-11selftest: add a test for %U variable expansion in spoolssdRalph Boehme1-0/+7
This targets the nt4_dc testenv which luckily already runs with spoolssd enabled. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14668 MR: https://gitlab.com/samba-team/samba/-/merge_requests/1834 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-12-19s3:script: Try to fix a Perl warningAndreas Schneider1-1/+1
Scalar value @ENV{"BASH_ENV"} better written as $ENV{"BASH_ENV"} at /tmp/samba-testbase/b23/samba-ad-dc-1/source3/script/tests/printing/modprinter.pl line 134. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-03-21s3:script: Fix running cp in modprinter.plAndreas Schneider1-0/+2
We need to unset BASH_ENV or we get: Insecure $ENV{BASH_ENV} while running setgid Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Mar 21 16:41:33 UTC 2019 on sn-devel-144
2017-08-24s3:script: Untaint user supplied data in modprinter.plAndreas Schneider1-3/+12
spoolss_SetPrinter fails because of the error produced by modprinter.pl. Perl error: Insecure dependency in open while running setgid at modprinter.pl line 76. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12950 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2010-02-18s3-selftest: fix return code for modprinter.pl -a.Günther Deschner1-1/+2
Background is: the SetPrinter level 2 calls "addprinter command" an fails if a share already existed (and the addprinter command returned a non-0 return code). Removing the non-0 return code is fine, as in AddPrinter{Ex}, we have checks to see if a share already exists before calling out the addprinter command. Maybe one day, we need to have a "changeprinter command"... Guenther
2010-02-18s3-selftest: include addprinter/deleteprinter command.Günther Deschner1-0/+128
Guenther