1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/tdb/test
Aaron Haslett 04217372f4 tdb: test for readonly locks mode on tdbbackup command
Simple bash test for readonly locks on tdbbackup:
1. Running tdbbackup on a database with and without readonly locks enabled.
2. Dump both backups and original.
3. Check all three dumps match.

A binary sample_tdb.tdb file is included for the test because the existing
sample tdbs in lib/tdb/test are either corrupt or empty.

Signed-off-by: Aaron Haslett <aaron.haslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-08-06 05:37:42 +02:00
..
external-agent.c lib:tdb: Remove use of strcpy in tdb test. 2016-03-22 04:38:24 +01:00
external-agent.h tdb/test: add UNMAP command to external-agent.c 2014-05-22 21:05:15 +02:00
jenkins-be-hash.tdb
jenkins-le-hash.tdb
lock-tracking.c
lock-tracking.h
logging.c
logging.h
old-nohash-be.tdb
old-nohash-le.tdb
run-3G-file.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-allrecord-traverse-deadlock.c tdb: Reproducer for Bug 11381 2015-07-09 00:42:16 +02:00
run-bad-tdb-header.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-check.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-corrupt.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-die-during-transaction.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-endian.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-fcntl-deadlock.c tdb: add run-fcntl-deadlock test 2017-06-15 01:24:25 +02:00
run-incompatible.c tdb: Fix CID 1034841 Resource leak 2015-03-10 21:48:04 +01:00
run-marklock-deadlock.c tdb/test: add marklock deadlock test 2014-05-22 21:05:15 +02:00
run-mutex1.c tdb/test: add mutex related tests 2014-05-22 21:05:15 +02:00
run-mutex-allrecord-bench.c tdb/test: add mutex related tests 2014-05-22 21:05:15 +02:00
run-mutex-allrecord-block.c tdb/test: add mutex related tests 2014-05-22 21:05:15 +02:00
run-mutex-allrecord-trylock.c tdb/test: add mutex related tests 2014-05-22 21:05:15 +02:00
run-mutex-die.c tdb/test: add mutex related tests 2014-05-22 21:05:15 +02:00
run-mutex-openflags2.c tdb/test: TDB_CLEAR_IF_FIRST | TDB_MUTEX_LOCKING, O_RDONLY is a valid combination 2014-12-02 09:31:08 +01:00
run-mutex-transaction1.c tdb/test: add tdb1-run-mutex-transaction1 test 2014-12-19 09:20:06 +01:00
run-mutex-trylock.c tdb/test: add mutex related tests 2014-05-22 21:05:15 +02:00
run-nested-transactions.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-nested-traverse.c tdb: Remove locking from tdb_traverse_read() 2017-07-02 17:35:18 +02:00
run-no-lock-during-traverse.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-oldhash.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-open-during-transaction.c tdb: Fix CID 1034842 Resource leak 2015-03-11 00:23:20 +01:00
run-rdlock-upgrade.c tdb: Test for readonly lock upgrade bug 2017-04-11 00:33:30 +02:00
run-readonly-check.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-rescue-find_entry.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-rescue.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-rwlock-check.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-summary.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-transaction-expand.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-traverse-in-transaction.c tdb: Add new function tdb_transaction_active() 2017-07-02 17:35:19 +02:00
run-wronghash-fail.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run-zero-append.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
run.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
rwlock-be.tdb
rwlock-le.tdb
sample_tdb.tdb tdb: test for readonly locks mode on tdbbackup command 2018-08-06 05:37:42 +02:00
tap-interface.h tdb/test: add a "skip()" macro. 2014-05-22 21:05:14 +02:00
tap-to-subunit.h
tdb.corrupt
test_tdbbackup.sh tdb: test for readonly locks mode on tdbbackup command 2018-08-06 05:37:42 +02:00