summaryrefslogtreecommitdiff
path: root/selftest/selftesthelpers.py
Commit message (Collapse)AuthorAgeFilesLines
* s3: tests: Add regression test for smbd crash on share force group change ↵Jeremy Allison2019-02-211-0/+1
| | | | | | | | | | | | with existing connection. Mark as known fail for now. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13690 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 7b21b4c1f538650f23ec77fb3c02fe1e224d89aa)
* selftest: Actually run python3 tests during the selftestAndrew Bartlett2017-05-201-1/+1
| | | | | | | | | | | These previously only ran if the develper was using EXTRA_PYTHON in their OS environment Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat May 20 02:26:33 CEST 2017 on sn-devel-144
* python: selftest: Add possibility to run old Python test suites with Python 3Lumir Balhar2017-03-101-2/+2
| | | | | | | | | Add possibility to execute old Python test suites with Python 3 and enable tests with Python 3 of ported samba.gensec module. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest/selftesthelpers.py: let plantestsuite() use the env name in the ↵Stefan Metzmacher2017-01-101-1/+5
| | | | | | | test name Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* python: selftesthelpers: Add possibility for planning tests forLumir Balhar2016-12-011-1/+6
| | | | | | | | | | | | | 'extra_python' (Python 3). This change allows us to mark modules which are Python 3 compatible with the keyword argument `py3_compatible`. Then, if building with Python 3 is configured using --extra-python, `planpythontestsuite` will plan an extra Python test for each marked module. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* seltest: add test for "ignore system acls" in vfs_acl_xattr.Uri Simchoni2016-03-241-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11806 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: test access based share enum parameterUri Simchoni2016-03-021-0/+1
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=8093 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Wed Mar 2 23:51:56 CET 2016 on sn-devel-144
* selftest: add a helper for the smbget binaryChristian Ambach2016-02-261-0/+1
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: add disk-free and quota tests based on fake_dfq VFS moduleUri Simchoni2016-01-261-0/+1
| | | | | | | | | | | | These tests use the vfs_fake_dfq module to simulate some relations between the quota status and disk-free status. The tests will become meaningful when we take the code that does those calculations out of the VFS layer - the tests will then exercise the server code. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* selftest: Remove binary mappings from the build system.Adrian Cochrane2015-06-081-13/+0
| | | | | | Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: Apply rename filepath arguments so binary mapping doesn't have to.Adrian Cochrane2015-06-081-3/+3
| | | | | | Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: add snapshot share configurationDavid Disseldorp2015-03-311-0/+1
| | | | | | | | | | | | | Define a share that uses both vfs_shell_snap and fake_snap.pl to create, delete and expose fake snapshots in response to FSRVP requests. Additionally test snapshot enumeration and access via the shadow_copy2 module. Allow for simple testing of FSRVP message sequence timeouts, by specifying an artificially small interval. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Add basic tap2subunit converter, rather than relying on the one from ↵Jelmer Vernooij2015-03-061-23/+5
| | | | | | | | subunit-tools. Change-Id: I39ec5ec68c7c3c9d329d8f1a8ce01445b85c7ab8 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use samba.subunit.run to run subunit tests.Jelmer Vernooij2015-03-061-14/+1
| | | | | | Change-Id: Id9bdd33b7ac5e4db40ab8bef4dbe0f04c36d8da7 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Be consistent about what functions add $LISTOPT and $LOADLIST to the ↵Jelmer Vernooij2014-11-301-4/+6
| | | | | | | | | | | command-line. Change-Id: Ife86624b53a99d48ce9f00d146b14f798c9bdb24 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sun Nov 30 16:43:52 CET 2014 on sn-devel-104
* selftest: Add separate command line for listing tests, allowing us of ↵Jelmer Vernooij2014-11-301-4/+15
| | | | | | | | subunit-filter (which doesn't support subunit v2). Change-Id: Icb877214a422c63fd38ef92425c7b4fe7ee19ad5 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Re-use add_prefix function.Jelmer Vernooij2014-11-301-7/+1
| | | | | | Change-Id: I6e91bc9fc6714c147427e920ca0e3e22cb9a076b Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Drop support for TESTSUITE-IDLIST, and remove its last user.Jelmer Vernooij2014-11-301-15/+2
| | | | | | Change-Id: Ic616676bb770fa4769195d73c4309915646caae0 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Include mimeparse, which is used by subunit/testtools.Jelmer Vernooij2014-11-221-3/+7
| | | | | | | | | Change-Id: I984c82acc0bc82a165e8ea17d8948c465c786905 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Nov 22 04:44:11 CET 2014 on sn-devel-104
* filter-subunit: Drop support for allow_empty_output hack.Jelmer Vernooij2014-10-141-6/+2
| | | | | | | | | Change-Id: If4f336ef770202dcf69484b9bccc6c0c80bd5f9b Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Oct 14 09:06:05 CEST 2014 on sn-devel-104
* Remove remaining instance of pep8 E211 (too many spaces before operator).Jelmer Vernooij2014-10-141-1/+0
| | | | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Change-Id: I9af3bf582bba8fc1094addb12cd0a5ce04406b5b
* selftest: Remove print_smbtorture4_version and smbtorture4_possible checkAndrew Bartlett2014-03-261-15/+0
| | | | | | | | | | | | | smbtorture is now always the same version as the rest of Samba, and is strictly required. Andrew Bartlett Change-Id: I89d9c52275477177fa8a89050920ff8a2fec9288 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Mar 26 04:20:16 CET 2014 on sn-devel-104
* source3.selftest: Move last variables to selftesthelpers.Jelmer Vernooij2012-10-271-0/+5
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Oct 27 19:08:42 CEST 2012 on sn-devel-104
* source3.selftest: Move more variables to be in common.Jelmer Vernooij2012-10-271-0/+10
|
* selftesthelpers: Fix detection of tap2subunit.Jelmer Vernooij2012-10-271-2/+8
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Oct 27 16:57:49 CEST 2012 on sn-devel-104
* selftesthelpers: Simplify detection of tap2subunit.Jelmer Vernooij2012-10-271-4/+6
|
* selftesthelpers: Add function for printing smbtorture4 version.Jelmer Vernooij2012-10-271-1/+11
|
* selftest: Move determining of smbtorture4 options to selftesthelpers.Jelmer Vernooij2012-10-271-12/+18
|
* selftest/selftesthelpers: Share environment handling for extra smbtorture ↵Jelmer Vernooij2012-10-271-0/+11
| | | | options.
* selftest/selftesthelpers.py: Share configuration variable, strip whitespace.Jelmer Vernooij2012-10-271-0/+2
|
* selftesthelpers: Share code for listing smbtorture4 tests.Jelmer Vernooij2012-10-271-0/+13
|
* selftest: Move more tests to common list script.Jelmer Vernooij2012-10-121-0/+6
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Fri Oct 12 02:06:42 CEST 2012 on sn-devel-104
* selftest: Place the test environment at the end of the failure linesAndrew Bartlett2012-04-271-5/+5
| | | | | | | This allows a knownfail entry to be added for only one environment, rather than all environments. Andrew Bartlett
* selftest: Remove unused support for --exeextAndrew Bartlett2012-02-011-1/+1
|
* selftesthelpers: write warnings to stderr rather than stdout.Jelmer Vernooij2011-11-301-2/+3
|
* selftesthelpers: Revert perl changes, add comment on why the original code ↵Jelmer Vernooij2011-11-141-3/+4
| | | | was necessary.
* selftesthelpers: Cope with empty binary mappings list, simplify handling of ↵Jelmer Vernooij2011-11-141-5/+7
| | | | perl.
* selftest/selftesthelpers.py: construct a fullname with env in ↵Stefan Metzmacher2011-11-141-1/+5
| | | | | | | | plantestsuite_idlist() Like we already do for plantestsuite_loadlist() metze
* selftest: planpythontestsuite() should fill 'name' is it's NoneStefan Metzmacher2011-11-141-0/+2
| | | | | | Otherwise make test shows tests with name "None". metze
* selftesthelpers: Fix syntax error.Jelmer Vernooij2011-11-101-1/+1
|
* selftest: Allow passing arbitrary number of additional python path values.Jelmer Vernooij2011-11-101-4/+2
|
* selftest: re-implement directory option for planpythontestsuite.Jelmer Vernooij2011-11-101-7/+11
|
* Revert "test: added directory option to planpythontestsuite()"Jelmer Vernooij2011-11-101-12/+5
| | | | | | This reverts commit b0be72d5080aed3da3f33a45b72f88e90fbe3d13. I'll add an alternative that uses subunit.run.
* test: added directory option to planpythontestsuite()Andrew Tridgell2011-11-101-5/+12
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* selftest: Start using the binary mapping at the python layer as wellAndrew Bartlett2011-04-161-0/+10
|
* selftest: Remove duplication between BUILDIR and BINDIRAndrew Bartlett2011-04-161-1/+1
| | | | | | Just have BINDIR, and have it default to ./bin Andrew Bartlett
* selftest: Provide a single bindir_path function across all targetsAndrew Bartlett2011-04-161-2/+2
| | | | | | | This will allow a mapping to be made between things like smbtorture4 -> smbtorture that is correct for the different build environments. Andrew Bartlett
* selftest split $PERL into multiple arguments for Test::More checkAndrew Bartlett2011-02-221-2/+3
|
* selftest move selftesthelpers to a top level helper scriptAndrew Bartlett2011-02-221-0/+156