Joe Guo
a19d5bd771
PY3: change shebang to python3 in source4/scripting/bin dir
...
Samba default python is 3 now.
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
2018-12-14 14:40:20 +01:00
Jelmer Vernooij
4dae2d6af8
subunitrun: Update instructions for running subunit tests.
...
Change-Id: Icaf472198e93e283db2ae6ed99fd7ceae037af87
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-03-06 04:41:46 +01:00
Jelmer Vernooij
0f408599f8
selftest: Add separate command line for listing tests, allowing us of 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>
2014-11-30 14:22:05 +01:00
Jelmer Vernooij
ee281c61d0
Move option handling into samba.tests.subunitrun.
...
Change-Id: I65a73b74854af636413f4f284147f3bcf28b6f82
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-11-22 02:23:10 +01:00
Jelmer Vernooij
24035a6b3e
Move option parsing to samba.tests.subunitrun.
...
Change-Id: I2939c1b6ebb9739530efa9bc4667668cff7a7aeb
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-11-22 02:23:10 +01:00
Jelmer Vernooij
ed4c07b34b
subunitrun: Use new samba.tests.subunitrun module.
...
Change-Id: Ie32f16d72c80c831adfd9a8d32735fa348962123
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-11-22 02:23:10 +01:00
Jelmer Vernooij
87afc3aee1
Move python modules from source4/scripting/python/ to python/.
...
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
2013-03-02 03:57:34 +01:00
Jelmer Vernooij
fa332b71dc
s4-python: Override SIGINT handler in scripts only.
...
Override the SIGINT handler in a few select cases only, rather than
doing so in one of the samba Python modules. I've done this where it
matters most; we can add this code to other scripts too if necessary.
This means that importing the 'samba' module from a third party
application does not have side-effects on the state of the signal
handlers.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9068
2012-09-25 20:59:09 +02:00
Jelmer Vernooij
f0117237fa
Fix default value for subunitrun --list.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov 14 17:27:03 CET 2011 on sn-devel-104
2011-11-14 17:27:02 +01:00
Jelmer Vernooij
11a77fe2d7
subunitrun: Don't load smb.conf when just listing tests.
2011-11-14 15:49:36 +01:00
Jelmer Vernooij
ad40581142
subunitrun: Add notes about subunitrun being deprecated.
2011-11-10 23:37:04 +01:00
Jelmer Vernooij
ae88d7390b
Revert "test: added -D option to subunitrun"
...
This reverts commit ac0bba2ea18e2e9ac578a333a3b260951e4c976e.
"python -m subunit.run" is the preferred way of running tests to
generate subunit. I also don't want to move too far away from
the standard test running infrastructure for python so that
other test runners (nosetests, trial, tribunal, ...) can be used with
Samba code.
2011-11-10 23:37:04 +01:00
Andrew Tridgell
ac0bba2ea1
test: added -D option to subunitrun
...
this allows for:
subunitrun -D lib/ldb/tests/python api
which makes this easier for developers
2011-11-10 14:24:21 +11:00
Andrew Tridgell
43e5592e9a
subunitrun: give more useful help
...
give some examples and more useful description for subunitrun command
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-10-20 04:23:07 +02:00
Jelmer Vernooij
10441ed83d
subunitrun: Use unittest.TestProgram if subunit.TestProgram is not
...
available.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec 10 03:49:03 CET 2010 on sn-devel-104
2010-12-10 03:49:03 +01:00
Jelmer Vernooij
636d8cfb42
s4-python: Add convenience function for forcibly importing bundled
...
package.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
bdf5a49cec
subunitrun: Extend hack to cope with older system subunit run installs.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
b1daa50293
subunitrun: Remove global subunit module when reimporting from a
...
different location.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
4571b94e7b
s4-python: Split up ensure_external_module.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
069ff146cb
subunitrun: Support --list.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
51058213cb
s4-test: Use smb.conf path set in environment rather than using
...
command-line options.
This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
46037a8160
Remove unused version options for subunitrun.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
132e505d1e
subunitrun: Find testtools and subunit when they're not provided by the
...
system.
2010-04-01 14:47:54 +02:00
Andrew Tridgell
088096d1ba
python: use '#!/usr/bin/env python' to cope with varying install locations
...
this should be much more portable
2010-03-25 14:37:19 +11:00
Jelmer Vernooij
28577aae92
Import testtools as well, required for subunit.
2010-01-16 19:53:49 +13:00
Jelmer Vernooij
264277b555
Remove use of global_loadparm in last Python script.
2008-10-24 15:45:13 +02:00
Jelmer Vernooij
f8a02a1a80
Fix subunit files location after cherrypicks.
2008-10-08 03:33:38 +02:00
Jelmer Vernooij
f9facb5120
Move all subunit files to lib directory.
2008-10-08 02:22:39 +02:00
Jelmer Vernooij
fc23663f4b
Revert "Add option for generating coverage data from python tests."
...
This reverts commit 43c0fdfff02021caef2d8f73d6bfdc4b051a65ef.
(This used to be commit 696f30fff249656409f2efcc81b86a421d0c6880)
2008-09-12 21:28:48 +02:00
Jelmer Vernooij
faf83916ee
Add option for generating coverage data from python tests.
...
(This used to be commit 43c0fdfff02021caef2d8f73d6bfdc4b051a65ef)
2008-09-09 15:55:10 +02:00
Jelmer Vernooij
49706ab19b
Move more modules inside of the samba package.
...
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2008-05-21 23:59:34 +02:00
Jelmer Vernooij
47d2218922
Set sys.path for running inside source tree.
...
(This used to be commit b507109bb676715f7d9616e13b0e19305e9c2559)
2008-05-11 05:45:49 +02:00
Jelmer Vernooij
babdcc6135
Use system python rather than smbpython.
...
(This used to be commit d3df51cd01e53383dcc05923d248db03bc6f62e9)
2008-05-11 05:29:20 +02:00
Jelmer Vernooij
2cdfaedee2
Make sure credentials are specified when running the Python winreg RPC tests.
...
(This used to be commit 280339e3d126f5c72dc271051b72839fde0c5c9f)
2008-04-14 19:20:43 +02:00
Jelmer Vernooij
1bcbc4afcf
Allow command line options in the subunitrun script.
...
(This used to be commit 524ec0796efebd48e7b5b2eb5fcc92ecc13c0071)
2008-04-14 19:13:41 +02:00
Jelmer Vernooij
04aef38453
Fix subunit runner exit codes.
...
(This used to be commit 7911308dbc1233838e44c533302f77b03ea41148)
2008-02-12 22:10:25 +01:00
Jelmer Vernooij
fdd75e135a
Correctly increment counters in Subunit test runner.
...
(This used to be commit c474a2bb83a3e28a0b83f3b8ca1b646742dfca3d)
2008-02-12 21:59:23 +01:00
Jelmer Vernooij
43a03b0fb4
r26598: Simplify the way Python tests are run.
...
(This used to be commit d649f73431fc993e31522e7fc8e1e35e0a4421d8)
2007-12-26 11:57:08 -06:00
Jelmer Vernooij
26ae331f75
r26191: Import custom test runner for subunit, rather than using trial, which is part of twisted.
...
(This used to be commit b0f808345f948c49ad46f34ba306ca8354393850)
2007-12-21 05:46:43 +01:00