]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add LMDB KDB module tests
authorGreg Hudson <ghudson@mit.edu>
Thu, 26 Apr 2018 03:50:06 +0000 (23:50 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 29 May 2018 17:09:53 +0000 (13:09 -0400)
commitdafc1daeedb008faa9dc6246e33f37a5c45462ca
tree097a95c76f195ef2d3536b2a59819a7d3d3def46
parent03e3115222e7f8ce61b2daec7bcbb2365f3190f9
Add LMDB KDB module tests

Add a new k5test function multidb_realms() which yields a realm using
BDB and a realm using LMDB.  Run the tests in t_dump.py, t_iprop.py,
the lockout tests in t_policy.py, and kdbtest (in t_kdb.py) with both
databases.

If K5TEST_LMDB is set in the environment, use LMDB for all Python
tests and all tests in tests/dejagnu, with two exceptions
(t_unlockiter.py and t_kdb_locking.py) which test BDB-specific
behavior.  To support those exceptions, add the "bdb_only" realm
initialization flag.

In t_iprop.py, be sure to properly clean up kpropd daemons, using a
new k5test realm method stop_kpropd() to stop a kpropd daemon started
with start_kpropd() and remove it from the realm's list.

ticket: 8674
src/Makefile.in
src/tests/dejagnu/config/default.exp
src/tests/dejagnu/krb-standalone/kprop.exp
src/tests/t_dump.py
src/tests/t_iprop.py
src/tests/t_kdb.py
src/tests/t_kdb_locking.py
src/tests/t_policy.py
src/tests/t_unlockiter.py
src/util/k5test.py