tdb: test for readonly locks mode on tdbbackup command
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Mon, 30 Jul 2018 22:07:53 +0000 (10:07 +1200)
committerGary Lockyer <gary@samba.org>
Mon, 6 Aug 2018 03:37:42 +0000 (05:37 +0200)
commit04217372f4114bd7583ba56a3860ebbe22ae0719
tree6222723d9199843b0a875256b55bce8869b111a1
parent8f83933f6ea1edfdaff2da26ef264cc028b9e6a2
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>
lib/tdb/test/sample_tdb.tdb [new file with mode: 0644]
lib/tdb/test/test_tdbbackup.sh [new file with mode: 0755]
lib/tdb/wscript